diff options
| author | Martin Schwenke <martin@meltin.net> | 2011-05-11 15:14:16 +1000 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2011-08-08 16:33:47 +1000 |
| commit | b3db37cd305110376cd608733f944c985c0896fc (patch) | |
| tree | ab76704ebd8b1ade53f935bab56736f5e5dbd1b3 | |
| parent | 94f0fd9cd547ffd458090453e7499520c3e65d03 (diff) | |
| download | samba-b3db37cd305110376cd608733f944c985c0896fc.tar.gz samba-b3db37cd305110376cd608733f944c985c0896fc.tar.xz samba-b3db37cd305110376cd608733f944c985c0896fc.zip | |
Test suite: remove getmonmode test.
This can't be made 100% reliable since the monitor mode can change
underneath us due to some event. Therefore, the test is useless.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Conflicts:
tests/simple/20_ctdb_getmonmode.sh
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 98ccdc6241a73036c4f210bb510f1cb5cff588cc)
| -rwxr-xr-x | ctdb/tests/simple/20_ctdb_getmonmode.sh | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/ctdb/tests/simple/20_ctdb_getmonmode.sh b/ctdb/tests/simple/20_ctdb_getmonmode.sh deleted file mode 100755 index 56a38d8525..0000000000 --- a/ctdb/tests/simple/20_ctdb_getmonmode.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash - -test_info() -{ - cat <<EOF -Verify 'ctdb getmonmode' works correctly. - -This test doesn't actually verify that enabling and disabling -monitoring mode actually does that. It trusts ctdb that the -monitoring mode is modified as requested. 21_ctdb_disablemonitor.sh -does some more useful checking. - -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 getmodmode -n <node>' to get the current monitoring mode. -3. Verify that it looks sane. -4. Verify that the command prints the output in colon-separated format - when run with the '-Y' option. -5. Disable monitoring on the node using 'ctdb disablemonitor'. -6. Verify that it shows monitoring as 'disabled'. - -Expected results: - -* 'ctdb getmonmode' works as expected. -EOF -} - -. ctdb_test_functions.bash - -ctdb_test_init "$@" - -set -e - -cluster_is_healthy - -# Reset configuration -ctdb_restart_when_done - -test_node=1 - -try_command_on_node -v 0 $CTDB getmonmode -n $test_node - -sanity_check_output \ - 1 \ - '^Monitoring mode:(ACTIVE \(0\)|DISABLED \(1\))$' \ - "$out" - -try_command_on_node -v 0 $CTDB -Y getmonmode -n $test_node - -sanity_check_output 2 '^(:mode:|:0:|:1:)$' "$out" - -try_command_on_node -v 0 $CTDB disablemonitor -n $test_node - -wait_until_node_has_status $test_node monoff |
