drsuapi.idl: fix source_dsa spelling
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.listnodes.004.sh
blobca8ef8e7c2bd875972e36be303d803d806fe0659
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "list nodes command 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 echo "error: foo" >&2
16 exit 1
17 EOF
18 test_cleanup rm -rf "${CTDB_BASE}/nodes.sh"
19 chmod +x "${CTDB_BASE}/nodes.sh"
22 f="${CTDB_BASE}/nodes.sh"
24 required_result 1 <<EOF
25 error: foo
26 ${TEST_DATE_STAMP}Failed to read nodes from "!${f}"
27 EOF
29 simple_test