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

. "${EVENTSCRIPTS_TESTS_DIR}/common.sh"

define_test "takeip, monitor -> reconfigure"

setup_nfs

public_address=$(ctdb_get_1_public_address)

ok_null

simple_test_event "takeip" $public_address

# This currently assumes that ctdb scriptstatus will always return a
# good status (when replaying).  That should change and we will need
# to split this into 2 tests.
ok <<EOF
Reconfiguring service "nfs"...
Starting nfslock: OK
Starting nfs: OK
Replaying previous status for this script due to reconfigure...
EOF

simple_test_event "monitor"