Test suite: remove thaw/freeze tests.
authorMartin Schwenke <martin@meltin.net>
Thu, 5 Aug 2010 01:40:05 +0000 (11:40 +1000)
committerMartin Schwenke <martin@meltin.net>
Thu, 5 Aug 2010 01:40:05 +0000 (11:40 +1000)
They test debugging commands that no longer operate as expected.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/simple/18_ctdb_freeze.sh [deleted file]
tests/simple/19_ctdb_thaw.sh [deleted file]

diff --git a/tests/simple/18_ctdb_freeze.sh b/tests/simple/18_ctdb_freeze.sh
deleted file mode 100755 (executable)
index 792a4ee..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-
-test_info()
-{
-    cat <<EOF
-Verify 'ctdb freeze' works correctly.
-
-This is a superficial test that simply checks that 'ctdb statistics'
-reports the node becomes frozen.  No checks are done to ensure that
-client access to databases is blocked.
-
-Prerequisites:
-
-* An active CTDB cluster with at least 2 active nodes.
-
-Steps:
-
-1. Verify that the status on all of the ctdb nodes is 'OK'.
-2. Use 'ctdb freeze -n <node>' to freeze the databases on one of the
-   nodes.
-3. Run 'ctdb statistics' to verify that 'frozen' has the value '1' on
-   the node.
-
-Expected results:
-
-* When the database is frozen, the 'frozen' variable in the
-  'ctdb statistics' output is set to 1 on the node.
-EOF
-}
-
-. ctdb_test_functions.bash
-
-ctdb_test_init "$@"
-
-set -e
-
-cluster_is_healthy
-
-# Reset configuration
-ctdb_restart_when_done
-
-test_node=1
-
-echo "Freezing node $test_node"
-
-try_command_on_node 0 $CTDB freeze -n $test_node
-
-wait_until_node_has_status $test_node frozen
diff --git a/tests/simple/19_ctdb_thaw.sh b/tests/simple/19_ctdb_thaw.sh
deleted file mode 100755 (executable)
index 7bbf490..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-test_info()
-{
-    cat <<EOF
-Verify 'ctdb thaw' works correctly.
-
-This is a superficial test that simply checks that 'ctdb statistics'
-reports the node becomes unfrozen.  No checks are done to ensure that
-client access to databases is unblocked.
-
-Prerequisites:
-
-* An active CTDB cluster with at least 2 active nodes.
-
-Steps:
-
-1. Verify that the status on all of the ctdb nodes is 'OK'.
-2. Use 'ctdb freeze -n <node>' to freeze the databases on one of the
-   nodes.
-3. Run 'ctdb statistics' to verify that 'frozen' has the value '1' on
-   the node.
-4, Now run 'ctdb thaw -n <node>' on the same node.
-5. Run 'ctdb statistics' to verify that 'frozen' once again has the
-   value '0' on the node.
-
-
-Expected results:
-
-* 'ctdb thaw' causes a node to 'thaw' and the status change can be
-  seem via 'ctdb statistics'.
-EOF
-}
-
-. ctdb_test_functions.bash
-
-ctdb_test_init "$@"
-
-set -e
-
-cluster_is_healthy
-
-test_node=1
-
-echo "Freezing node $test_node"
-
-try_command_on_node 0 $CTDB freeze -n $test_node
-
-wait_until_node_has_status $test_node frozen
-
-echo "That worked!  Now thawing node $test_node"
-
-try_command_on_node 0 $CTDB thaw -n $test_node
-
-wait_until_node_has_status $test_node unfrozen