diff options
author | Martin Schwenke <martin@meltin.net> | 2019-09-09 16:00:52 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2019-09-26 04:45:37 +0000 |
commit | 8a5c4a60e156170f8aaa738672ed6dc50712a929 (patch) | |
tree | 271c7e0ee6d9ff6bcca91bcef94b314289f734a7 /ctdb/tests/INTEGRATION/failover/pubips.030.disable_enable.sh | |
parent | 658068184ff9437c11e5260e24a632439adb3d27 (diff) | |
download | samba-8a5c4a60e156170f8aaa738672ed6dc50712a929.tar.gz |
ctdb-tests: Move simple tests to INTEGRATION/ subdirectory
Split some tests out into database/ and failover/ subdirectories.
Rename the remaining tests in simple/.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests/INTEGRATION/failover/pubips.030.disable_enable.sh')
-rwxr-xr-x | ctdb/tests/INTEGRATION/failover/pubips.030.disable_enable.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ctdb/tests/INTEGRATION/failover/pubips.030.disable_enable.sh b/ctdb/tests/INTEGRATION/failover/pubips.030.disable_enable.sh new file mode 100755 index 00000000000..c0bb62d1991 --- /dev/null +++ b/ctdb/tests/INTEGRATION/failover/pubips.030.disable_enable.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +test_info() +{ + cat <<EOF +Verify the operation of "ctdb disable" and "ctdb enable" +EOF +} + +. "${TEST_SCRIPTS_DIR}/integration.bash" + +ctdb_test_init + +######################################## + +set -e + +cluster_is_healthy + +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 +wait_until_node_has_no_ips "$test_node" + +echo "Re-enabling node $test_node" +try_command_on_node 1 $CTDB enable -n $test_node +wait_until_node_has_status $test_node enabled +wait_until_node_has_some_ips "$test_node" |