test: extend 105-ntpauth to test symmetric mode
This commit is contained in:
parent
05236a4f23
commit
86c21a3a85
1 changed files with 20 additions and 0 deletions
|
@ -39,4 +39,24 @@ check_chronyd_exit || test_fail
|
||||||
# This check must fail as the client doesn't know the key
|
# This check must fail as the client doesn't know the key
|
||||||
check_sync && test_fail
|
check_sync && test_fail
|
||||||
check_packet_interval || 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
|
test_pass
|
||||||
|
|
Loading…
Reference in a new issue