diff options
Diffstat (limited to 'ctdb/tests/INTEGRATION/simple/basics.001.listnodes.sh')
-rwxr-xr-x | ctdb/tests/INTEGRATION/simple/basics.001.listnodes.sh | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/ctdb/tests/INTEGRATION/simple/basics.001.listnodes.sh b/ctdb/tests/INTEGRATION/simple/basics.001.listnodes.sh index aafe27e6cc1..722c9d2a035 100755 --- a/ctdb/tests/INTEGRATION/simple/basics.001.listnodes.sh +++ b/ctdb/tests/INTEGRATION/simple/basics.001.listnodes.sh @@ -1,12 +1,34 @@ -#!/usr/bin/env bash +#!/bin/bash -# Verify that 'ctdb listnodes' shows the list of nodes +test_info() +{ + cat <<EOF +Verify that 'ctdb listnodes' shows the list of nodes in a ctdb cluster. + +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. Run 'ctdb listnodes' on all the nodes of the cluster. +3. Verify that one all the nodes the command displays a list of + current cluster nodes. + +Expected results: + +* 'ctdb listnodes' displays the correct information. +EOF +} . "${TEST_SCRIPTS_DIR}/integration.bash" +ctdb_test_init + set -e -ctdb_test_init +cluster_is_healthy try_command_on_node -v 0 "$CTDB listnodes" |