summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/multievent/60.nfs.004.sh
blob: addbf44c9c713b44d9f6f2e233e80386f21567f5 (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
27
#!/bin/sh

. "${EVENTSCRIPTS_TESTS_DIR}/common.sh"

define_test "takeip, monitor -> reconfigure, replay timedout"

setup_nfs

public_address=$(ctdb_get_1_public_address)

err="waiting, waiting..."

ok_null

simple_test_event "takeip" $public_address

ctdb_fake_scriptstatus -62 "TIMEDOUT" "$err"

required_result 1 <<EOF
Reconfiguring service "nfs"...
Starting nfslock: OK
Starting nfs: OK
Replaying previous status for this script due to reconfigure...
[Replay of TIMEDOUT scriptstatus - note incorrect return code.] $err
EOF

simple_test_event "monitor"