ctdb-scripts: Only write to /proc route flush files if they exist
[Samba.git] / ctdb / tests / takeover / det.002.sh
blobc411d14449770cc18ee080e24220cd44dbde9012
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "3 nodes, 2 healthy"
7 required_result <<EOF
8 ${TEST_DATE_STAMP}Deterministic IPs enabled. Resetting all ip allocations
9 ${TEST_DATE_STAMP}Unassign IP: 192.168.21.253 from 1
10 ${TEST_DATE_STAMP}Unassign IP: 192.168.20.253 from 1
11 ${TEST_DATE_STAMP}Unassign IP: 192.168.20.250 from 1
12 192.168.21.254 0
13 192.168.21.253 0
14 192.168.21.252 2
15 192.168.20.254 0
16 192.168.20.253 2
17 192.168.20.252 2
18 192.168.20.251 0
19 192.168.20.250 0
20 192.168.20.249 2
21 EOF
23 simple_test 0,2,0 <<EOF
24 192.168.20.249 0
25 192.168.20.250 1
26 192.168.20.251 2
27 192.168.20.252 0
28 192.168.20.253 1
29 192.168.20.254 2
30 192.168.21.252 0
31 192.168.21.253 1
32 192.168.21.254 2
33 EOF