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
CVE-2016-0771: tests/dns: Remove dependencies on env variables
[Samba.git]
/
ctdb
/
tests
/
tool
/
stubby.natgwlist.003.sh
blob
19b1797e25503d2d96cfd95b8c5d88de3cc4ae01
1
#!/bin/sh
2
3
.
"
${TEST_SCRIPTS_DIR}
/unit.sh"
4
5
define_test
"3 nodes, 2 in natgw group, 1 unhealthy"
6
7
setup_natgw
<<EOF
8
192.168.20.41
9
192.168.20.43
10
EOF
11
12
required_result
0
<<EOF
13
2 192.168.20.43
14
Number of nodes:2
15
pnn:0 192.168.20.41 UNHEALTHY
16
pnn:2 192.168.20.43 OK
17
EOF
18
19
simple_test
<<EOF
20
NODEMAP
21
0 192.168.20.41 0x2
22
1 192.168.20.42 0x0 CURRENT RECMASTER
23
2 192.168.20.43 0x0
24
25
VNNMAP
26
654321
27
0
28
1
29
2
30
31
IFACES
32
:Name:LinkStatus:References:
33
:eth2:1:2:
34
:eth1:1:4:
35
EOF