mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
58296e3eae
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>
22 lines
329 B
Bash
Executable File
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
|