From 86c21a3a857655167f57fc597fd51968824aa4ad Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 11 Jan 2016 16:40:29 +0100 Subject: [PATCH] test: extend 105-ntpauth to test symmetric mode --- test/simulation/105-ntpauth | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/simulation/105-ntpauth b/test/simulation/105-ntpauth index 66ea2a5..6968e08 100755 --- a/test/simulation/105-ntpauth +++ b/test/simulation/105-ntpauth @@ -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