smbd: Simplify strict_lock_default with early returns
[Samba.git] / ctdb / tests / eventscripts / 11.natgw.003.sh
blobcb2358fe2ec127ce401e64fcb0a4da029bd381b6
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "CTDB_NATGW_PUBLIC_IFACE unset, not slave-only"
7 setup_ctdb
8 setup_ctdb_natgw <<EOF
9 192.168.1.21 master
10 192.168.1.22
11 192.168.1.23
12 192.168.1.24
13 EOF
15 CTDB_NATGW_PUBLIC_IFACE=""
17 required_result 1 "Invalid configuration: CTDB_NATGW_PUBLIC_IFACE not set"
19 for i in "startup" "ipreallocated" "monitor" ; do
20 simple_test_event "$i"
21 done