1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventscripts/11.natgw.004.sh

22 lines
370 B
Bash
Raw Normal View History

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "CTDB_NATGW_PUBLIC_IP unset, not slave-only"
setup_ctdb
setup_ctdb_natgw <<EOF
192.168.1.21 master
192.168.1.22
192.168.1.23
192.168.1.24
EOF
CTDB_NATGW_PUBLIC_IP=""
required_result 1 "Invalid configuration: CTDB_NATGW_PUBLIC_IP not set"
for i in "startup" "ipreallocated" ; do
simple_test_event "$i"
done