drsuapi.idl: fix source_dsa spelling
[samba4-gss.git] / ctdb / tests / UNIT / tool / ctdb.natgw.006.sh
blob8080f4edc4e7e43288358fb74c1f7c1bcc03d657
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "3 nodes, node 0 is follower-only, all stopped"
7 setup_natgw <<EOF
8 192.168.20.41 follower-only
9 192.168.20.42
10 192.168.20.43
11 EOF
13 setup_ctdbd <<EOF
14 NODEMAP
15 0 192.168.20.41 0x20
16 1 192.168.20.42 0x20 CURRENT RECMASTER
17 2 192.168.20.43 0x20
18 EOF
20 #####
22 required_result 0 <<EOF
23 1 192.168.20.42
24 EOF
26 simple_test leader
28 #####
30 required_result 0 <<EOF
31 192.168.20.41 follower-only
32 192.168.20.42 LEADER
33 192.168.20.43
34 EOF
36 simple_test list
38 #####
40 required_result 0 <<EOF
41 pnn:0 192.168.20.41 STOPPED|INACTIVE
42 pnn:1 192.168.20.42 STOPPED|INACTIVE (THIS NODE)
43 pnn:2 192.168.20.43 STOPPED|INACTIVE
44 EOF
46 simple_test status