1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ctdb-tests: Use wait_until_node_has_no_ips() in some tests

This strengthens those tests to ensure that released IPs aren't
replaced with others.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-10-08 11:13:15 +11:00 committed by Amitay Isaacs
parent eda1296d67
commit 5fdac517fa
2 changed files with 2 additions and 4 deletions

View File

@ -32,9 +32,7 @@ select_test_node_and_ips
echo "Disabling node $test_node"
try_command_on_node 1 $CTDB disable -n $test_node
wait_until_node_has_status $test_node disabled
echo "Waiting for IPs to no longer be hosted on node ${test_node}"
wait_until_ips_are_on_node '!' $test_node $test_node_ips
wait_until_node_has_no_ips "$test_node"
echo "Re-enabling node $test_node"
try_command_on_node 1 $CTDB enable -n $test_node

View File

@ -31,7 +31,7 @@ select_test_node_and_ips
echo "Stopping node ${test_node}..."
try_command_on_node 1 $CTDB stop -n $test_node
wait_until_node_has_status $test_node stopped
wait_until_ips_are_on_node '!' $test_node $test_node_ips
wait_until_node_has_no_ips "$test_node"
echo "Continuing node $test_node"
try_command_on_node 1 $CTDB continue -n $test_node