From 6d46de912288f0875f0e3cca27b8d7455fa07b42 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 9 Apr 2024 14:48:03 +0200 Subject: Adding debian version 4.5-1. Signed-off-by: Daniel Baumann --- debian/tests/fragmented-configuration | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 debian/tests/fragmented-configuration (limited to 'debian/tests/fragmented-configuration') diff --git a/debian/tests/fragmented-configuration b/debian/tests/fragmented-configuration new file mode 100644 index 0000000..2135df3 --- /dev/null +++ b/debian/tests/fragmented-configuration @@ -0,0 +1,17 @@ +#!/bin/sh +# Make sure that fragmented configuration works as expected. + +set -e + +. debian/tests/helper-functions + +printf 'Setting "authselectmode prefer" as authentication policy: ' +echo "authselectmode prefer" > /etc/chrony/conf.d/authentication-policy.conf && __test_ok || __test_fail + +printf "Restart chronyd: " +systemctl --quiet restart chrony.service && __test_ok || __test_fail + +printf "Checking that chronyd uses the defined authentication policy: " +chronyd -p | grep -q "authselectmode prefer" && __test_ok || __test_fail + +exit 0 -- cgit v1.2.3