summaryrefslogtreecommitdiff
path: root/ctdb/tests
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-10-08 11:33:08 +1100
committerAmitay Isaacs <amitay@samba.org>2018-11-06 07:16:15 +0100
commitba86eacb66e8979781f4b1c3a486c17ca52624f1 (patch)
tree3241d4fa5822ab2efb33a7ed2cecd8a0ad99e469 /ctdb/tests
parent5fdac517fa8a945eb272a645bf1e7d3f10812153 (diff)
downloadsamba-ba86eacb66e8979781f4b1c3a486c17ca52624f1.tar.gz
ctdb-tests: Rationalise ctdb stop/continue/disable/enable simple tests
The "continue" and "enable" tests are just extensions of the "stop" and "disable" tests, so drop the latter 2. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests')
-rwxr-xr-xctdb/tests/simple/31_ctdb_disable.sh34
-rwxr-xr-xctdb/tests/simple/32_ctdb_disable_enable.sh (renamed from ctdb/tests/simple/32_ctdb_enable.sh)12
-rwxr-xr-xctdb/tests/simple/41_ctdb_stop.sh34
-rwxr-xr-xctdb/tests/simple/42_ctdb_stop_continue.sh (renamed from ctdb/tests/simple/42_ctdb_continue.sh)10
4 files changed, 2 insertions, 88 deletions
diff --git a/ctdb/tests/simple/31_ctdb_disable.sh b/ctdb/tests/simple/31_ctdb_disable.sh
deleted file mode 100755
index e3bb5d61040..00000000000
--- a/ctdb/tests/simple/31_ctdb_disable.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-test_info()
-{
- cat <<EOF
-Verify the operation of 'ctdb disable'.
-
-* Verify that the status of the node changes to 'disabled'.
-
-* Verify that the IP addreses served by the disabled node are failed
- over to other nodes.
-
-This test does not do any network level checks to make sure IP
-addresses are actually on interfaces. It just consults "ctdb ip".
-EOF
-}
-
-. "${TEST_SCRIPTS_DIR}/integration.bash"
-
-ctdb_test_init "$@"
-
-set -e
-
-cluster_is_healthy
-
-# Reset configuration
-ctdb_restart_when_done
-
-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_ips_are_on_node '!' $test_node $test_node_ips
diff --git a/ctdb/tests/simple/32_ctdb_enable.sh b/ctdb/tests/simple/32_ctdb_disable_enable.sh
index 5933dc84c7a..f434abfd4cd 100755
--- a/ctdb/tests/simple/32_ctdb_enable.sh
+++ b/ctdb/tests/simple/32_ctdb_disable_enable.sh
@@ -3,17 +3,7 @@
test_info()
{
cat <<EOF
-Verify the operation of 'ctdb enable'.
-
-After disabling a node...
-
-* Verify that the status of a re-enabled node changes back to 'OK'.
-
-* Verify that some public IP addreses are rebalanced to a re-enabled
- node.
-
-This test does not do any network level checks to make sure IP
-addresses are actually on interfaces. It just consults "ctdb ip".
+Verify the operation of "ctdb disable" and "ctdb enable"
EOF
}
diff --git a/ctdb/tests/simple/41_ctdb_stop.sh b/ctdb/tests/simple/41_ctdb_stop.sh
deleted file mode 100755
index e11fb0fc7ec..00000000000
--- a/ctdb/tests/simple/41_ctdb_stop.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-test_info()
-{
- cat <<EOF
-Verify the operation of the 'ctdb stop' command.
-
-* Verify that the status of the node changes to 'stopped'.
-
-* Verify that the public IP addresses that were being served by
- the node are failed over to one of the other nodes.
-
-This test does not do any network level checks to make sure IP
-addresses are actually on interfaces. It just consults "ctdb ip".
-EOF
-}
-
-. "${TEST_SCRIPTS_DIR}/integration.bash"
-
-ctdb_test_init "$@"
-
-set -e
-
-cluster_is_healthy
-
-# Reset configuration
-ctdb_restart_when_done
-
-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
diff --git a/ctdb/tests/simple/42_ctdb_continue.sh b/ctdb/tests/simple/42_ctdb_stop_continue.sh
index 510dfec2bd2..04349e2d153 100755
--- a/ctdb/tests/simple/42_ctdb_continue.sh
+++ b/ctdb/tests/simple/42_ctdb_stop_continue.sh
@@ -3,15 +3,7 @@
test_info()
{
cat <<EOF
-Verify the operation of the 'ctdb continue' command.
-
-After stopping a node...
-
-* Verify that the status of the node changes back to 'OK' and that
- some public IP addresses move back to the node.
-
-This test does not do any network level checks to make sure IP
-addresses are actually on interfaces. It just consults "ctdb ip".
+Verify the operation of "ctdb stop" and "ctdb continue"
EOF
}