1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/ctdb/tests/eventscripts/10.interface.monitor.015.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

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