ctdb-tests: 91.lvs event script setup modularisation
[kai/samba-autobuild/.git] / ctdb / tests / eventscripts / 91.lvs.monitor.003.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "configured, interface up"
6
7 setup "10.1.1.201" "eth0" <<EOF
8 192.168.1.1
9 192.168.1.2
10 192.168.1.3
11 EOF
12
13 ethtool_interfaces_down "$CTDB_LVS_PUBLIC_IFACE"
14
15 required_result 1 <<EOF
16 ERROR: No link on the public network interface ${CTDB_LVS_PUBLIC_IFACE}
17 EOF
18 simple_test
19