summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/10.interface.monitor.006.sh
blob: 3c483a3516f3e937c4740ce5223050d263516cf2 (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 bond, active slaves, link down"

setup_ctdb

iface=$(ctdb_get_1_interface)

setup_bond $iface "" "down"

required_result 1 "ERROR: public network interface $iface is down"

simple_test