repo.or.cz
/
Samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ctdb-tests: Add unit tests for "reloadnodes" sanity checking
[Samba.git]
/
ctdb
/
tests
/
tool
/
stubby.reloadnodes.022.sh
blob
c2a89c049a69812a0c11bad17a624e1d6d7fb4a9
1
#!/bin/sh
2
3
.
"
${TEST_SCRIPTS_DIR}
/unit.sh"
4
5
define_test
"3 nodes, delete middle, add 2 nodes, less debug"
6
7
CTDB_DEBUGLEVEL
=
0
8
9
setup_nodes
<<EOF
10
192.168.20.41
11
#192.168.20.42
12
192.168.20.43
13
192.168.20.44
14
192.168.20.45
15
EOF
16
17
ok_null
18
19
simple_test
<<EOF
20
NODEMAP
21
0 192.168.20.41 0x0 CURRENT RECMASTER
22
1 192.168.20.42 0x1
23
2 192.168.20.43 0x0
24
25
VNNMAP
26
654321
27
0
28
2
29
EOF