ctdb-server: Use find_public_ip_vnn() in a couple of extra places
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.listnodes.003.sh
blob95aae505aeb6b45805f7f5a3bd011dd647f64d71
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "list nodes via command"
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 EOF
19 test_cleanup rm -rf "${CTDB_BASE}/nodes.sh"
20 chmod +x "${CTDB_BASE}/nodes.sh"
22 required_result 0 <<EOF
23 192.168.20.41
24 192.168.20.42
25 192.168.20.43
26 EOF
28 simple_test