ctdb-tests: Make the fake log timestamp string easy to modify
[vlendec/samba-autobuild/.git] / ctdb / tests / takeover / det.001.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "3 nodes, 1 healthy"
6
7 required_result <<EOF
8 ${TEST_DATE_STAMP}Deterministic IPs enabled. Resetting all ip allocations
9 ${TEST_DATE_STAMP}Unassign IP: 192.168.21.254 from 0
10 ${TEST_DATE_STAMP}Unassign IP: 192.168.21.253 from 1
11 ${TEST_DATE_STAMP}Unassign IP: 192.168.20.254 from 0
12 ${TEST_DATE_STAMP}Unassign IP: 192.168.20.253 from 1
13 ${TEST_DATE_STAMP}Unassign IP: 192.168.20.251 from 0
14 ${TEST_DATE_STAMP}Unassign IP: 192.168.20.250 from 1
15 192.168.21.254 2
16 192.168.21.253 2
17 192.168.21.252 2
18 192.168.20.254 2
19 192.168.20.253 2
20 192.168.20.252 2
21 192.168.20.251 2
22 192.168.20.250 2
23 192.168.20.249 2
24 EOF
25
26 simple_test 2,2,0 <<EOF
27 192.168.20.249 0
28 192.168.20.250 1
29 192.168.20.251 2
30 192.168.20.252 0
31 192.168.20.253 1
32 192.168.20.254 2
33 192.168.21.252 0
34 192.168.21.253 1
35 192.168.21.254 2
36 EOF