mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
c0b17c3900
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jun 1 04:30:36 CEST 2016 on sn-devel-144
27 lines
548 B
Bash
Executable File
27 lines
548 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "takeip, take reconfigure lock, monitor -> reconfigure, replay timed out"
|
|
|
|
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"
|
|
|
|
eventscript_call ctdb_reconfigure_take_lock
|
|
|
|
required_result 1 <<EOF
|
|
Replaying previous status for this script due to reconfigure...
|
|
[Replay of TIMEDOUT scriptstatus - note incorrect return code.] $err
|
|
EOF
|
|
|
|
simple_test_event "monitor"
|