ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.status.001.sh
blob62c1dc7c98ac16ea5cbdf42215fc1e78fdb6b03b
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "all, 3 nodes, all ok"
7 setup_ctdbd <<EOF
8 NODEMAP
9 0 192.168.20.41 0x0 CURRENT RECMASTER
10 1 192.168.20.42 0x0
11 2 192.168.20.43 0x0
13 IFACES
14 :Name:LinkStatus:References:
15 :eth2:1:2:
16 :eth1:1:4:
18 VNNMAP
19 654321
23 EOF
25 required_result 0 <<EOF
26 Number of nodes:3
27 pnn:0 192.168.20.41 OK (THIS NODE)
28 pnn:1 192.168.20.42 OK
29 pnn:2 192.168.20.43 OK
30 Generation:654321
31 Size:3
32 hash:0 lmaster:0
33 hash:1 lmaster:1
34 hash:2 lmaster:2
35 Recovery mode:NORMAL (0)
36 Leader:0
37 EOF
38 simple_test
40 required_result 0 <<EOF
41 |Node|IP|Disconnected|Unknown|Banned|Disabled|Unhealthy|Stopped|Inactive|PartiallyOnline|ThisNode|
42 |0|192.168.20.41|0|0|0|0|0|0|0|0|Y|
43 |1|192.168.20.42|0|0|0|0|0|0|0|0|N|
44 |2|192.168.20.43|0|0|0|0|0|0|0|0|N|
45 EOF
46 simple_test -X