diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 17:35:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 17:35:04 +0000 |
commit | 214f81cd9b7c94c10b633627034c21daaee837b2 (patch) | |
tree | 63f193ca9b27d4095af5ac000565ef928ddbb5f6 /debian/tests/fragmented-configuration | |
parent | Adding upstream version 4.0. (diff) | |
download | chrony-debian.tar.xz chrony-debian.zip |
Adding debian version 4.0-8+deb11u2.debian/4.0-8+deb11u2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/fragmented-configuration')
-rw-r--r-- | debian/tests/fragmented-configuration | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/tests/fragmented-configuration b/debian/tests/fragmented-configuration new file mode 100644 index 0000000..cda1c41 --- /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 2> /dev/null | grep -q "authselectmode prefer" && __test_ok || __test_fail + +exit 0 |