summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/eventscripts/10.interface.monitor.003.sh
blob: db1b2c642843afa5390a0b6f41c72f0f80900d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "1 interface down"

setup

iface=$(ctdb_get_1_interface)

ethtool_interfaces_down $iface

required_result 1 "ERROR: No link on the public network interface $iface"

simple_test