ctdb-utils: Update Nagios code to use ctdb -X
[Samba.git] / ctdb / tests / tool / stubby.natgwlist.007.sh
blob855dcc6bd3c6d94e7b29284f87829ca2c5c0a808
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "3 nodes, node 0 missing NATGW capability, all stopped"
7 setup_natgw <<EOF
8 192.168.20.41
9 192.168.20.42
10 192.168.20.43
11 EOF
13 required_result 2 <<EOF
14 -1 0.0.0.0
15 Number of nodes:3
16 pnn:0 192.168.20.41 STOPPED|INACTIVE
17 pnn:1 192.168.20.42 STOPPED|INACTIVE (THIS NODE)
18 pnn:2 192.168.20.43 STOPPED|INACTIVE
19 EOF
21 simple_test <<EOF
22 NODEMAP
23 0 192.168.20.41 0x20 -CTDB_CAP_NATGW
24 1 192.168.20.42 0x20 CURRENT RECMASTER -CTDB_CAP_NATGW
25 2 192.168.20.43 0x20 -CTDB_CAP_NATGW
27 VNNMAP
28 654321
33 IFACES
34 :Name:LinkStatus:References:
35 :eth2:1:2:
36 :eth1:1:4:
37 EOF