smbd: Simplify strict_lock_default with early returns
[Samba.git] / ctdb / tests / eventscripts / 11.natgw.005.sh
blob94a80c88825745a0cc4a59ca320c9ec56cc166dc
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "Inconsistent test setup: slave-only but current node is master"
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_SLAVE_ONLY="yes"
17 required_result 1 <<EOF
18 Inconsistent test configuration - master node is slave-only
19 There is no NATGW master node
20 EOF
22 for i in "ipreallocated" "monitor" ; do
23 simple_test_event "$i"
24 done