ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / onnode / 0070.sh
blobd649f82f217f93c17d2cb5609f70c6908931394e
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 cmd="$ONNODE ok hostname"
7 define_test "$cmd" "all nodes OK"
9 ctdb_set_output <<EOF
10 |Node|IP|Disconnected|Banned|Disabled|Unhealthy|Stopped|Inactive|PartiallyOnline|ThisNode|
11 |0|192.168.1.101|0|0|0|0|0|0|0|Y|
12 |1|192.168.1.102|0|0|0|0|0|0|0|N|
13 |2|192.168.1.103|0|0|0|0|0|0|0|N|
14 |3|192.168.1.104|0|0|0|0|0|0|0|N|
15 EOF
17 required_result <<EOF
19 >> NODE: 192.168.1.101 <<
20 -n 192.168.1.101 hostname
22 >> NODE: 192.168.1.102 <<
23 -n 192.168.1.102 hostname
25 >> NODE: 192.168.1.103 <<
26 -n 192.168.1.103 hostname
28 >> NODE: 192.168.1.104 <<
29 -n 192.168.1.104 hostname
30 EOF
32 simple_test $cmd