1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventscripts/10.interface.monitor.016.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

19 lines
329 B
Bash
Executable File

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