ctdb-utils: Update Nagios code to use ctdb -X
[Samba.git] / ctdb / tests / takeover / lcp2.014.sh
blob36eda9284b4b413ce78964e1095a83e94a2a488a
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "3 nodes, no IPs assigned, all unhealthy"
7 export CTDB_TEST_LOGLEVEL=0
9 required_result <<EOF
10 192.168.21.254 0
11 192.168.21.253 1
12 192.168.21.252 2
13 192.168.20.254 0
14 192.168.20.253 1
15 192.168.20.252 2
16 192.168.20.251 0
17 192.168.20.250 1
18 192.168.20.249 2
19 EOF
21 simple_test 2,2,2 <<EOF
22 192.168.21.254 -1
23 192.168.21.253 -1
24 192.168.21.252 -1
25 192.168.20.254 -1
26 192.168.20.253 -1
27 192.168.20.252 -1
28 192.168.20.251 -1
29 192.168.20.250 -1
30 192.168.20.249 -1
31 EOF