1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb/tests/eventscripts/10.interface.monitor.016.sh
Martin Schwenke 6f212aacf8 ctdb-scripts: Refactor function interface_monitor() to monitor one interface
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2016-01-25 07:18:24 +01:00

19 lines
303 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: Monitored interface dev123 does not exist
EOF
simple_test