summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/takeover
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2013-05-03 15:55:01 +1000
committerMartin Schwenke <martin@meltin.net>2013-05-07 16:20:46 +1000
commit5658e444dcaa1fb8cbf4025f80e961b5e9bd9b31 (patch)
tree06f7050b197be7dbbbb1a7e2299eee1f384f9621 /ctdb/tests/takeover
parent657162fb3457e67706826b159bf54072be44f825 (diff)
downloadsamba-5658e444dcaa1fb8cbf4025f80e961b5e9bd9b31.tar.gz
samba-5658e444dcaa1fb8cbf4025f80e961b5e9bd9b31.tar.xz
samba-5658e444dcaa1fb8cbf4025f80e961b5e9bd9b31.zip
tests/takeover: Allow per-node tunable settings
Implemented for CTDB_SET_NoIPTakeover. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a1addd89fd9c0390912604097acd028cc24d3483)
Diffstat (limited to 'ctdb/tests/takeover')
-rwxr-xr-xctdb/tests/takeover/lcp2.012.sh4
-rwxr-xr-xctdb/tests/takeover/lcp2.013.sh4
2 files changed, 6 insertions, 2 deletions
diff --git a/ctdb/tests/takeover/lcp2.012.sh b/ctdb/tests/takeover/lcp2.012.sh
index 70dad93541..8f5c537e96 100755
--- a/ctdb/tests/takeover/lcp2.012.sh
+++ b/ctdb/tests/takeover/lcp2.012.sh
@@ -18,7 +18,9 @@ required_result <<EOF
192.168.20.249 1
EOF
-simple_test 0x01000000,0,0 <<EOF
+export CTDB_SET_NoIPTakeover="1,0,0"
+
+simple_test 0,0,0 <<EOF
192.168.20.249 1
192.168.20.250 1
192.168.20.251 1
diff --git a/ctdb/tests/takeover/lcp2.013.sh b/ctdb/tests/takeover/lcp2.013.sh
index 4d01f12507..fb9d724e35 100755
--- a/ctdb/tests/takeover/lcp2.013.sh
+++ b/ctdb/tests/takeover/lcp2.013.sh
@@ -18,7 +18,9 @@ required_result <<EOF
192.168.20.249 0
EOF
-simple_test 0x01000000,0,0 <<EOF
+export CTDB_SET_NoIPTakeover="1,0,0"
+
+simple_test 0,0,0 <<EOF
192.168.20.249 0
192.168.20.250 1
192.168.20.251 2