ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.listnodes.007.sh
blob37e2f10c38bb298ed9ec63f546b61f4632a2fd93
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "list nodes command valid output, but script still fails"
7 cat > "${CTDB_BASE}/ctdb.conf" <<EOF
8 [cluster]
9 nodes list = !${CTDB_BASE}/nodes.sh
10 EOF
11 test_cleanup rm -rf "${CTDB_BASE}/ctdb.conf"
13 cat > "${CTDB_BASE}/nodes.sh" <<EOF
14 #!/bin/sh
15 for x in 41 42 43; do
16 echo 192.168.20.\$x
17 done
18 exit 2
19 EOF
20 test_cleanup rm -rf "${CTDB_BASE}/nodes.sh"
21 chmod +x "${CTDB_BASE}/nodes.sh"
24 f="${CTDB_BASE}/nodes.sh"
26 required_result 0 <<EOF
27 192.168.20.41
28 192.168.20.42
29 192.168.20.43
30 EOF
32 simple_test