1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/ctdb/tests/takeover/lcp2.034.sh
Martin Schwenke 58296e3eae ctdb-tests: Populate per-node known IPs inline
At the moment this is done as a post-processing step for any nodes
that have no known IPs.  However, this doesn't allow testing of
scenarios where there no known IPs on one or more nodes.

Add relevant tests.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2017-02-24 07:47:11 +01:00

22 lines
329 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "3 nodes, 1 without IP addresses"
export CTDB_TEST_LOGLEVEL=ERR
required_result <<EOF
192.168.140.4 0
192.168.140.3 1
192.168.140.2 0
192.168.140.1 1
EOF
simple_test 0,0,0 <<EOF
192.168.140.1 -1 0,1
192.168.140.2 -1 0,1
192.168.140.3 -1 0,1
192.168.140.4 -1 0,1
EOF