ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.nodestatus.004.sh
blobc060fb98b90f82670bb933a3571c6da0105c9a0d
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "current, 3 nodes, node 0 unhealthy"
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:
17 EOF
19 required_result 0 <<EOF
20 pnn:2 192.168.20.43 OK (THIS NODE)
21 EOF
22 simple_test
24 required_result 0 <<EOF
25 |Node|IP|Disconnected|Unknown|Banned|Disabled|Unhealthy|Stopped|Inactive|PartiallyOnline|ThisNode|
26 |2|192.168.20.43|0|0|0|0|0|0|0|0|Y|
27 EOF
28 simple_test -X