mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
a92394e69c
... and unit tests. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
21 lines
340 B
Bash
Executable File
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
|
|
|