ctdb-daemon: Do not allow database detach if AllowClientDBAttach=1
[Samba.git] / ctdb / tests / tool / stubby.natgwlist.004.sh
blob2abec5e18a1714edb0f920a66cdcdac64651e14a
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "3 nodes, all unhealthy, all but 1 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 0 <<EOF
14 2 192.168.20.43
15 Number of nodes:3
16 pnn:0 192.168.20.41 UNHEALTHY|STOPPED|INACTIVE
17 pnn:1 192.168.20.42 UNHEALTHY|STOPPED|INACTIVE (THIS NODE)
18 pnn:2 192.168.20.43 UNHEALTHY
19 EOF
21 simple_test <<EOF
22 NODEMAP
23 0 192.168.20.41 0x22
24 1 192.168.20.42 0x22 CURRENT RECMASTER
25 2 192.168.20.43 0x2
27 VNNMAP
28 654321
33 IFACES
34 :Name:LinkStatus:References:
35 :eth2:1:2:
36 :eth1:1:4:
37 EOF