mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
26 lines
405 B
Bash
26 lines
405 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
||
|
|
||
|
define_test "2 x add-client to different nodes, notify on 1"
|
||
|
|
||
|
setup_ctdb
|
||
|
|
||
|
FAKE_DATE_OUTPUT="1234565789"
|
||
|
|
||
|
ok_null
|
||
|
simple_test_event "add-client" "192.168.123.45"
|
||
|
|
||
|
FAKE_CTDB_PNN=1
|
||
|
|
||
|
ok_null
|
||
|
simple_test_event "add-client" "192.168.123.46"
|
||
|
|
||
|
FAKE_CTDB_PNN=0
|
||
|
|
||
|
check_statd_callout_smnotify "192.168.123.45"
|
||
|
|
||
|
FAKE_CTDB_PNN=1
|
||
|
|
||
|
check_ctdb_tdb_statd_state "192.168.123.46"
|