mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
df39a671db
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit eb13507713ba6732271b7c3024bfddbda6da5ffc)
28 lines
513 B
Bash
Executable File
28 lines
513 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "takeip, monitor -> reconfigure, replay disabled"
|
|
|
|
setup_nfs
|
|
|
|
public_address=$(ctdb_get_1_public_address)
|
|
|
|
err=""
|
|
|
|
ok_null
|
|
|
|
simple_test_event "takeip" $public_address
|
|
|
|
ctdb_fake_scriptstatus -8 "DISABLED" "$err"
|
|
|
|
ok <<EOF
|
|
Reconfiguring service "nfs"...
|
|
Starting nfslock: OK
|
|
Starting nfs: OK
|
|
Replaying previous status for this script due to reconfigure...
|
|
[Replay of DISABLED scriptstatus - note incorrect return code.] $err
|
|
EOF
|
|
|
|
simple_test_event "monitor"
|