]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: extend 105-ntpauth to test symmetric mode
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 11 Jan 2016 15:40:29 +0000 (16:40 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 18 Jan 2016 16:37:21 +0000 (17:37 +0100)
test/simulation/105-ntpauth

index 66ea2a511ceefc50830c7e5516648d4c01acaf13..6968e0847e73659299d1008e9523907570bc418d 100755 (executable)
@@ -39,4 +39,24 @@ check_chronyd_exit || test_fail
 # This check must fail as the client doesn't know the key
 check_sync && test_fail
 check_packet_interval || test_fail
+
+client_conf="keyfile tmp/keys"
+clients=2
+peers=2
+max_sync_time=300
+base_delay="$default_base_delay (* -1 (equal 0.1 from 3) (equal 0.1 to 1))"
+client_lpeer_options="key 1"
+client_rpeer_options="key 1"
+
+run_test || test_fail
+check_chronyd_exit || test_fail
+check_sync || test_fail
+
+client_rpeer_options="key 2"
+
+run_test || test_fail
+check_chronyd_exit || test_fail
+# This check must fail as the peers are using different keys"
+check_sync && test_fail
+
 test_pass