summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/10.interface.monitor.015.sh
blob: 1090cb9a554698d297750ed28844aa2d8ee852d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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