With local daemons the sockets are now numbered starting from 0. Fix
authorMartin Schwenke <martin@meltin.net>
Wed, 10 Dec 2008 05:13:42 +0000 (16:13 +1100)
committerMartin Schwenke <martin@meltin.net>
Wed, 10 Dec 2008 05:13:42 +0000 (16:13 +1100)
commitceefb6a02905f0fd4daee55b1b3bc63c6f3ae1d4
treeed3797cd01d457bd8f4f894fbe49355592d024e1
parent5dcc100e3ef3b6ab50d885dd7a156a7ee01fde03
With local daemons the sockets are now numbered starting from 0.  Fix
setup of local daemons so that it correctly assigns no public IPs to a
single node each time.  Separate out daemon_setup so that the
selection of the node with no public IPs is only done once at the
beginning of testing.  Clean up all current tests, mostly with a view
to ensuring that a node selected for testing some kind of failover
actually has public addresses assigned.  Reenabled 01_ctdb_version.sh
- it now passes if rpm doesn't do anything useful on the node.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 86807e8b7b179cbe87e559fb3b1f02c8b1990dc4)
19 files changed:
ctdb/tests/scripts/ctdb_test_env
ctdb/tests/scripts/ctdb_test_functions.bash
ctdb/tests/simple/00_ctdb_init.sh
ctdb/tests/simple/01_ctdb_version.sh [moved from ctdb/tests/simple/01_ctdb_version.sh.disabled with 64% similarity]
ctdb/tests/simple/02_ctdb_listvars.sh
ctdb/tests/simple/03_ctdb_getvar.sh
ctdb/tests/simple/04_ctdb_setvar.sh
ctdb/tests/simple/05_ctdb_listnodes.sh
ctdb/tests/simple/06_ctdb_getpid.sh
ctdb/tests/simple/07_ctdb_process_exists.sh
ctdb/tests/simple/09_ctdb_ping.sh
ctdb/tests/simple/11_ctdb_ip.sh
ctdb/tests/simple/13_ctdb_setdebug.sh
ctdb/tests/simple/15_ctdb_statisticsreset.sh
ctdb/tests/simple/16_ctdb_config_add_ip.sh
ctdb/tests/simple/31_ctdb_disable_simple.sh
ctdb/tests/simple/32_ctdb_enable_simple.sh
ctdb/tests/simple/41_ctdb_ban_simple.sh
ctdb/tests/simple/42_ctdb_unban_simple.sh