ctdb-tests: Move eventd tests to UNIT/ subdirectory
[samba.git] / ctdb / tests / UNIT / eventscripts / 11.natgw.003.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "CTDB_NATGW_PUBLIC_IFACE unset, not slave-only"
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_PUBLIC_IFACE=""
18 EOF
19
20 required_result 1 "Invalid configuration: CTDB_NATGW_PUBLIC_IFACE not set"
21
22 for i in "startup" "ipreallocated" ; do
23     simple_test_event "$i"
24 done