1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventscripts/60.nfs.multi.002.sh
Martin Schwenke df39a671db tests/eventscripts - Restructure according to new convention
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit eb13507713ba6732271b7c3024bfddbda6da5ffc)
2012-04-16 16:24:12 +10:00

26 lines
542 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.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"