summaryrefslogtreecommitdiffstats
path: root/debian/tests/fragmented-configuration
blob: 2135df343644bde485643eb1c3b6b483d83cc6bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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