| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | . "${TEST_SCRIPTS_DIR}/unit.sh" |
| 4 | |
| 5 | define_test "Monitor CTDB_NATGW_PUBLIC_IFACE, follower, down" |
| 6 | |
| 7 | setup |
| 8 | |
| 9 | setup_ctdb_natgw <<EOF |
| 10 | 192.168.1.21 |
| 11 | 192.168.1.22 leader |
| 12 | 192.168.1.23 |
| 13 | 192.168.1.24 |
| 14 | EOF |
| 15 | |
| 16 | ethtool_interfaces_down "$CTDB_NATGW_PUBLIC_IFACE" |
| 17 | |
| 18 | required_result 1 <<EOF |
| 19 | ERROR: No link on the public network interface ${CTDB_NATGW_PUBLIC_IFACE} |
| 20 | EOF |
| 21 | simple_test_event "monitor" |