blob: aed1f34d969b441455c99be30d586c848e317928 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "takeip, take reconfigure lock, monitor -> replay error"
setup_nfs
public_address=$(ctdb_get_1_public_address)
err="foo: bar error occurred"
ok_null
simple_test_event "takeip" $public_address
ctdb_fake_scriptstatus 1 "ERROR" "$err"
eventscript_call ctdb_reconfigure_take_lock
required_result 1 <<EOF
Replaying previous status for this script due to reconfigure...
$err
EOF
simple_test_event "monitor"
|