diff options
author | Martin Schwenke <martin@meltin.net> | 2014-03-17 06:15:39 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2014-03-26 04:21:42 +0100 |
commit | c0e239473b532cebd31ef5e53d8cbf23c262c18d (patch) | |
tree | db6cf2d24d0afacc03fe49b2fc149473dd3c2756 /ctdb | |
parent | 4ee4925d416a86341bd76c11fa99ec9173682a1d (diff) | |
download | samba-c0e239473b532cebd31ef5e53d8cbf23c262c18d.tar.gz samba-c0e239473b532cebd31ef5e53d8cbf23c262c18d.tar.xz samba-c0e239473b532cebd31ef5e53d8cbf23c262c18d.zip |
ctdb-tests: Add a test for NAT gateway sanity checking
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb')
-rwxr-xr-x | ctdb/tests/eventscripts/11.natgw.002.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ctdb/tests/eventscripts/11.natgw.002.sh b/ctdb/tests/eventscripts/11.natgw.002.sh new file mode 100755 index 00000000000..e496e4a3c4a --- /dev/null +++ b/ctdb/tests/eventscripts/11.natgw.002.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +. "${TEST_SCRIPTS_DIR}/unit.sh" + +define_test "missing config file" + +setup_ctdb +setup_ctdb_natgw <<EOF +192.168.1.21 master +192.168.1.22 +192.168.1.23 +192.168.1.24 +EOF + +rm -f "$CTDB_NATGW_NODES" + +required_result 1 <<EOF +error: CTDB_NATGW_NODES=${CTDB_NATGW_NODES} unreadable +EOF + +for i in "startup" "ipreallocated" "monitor" ; do + simple_test_event "$i" +done + |