replace: Fix bug 11455
[Samba.git] / ctdb / tests / simple / 02_ctdb_listvars.sh
blob2f709a8cc0dd6f95eab7a2e6231758812316526f
1 #!/bin/bash
3 test_info()
5 cat <<EOF
6 Verify that 'ctdb listvars' shows a list of all tunable variables.
8 This test simply checks that at least 5 sane looking lines are
9 printed. It does not check that the list is complete or that the
10 values are sane.
12 Prerequisites:
14 * An active CTDB cluster with at least 2 active nodes.
16 Steps:
18 1. Verify that the status on all of the ctdb nodes is 'OK'.
19 2. Run 'ctdb listvars' and verify that it shows a list of tunable
20 variables and their current values.
22 Expected results:
24 * 'ctdb listvars' works as expected.
25 EOF
28 . "${TEST_SCRIPTS_DIR}/integration.bash"
30 ctdb_test_init "$@"
32 set -e
34 cluster_is_healthy
36 try_command_on_node -v 0 "$CTDB listvars"
38 sanity_check_output \
39 5 \
40 '^[[:alpha:]][[:alnum:]]+[[:space:]]*=[[:space:]]*[[:digit:]]+$' \
41 "$out"