ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.nodestatus.007.sh
blobc96df4d9616a4357a4b35f1c1e989f9f0369b839
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "all, 3 nodes, 1 unhealthy, runstate init"
7 setup_ctdbd <<EOF
8 NODEMAP
9 0 192.168.20.41 0x2
10 1 192.168.20.42 0x0
11 2 192.168.20.43 0x0 CURRENT RECMASTER
13 IFACES
14 :Name:LinkStatus:References:
15 :eth2:1:2:
16 :eth1:1:4:
18 RUNSTATE
19 INIT
20 EOF
22 required_result 64 <<EOF
23 Number of nodes:3
24 pnn:0 192.168.20.41 UNKNOWN
25 pnn:1 192.168.20.42 UNKNOWN
26 pnn:2 192.168.20.43 OK (THIS NODE)
27 EOF
28 simple_test all
30 required_result 64 <<EOF
31 |Node|IP|Disconnected|Unknown|Banned|Disabled|Unhealthy|Stopped|Inactive|PartiallyOnline|ThisNode|
32 |0|192.168.20.41|0|1|0|0|0|0|0|0|N|
33 |1|192.168.20.42|0|1|0|0|0|0|0|0|N|
34 |2|192.168.20.43|0|0|0|0|0|0|0|0|Y|
35 EOF
36 simple_test -X all