ctdb-tests: Conditionally use temporary config file for local daemons
[vlendec/samba-autobuild/.git] / ctdb / tests / eventscripts / 11.natgw.054.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "Monitor CTDB_NATGW_PUBLIC_IFACE, master, down"
6
7 setup_ctdb
8 setup_ctdb_natgw <<EOF
9 192.168.1.21 master
10 192.168.1.22
11 192.168.1.23
12 192.168.1.24
13 EOF
14
15 ethtool_interfaces_down "$CTDB_NATGW_PUBLIC_IFACE"
16
17 required_result 1 <<EOF
18 ERROR: No link on the public network interface ${CTDB_NATGW_PUBLIC_IFACE}
19 EOF
20 simple_test_event "monitor"