ctdb-tests: Move eventscript tests to UNIT/ subdirectory
[vlendec/samba-autobuild/.git] / ctdb / tests / UNIT / eventscripts / 10.interface.monitor.018.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "VLAN on bond, active slaves, link down"
6
7 setup
8
9 iface=$(ctdb_get_1_interface)
10
11 bond="bond0"
12
13 setup_bond "$bond" "" "down"
14
15 ip link add link "$bond" name "$iface" type vlan id 11
16 ip link set "${iface}@${bond}" up
17
18 required_result 1 "ERROR: public network interface ${bond} is down"
19
20 simple_test