summaryrefslogtreecommitdiff
path: root/ctdb/tests/INTEGRATION/failover/pubips.013.failover_noop.sh
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-12-10 14:44:45 +1100
committerMartin Schwenke <martins@samba.org>2020-07-22 07:53:36 +0000
commit37c26a9590b2d6712b38cf249538b512c6f6b546 (patch)
tree5f84a7e6464bc684ef077f37062112af63455a34 /ctdb/tests/INTEGRATION/failover/pubips.013.failover_noop.sh
parenta766136df459df33becd05726253b83d32993a94 (diff)
downloadsamba-37c26a9590b2d6712b38cf249538b512c6f6b546.tar.gz
ctdb-tests: Separate custom cluster startup from test initialisation
Separate cluster startup from test initialisation for tests that start the cluster with customised configuration. In these cases the result of the cluster startup is actually the point of the test. Additionally, pubips.013.failover_noop.sh claims to have completed test initialisation twice, which just seems wrong. The result is: * ctdb_test_init() takes one option (-n) to indicate when it should not configure/start the cluster * New function ctdb_nodes_start_custom() accepts options for special cluster configuration, only operates on local daemons and triggers a test failure rather than a test error on failure. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests/INTEGRATION/failover/pubips.013.failover_noop.sh')
-rwxr-xr-xctdb/tests/INTEGRATION/failover/pubips.013.failover_noop.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/ctdb/tests/INTEGRATION/failover/pubips.013.failover_noop.sh b/ctdb/tests/INTEGRATION/failover/pubips.013.failover_noop.sh
index 1c13a3ce3c2..488243d6260 100755
--- a/ctdb/tests/INTEGRATION/failover/pubips.013.failover_noop.sh
+++ b/ctdb/tests/INTEGRATION/failover/pubips.013.failover_noop.sh
@@ -11,10 +11,10 @@ set -e
ctdb_test_skip_on_cluster
-echo "Starting CTDB with failover disabled..."
-ctdb_test_init -F
+ctdb_test_init -n
-cluster_is_healthy
+echo "Starting CTDB with failover disabled..."
+ctdb_nodes_start_custom -F
echo "Getting IP allocation..."
try_command_on_node -v any "$CTDB ip all | tail -n +2"
@@ -30,9 +30,7 @@ echo "GOOD: All IP addresses are unassigned"
echo "----------------------------------------"
echo "Starting CTDB with an empty public addresses configuration..."
-ctdb_test_init -P /dev/null
-
-cluster_is_healthy
+ctdb_nodes_start_custom -P /dev/null
echo "Trying explicit ipreallocate..."
try_command_on_node any $CTDB ipreallocate