summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2012-04-12 15:18:17 +1000
committerMartin Schwenke <martin@meltin.net>2012-04-16 14:57:44 +1000
commite5f5a101ee73dc292c94560982eeeece0ff08717 (patch)
treefd9c242bc4e17b92861d6cfe1409de57088467c1
parent39317325f54d7d59602addcb96d45baf2ea24337 (diff)
downloadsamba-e5f5a101ee73dc292c94560982eeeece0ff08717.tar.gz
samba-e5f5a101ee73dc292c94560982eeeece0ff08717.tar.xz
samba-e5f5a101ee73dc292c94560982eeeece0ff08717.zip
Tests - IP allocation - 2 tests for NODE_FLAGS_NOIPTAKEOVER
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fa54a1095a7504863ed30bff8e0828a8be6dde55)
-rwxr-xr-xctdb/tests/takeover/testcases/lcp2.012.sh31
-rwxr-xr-xctdb/tests/takeover/testcases/lcp2.013.sh31
2 files changed, 62 insertions, 0 deletions
diff --git a/ctdb/tests/takeover/testcases/lcp2.012.sh b/ctdb/tests/takeover/testcases/lcp2.012.sh
new file mode 100755
index 0000000000..d53b188134
--- /dev/null
+++ b/ctdb/tests/takeover/testcases/lcp2.012.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+. "${TAKEOVER_TESTS_DIR}/common.sh"
+
+define_test "Node with NODE_FLAGS_NOIPTAKEOVER doesn't gain IPs"
+
+export CTDB_TEST_LOGLEVEL=0
+
+required_result <<EOF
+192.168.21.254 1
+192.168.21.253 2
+192.168.21.252 1
+192.168.20.254 2
+192.168.20.253 2
+192.168.20.252 1
+192.168.20.251 2
+192.168.20.250 1
+192.168.20.249 1
+EOF
+
+simple_test 0x01000000,0,0 <<EOF
+192.168.20.249 1
+192.168.20.250 1
+192.168.20.251 1
+192.168.20.252 1
+192.168.20.253 1
+192.168.20.254 1
+192.168.21.252 1
+192.168.21.253 1
+192.168.21.254 1
+EOF
diff --git a/ctdb/tests/takeover/testcases/lcp2.013.sh b/ctdb/tests/takeover/testcases/lcp2.013.sh
new file mode 100755
index 0000000000..3e7f45053d
--- /dev/null
+++ b/ctdb/tests/takeover/testcases/lcp2.013.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+. "${TAKEOVER_TESTS_DIR}/common.sh"
+
+define_test "Node with NODE_FLAGS_NOIPTAKEOVER doesn't lose IPs"
+
+export CTDB_TEST_LOGLEVEL=0
+
+required_result <<EOF
+192.168.21.254 2
+192.168.21.253 1
+192.168.21.252 0
+192.168.20.254 2
+192.168.20.253 1
+192.168.20.252 0
+192.168.20.251 2
+192.168.20.250 1
+192.168.20.249 0
+EOF
+
+simple_test 0x01000000,0,0 <<EOF
+192.168.20.249 0
+192.168.20.250 1
+192.168.20.251 2
+192.168.20.252 0
+192.168.20.253 1
+192.168.20.254 2
+192.168.21.252 0
+192.168.21.253 1
+192.168.21.254 2
+EOF