ctdb-tests: Move eventd tests to UNIT/ subdirectory
[samba.git] / ctdb / tests / UNIT / eventscripts / statd-callout.005.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "2 x add-client to different nodes, notify on 1"
6
7 setup
8
9 ok_null
10 simple_test_event "add-client" "192.168.123.45"
11 simple_test_event "update"
12
13 ctdb_set_pnn 1
14
15 ok_null
16 simple_test_event "add-client" "192.168.123.46"
17 simple_test_event "update"
18
19 ctdb_set_pnn 0
20
21 check_statd_callout_smnotify "192.168.123.45"
22
23 ctdb_set_pnn 1
24
25 check_ctdb_tdb_statd_state "192.168.123.46"