CVE-2016-0771: tests/dns: Remove dependencies on env variables
[Samba.git] / ctdb / tests / tool / stubby.natgwlist.001.sh
blobf1d2d37f834a3eee6f26ba15f8f813073607ed5d
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "3 nodes, all in natgw group, all ok"
7 setup_natgw <<EOF
8 192.168.20.41
9 192.168.20.42
10 192.168.20.43
11 EOF
13 required_result 0 <<EOF
14 0 192.168.20.41
15 Number of nodes:3
16 pnn:0 192.168.20.41 OK (THIS NODE)
17 pnn:1 192.168.20.42 OK
18 pnn:2 192.168.20.43 OK
19 EOF
21 simple_test <<EOF
22 NODEMAP
23 0 192.168.20.41 0x0 CURRENT RECMASTER
24 1 192.168.20.42 0x0
25 2 192.168.20.43 0x0
27 IFACES
28 :Name:LinkStatus:References:
29 :eth2:1:2:
30 :eth1:1:4:
32 VNNMAP
33 654321
37 EOF