ctdb-tests: Use symbolic debug levels in takeover tests
[metze/samba/wip.git] / ctdb / tests / takeover / lcp2.001.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "3 nodes, 3 -> 1 healthy"
6
7 export CTDB_TEST_LOGLEVEL=ERR
8
9 required_result <<EOF
10 192.168.21.254 2
11 192.168.21.253 2
12 192.168.21.252 2
13 192.168.20.254 2
14 192.168.20.253 2
15 192.168.20.252 2
16 192.168.20.251 2
17 192.168.20.250 2
18 192.168.20.249 2
19 EOF
20
21 simple_test 2,2,0 <<EOF
22 192.168.20.249 0
23 192.168.20.250 1
24 192.168.20.251 2
25 192.168.20.252 0
26 192.168.20.253 1
27 192.168.20.254 2
28 192.168.21.252 0
29 192.168.21.253 1
30 192.168.21.254 2
31 EOF