drsuapi.idl: fix source_dsa spelling
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.listnodes.006.sh
blobcd95739af9814178c8a026b88108a91cbc4f4385
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "list nodes command with bad output"
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 # ctdb certainly doesn't understand xml
14 cat > "${CTDB_BASE}/nodes.sh" <<EOF
15 #!/bin/sh
16 echo "<nodes>"
17 echo "<node id="0" name="192.168.20.41" />"
18 echo "<node id="1" name="192.168.20.42" />"
19 echo "</nodes>"
20 EOF
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}"
30 EOF
32 simple_test