Tests - eventscripts - TCP port checking, no working checkers
authorMartin Schwenke <martin@meltin.net>
Mon, 22 Aug 2011 06:41:01 +0000 (16:41 +1000)
committerMartin Schwenke <martin@meltin.net>
Tue, 30 Aug 2011 06:51:55 +0000 (16:51 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/eventscripts/simple/50.samba.monitor.111.sh [new file with mode: 0755]

diff --git a/tests/eventscripts/simple/50.samba.monitor.111.sh b/tests/eventscripts/simple/50.samba.monitor.111.sh
new file mode 100755 (executable)
index 0000000..4651290
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+. "${EVENTSCRIPTS_TESTS_DIR}/common.sh"
+
+define_test "port 139 down, ctdb checktcpport/nmap/netstat not implemented"
+
+ctdb_not_implemented "checktcpport"
+export FAKE_NMAP_NOT_FOUND="yes"
+export FAKE_NETSTAT_NOT_FOUND="yes"
+
+setup_nmap_output_filter
+
+setup_samba
+tcp_port_down 139
+
+required_result 127 <<EOF
+INTERNAL ERROR: ctdb_check_ports - no working checkers in CTDB_TCP_PORT_CHECKERS="ctdb nmap netstat"
+EOF
+
+simple_test