libgpo: add gp_inifile_init_context_direct()
[Samba.git] / ctdb / tests / tool / ctdb.natgw.003.sh
blobaf48b48c622ecdd6f9887ec05f95470fb58ab6d6
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 setup_ctdbd <<EOF
13 NODEMAP
14 0 192.168.20.41 0x2
15 1 192.168.20.42 0x0 CURRENT RECMASTER
16 2 192.168.20.43 0x0
17 EOF
19 #####
21 required_result 0 <<EOF
22 2 192.168.20.43
23 EOF
25 simple_test master
27 #####
29 required_result 0 <<EOF
30 192.168.20.41
31 192.168.20.43 MASTER
32 EOF
34 simple_test list
36 #####
38 required_result 0 <<EOF
39 pnn:0 192.168.20.41 UNHEALTHY
40 pnn:2 192.168.20.43 OK
41 EOF
43 simple_test status