1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/ctdb/tests/complex
Martin Schwenke f2a9ba6976 Test suite: Fix the timeouts on the skip share check tests.
The timeout for waiting for state changes isn't very predictable.  It
is "about" MonitorInterval seconds...  but can be longer given the
duration of eventscript runs and other things.  So, we change the
timeout to MonitorInterval + EventScriptTimeout, hoping it never takes
that long.

Move the eventscript installation/removal from the old fake-tests into
a function in the functions file.  Implement supporting functions to
create/remove/check-for various files that it handles.  Also add a
function that uses all of this that waits for the next monitor event
(but only if all other monitor events pass).

The final check in the skip share check tests uses the above and waits
for a monitor event, and then checks that the node is still healthy.

Also enhance the wait_until function to handle a command starting with
'!' (as a separate word) to make it easy to wait for a file not to
exist.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 25e82a8a667a54c6921ef076c63fdd738dd75d19)
2009-10-21 21:36:39 +11:00
..
01_ctdb_nfs_skip_share_check.sh Test suite: Fix the timeouts on the skip share check tests. 2009-10-21 21:36:39 +11:00
02_ctdb_samba_skip_share_check.sh Test suite: Fix the timeouts on the skip share check tests. 2009-10-21 21:36:39 +11:00
31_nfs_tickle.sh Test suite: Update "complex" tests for wait_until_node_has_status() change. 2009-09-11 16:15:31 +10:00
32_cifs_tickle.sh Test suite: Update "complex" tests for wait_until_node_has_status() change. 2009-09-11 16:15:31 +10:00
33_gratuitous_arp.sh Test suite: Update "complex" tests for wait_until_node_has_status() change. 2009-09-11 16:15:31 +10:00
41_failover_ping_discrete.sh Test suite: Update "complex" tests for wait_until_node_has_status() change. 2009-09-11 16:15:31 +10:00
42_failover_ssh_hostname.sh Test suite: Update "complex" tests for wait_until_node_has_status() change. 2009-09-11 16:15:31 +10:00
43_failover_nfs_basic.sh Test suite: Update "complex" tests for wait_until_node_has_status() change. 2009-09-11 16:15:31 +10:00
44_failover_nfs_oneway.sh Test suite: Update "complex" tests for wait_until_node_has_status() change. 2009-09-11 16:15:31 +10:00