From 7fc7ebb5acf36aff258f914b522e1345802a5413 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 22 Aug 2011 16:10:44 +1000 Subject: Tests - eventscripts - new Samba tests to test TCP port checking Signed-off-by: Martin Schwenke (This used to be ctdb commit 9e3e6ab3edf0f79d5973eb39ed843d3c369c665d) --- .../eventscripts/simple/50.samba.monitor.107.sh | 18 +++++++++++++ .../eventscripts/simple/50.samba.monitor.108.sh | 15 +++++++++++ .../eventscripts/simple/50.samba.monitor.109.sh | 30 ++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100755 ctdb/tests/eventscripts/simple/50.samba.monitor.107.sh create mode 100755 ctdb/tests/eventscripts/simple/50.samba.monitor.108.sh create mode 100755 ctdb/tests/eventscripts/simple/50.samba.monitor.109.sh diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.107.sh b/ctdb/tests/eventscripts/simple/50.samba.monitor.107.sh new file mode 100755 index 0000000000..e4151f3743 --- /dev/null +++ b/ctdb/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 <