3 .
"${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test
"takeip, take reconfigure lock, monitor -> replay error"
9 public_address
=$
(ctdb_get_1_public_address
)
11 err
="foo: bar error occurred"
15 simple_test_event
"takeip" $public_address
17 ctdb_fake_scriptstatus
1 "ERROR" "$err"
19 eventscript_call ctdb_reconfigure_take_lock
21 required_result
1 <<EOF
22 Replaying previous status for this script due to reconfigure...
26 simple_test_event
"monitor"