1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00
samba-mirror/ctdb/tests/eventscripts/10.interface.monitor.015.sh
Martin Schwenke 363315aca5 tests/eventscripts: Add tests for monitoring of missing interfaces
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 53e4eca74429f76adc81d98e3d11d1bd61194d71)
2013-07-19 15:37:14 +10:00

17 lines
266 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "Missing interface, fail"
setup_ctdb
iface=$(ctdb_get_1_interface)
ip link delete "$iface"
required_result 1 <<EOF
ERROR: Interface dev123 does not exist but it is used by public addresses.
EOF
simple_test