ctdb-tests: Use setup_script_options() in 11.natgw tests
[metze/samba/wip.git] / ctdb / tests / eventscripts / 11.natgw.013.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "master node, no gateway"
6
7 setup
8
9 setup_ctdb_natgw <<EOF
10 192.168.1.21 master
11 192.168.1.22
12 192.168.1.23
13 192.168.1.24
14 EOF
15
16 setup_script_options <<EOF
17 CTDB_NATGW_DEFAULT_GATEWAY=""
18 EOF
19
20 ok_null
21 simple_test_event "ipreallocated"
22
23 ok_null
24 simple_test_command ip route show
25
26 ok_natgw_master_ip_addr_show
27 simple_test_command ip addr show "$CTDB_NATGW_PUBLIC_IFACE"