From: Martin Schwenke Date: Mon, 22 Aug 2011 06:10:44 +0000 (+1000) Subject: Tests - eventscripts - new Samba tests to test TCP port checking X-Git-Tag: ctdb-1.11~1^2~15 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=9e3e6ab3edf0f79d5973eb39ed843d3c369c665d;p=ddiss%2Fctdb.git Tests - eventscripts - new Samba tests to test TCP port checking Signed-off-by: Martin Schwenke --- diff --git a/tests/eventscripts/simple/50.samba.monitor.107.sh b/tests/eventscripts/simple/50.samba.monitor.107.sh new file mode 100755 index 00000000..e4151f37 --- /dev/null +++ b/tests/eventscripts/simple/50.samba.monitor.107.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" + +define_test "port 139 down, default tcp checker, debug" + +# This has to go before the setup, otherwise it will write a dud file. +export CTDB_DEBUGLEVEL=4 + +setup_samba +tcp_port_down 139 + +required_result 1 <