testprogs/blackbox: add test_trust_utils.sh
[Samba.git] / ctdb / tests / eventscripts / 60.nfs.multi.005.sh
blobda334fd247d26bb98f7caeb7d42555f074b31c49
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "takeip, take reconfigure lock, monitor -> reconfigure, replay disabled"
7 setup_nfs
9 public_address=$(ctdb_get_1_public_address)
11 err=""
13 ok_null
15 simple_test_event "takeip" $public_address
17 ctdb_fake_scriptstatus -8 "DISABLED" "$err"
19 eventscript_call ctdb_reconfigure_take_lock
21 ok <<EOF
22 Replaying previous status for this script due to reconfigure...
23 [Replay of DISABLED scriptstatus - note incorrect return code.] $err
24 EOF
26 simple_test_event "monitor"