ctdb-eventscripts: CTDB_NATGW_PUBLIC_* optional on slave-only nodes
[Samba.git] / ctdb / tests / eventscripts / 11.natgw.004.sh
blob76f1a54e258d7b437710c1f984425dd13ca73726
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "CTDB_NATGW_PUBLIC_IP 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_IP=""
17 required_result 1 "Invalid configuration: CTDB_NATGW_PUBLIC_IP not set"
19 for i in "startup" "ipreallocated" "monitor" ; do
20 simple_test_event "$i"
21 done