ctdb-ipalloc: Pass extra data to IP allocation state initialisation
[vlendec/samba-autobuild/.git] / ctdb / tests / tool / ctdb.reloadnodes.001.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "3 nodes, no change"
6
7 setup_nodes <<EOF
8 192.168.20.41
9 192.168.20.42
10 192.168.20.43
11 EOF
12
13 ok <<EOF
14 Node 0 is unchanged
15 Node 1 is unchanged
16 Node 2 is unchanged
17 No change in nodes file, skipping unnecessary reload
18 EOF
19
20 simple_test <<EOF
21 NODEMAP
22 0       192.168.20.41   0x0     CURRENT RECMASTER
23 1       192.168.20.42   0x0
24 2       192.168.20.43   0x0
25
26 VNNMAP
27 654321
28 0
29 1
30 2
31 EOF