1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/ctdb/tests/eventscripts/91.lvs.monitor.003.sh
Martin Schwenke a92394e69c ctdb-scripts: Add monitoring of CTDB_LVS_PUBLIC_IFACE
... and unit tests.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2016-04-15 05:57:17 +02:00

21 lines
340 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "configured, interface up"
setup_ctdb
setup_ctdb_lvs "10.1.1.201" "eth0" <<EOF
192.168.1.1
192.168.1.2
192.168.1.3
EOF
ethtool_interfaces_down "$CTDB_LVS_PUBLIC_IFACE"
required_result 1 <<EOF
ERROR: No link on the public network interface ${CTDB_LVS_PUBLIC_IFACE}
EOF
simple_test