1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00
samba-mirror/ctdb/tests/eventscripts/91.lvs.shutdown.002.sh
Martin Schwenke 5fc9ca91d7 ctdb-tests: Add unit tests for LVS eventscript
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2016-04-15 05:57:17 +02:00

20 lines
334 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "configured"
setup_ctdb
setup_ctdb_lvs "10.1.1.201" "eth0" <<EOF
EOF
ipvsadm -A -t "$CTDB_LVS_PUBLIC_IP" -s lc -p 1999999
ipvsadm -A -u "$CTDB_LVS_PUBLIC_IP" -s lc -p 1999999
ip addr add $CTDB_LVS_PUBLIC_IP/32 dev lo
ok_null
simple_test
check_ipvsadm NULL
check_lvs_ip NULL