3 .
"${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test
"list nodes command with bad output"
7 cat > "${CTDB_BASE}/ctdb.conf" <<EOF
9 nodes list = !${CTDB_BASE}/nodes.sh
11 test_cleanup
rm -rf "${CTDB_BASE}/ctdb.conf"
13 # ctdb certainly doesn't understand xml
14 cat > "${CTDB_BASE}/nodes.sh" <<EOF
17 echo "<node id="0" name="192.168.20.41" />"
18 echo "<node id="1" name="192.168.20.42" />"
21 test_cleanup
rm -rf "${CTDB_BASE}/nodes.sh"
22 chmod +x
"${CTDB_BASE}/nodes.sh"
25 f
="${CTDB_BASE}/nodes.sh"
27 required_result
1 <<EOF
28 Invalid node address <nodes>
29 ${TEST_DATE_STAMP}Failed to read nodes from "!${f}"