1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00
samba-mirror/ctdb/tests/UNIT/tool/ctdb.listnodes.001.sh

21 lines
270 B
Bash
Raw Normal View History

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "missing nodes file"
setup_nodes <<EOF
192.168.20.41
192.168.20.42
192.168.20.43
EOF
f="${CTDB_BASE}/nodes"
rm -f "$f"
required_result 1 <<EOF
${TEST_DATE_STAMP}Failed to read nodes file "${f}"
EOF
simple_test