CVE-2016-0771: tests/dns: Remove dependencies on env variables
[Samba.git] / ctdb / tests / tool / stubby.natgwlist.003.sh
blob19b1797e25503d2d96cfd95b8c5d88de3cc4ae01
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "3 nodes, 2 in natgw group, 1 unhealthy"
7 setup_natgw <<EOF
8 192.168.20.41
9 192.168.20.43
10 EOF
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
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
25 VNNMAP
26 654321
31 IFACES
32 :Name:LinkStatus:References:
33 :eth2:1:2:
34 :eth1:1:4:
35 EOF