1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/ctdb/tests/UNIT/eventscripts/91.lvs.monitor.003.sh
Martin Schwenke 8ed075d396 ctdb-tests: Move eventscript tests to UNIT/ subdirectory
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2019-09-26 04:45:36 +00:00

20 lines
320 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "configured, interface up"
setup "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