git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ctdb-tests: Add "ctdb reloadnodes" unit tests
[vlendec/samba-autobuild/.git]
/
ctdb
/
tests
/
tool
/
stubby.reloadnodes.002.sh
1
#!/bin/sh
2
3
. "${TEST_SCRIPTS_DIR}/unit.sh"
4
5
define_test "3 nodes, no change, inconsistent file on 1"
6
7
setup_nodes <<EOF
8
192.168.20.41
9
192.168.20.42
10
192.168.20.43
11
EOF
12
13
setup_nodes 1 <<EOF
14
192.168.20.41
15
#192.168.20.42
16
192.168.20.43
17
EOF
18
19
required_result 255 <<EOF
20
ERROR: Node file on node 1 differs from current node (0)
21
EOF
22
23
simple_test <<EOF
24
NODEMAP
25
0 192.168.20.41 0x0 CURRENT RECMASTER
26
1 192.168.20.42 0x0
27
2 192.168.20.43 0x0
28
29
VNNMAP
30
654321
31
0
32
1
33
2
34
EOF