smbd: Simplify strict_lock_default with early returns
[Samba.git] / ctdb / tests / eventscripts / 11.natgw.002.sh
blobe496e4a3c4ace19d295b3eb694ec3dd27421c73e
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "missing config file"
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 rm -f "$CTDB_NATGW_NODES"
17 required_result 1 <<EOF
18 error: CTDB_NATGW_NODES=${CTDB_NATGW_NODES} unreadable
19 EOF
21 for i in "startup" "ipreallocated" "monitor" ; do
22 simple_test_event "$i"
23 done