diff options
Diffstat (limited to 'ctdb/tests/eventscripts/50.samba.monitor.107.sh')
| -rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.107.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ctdb/tests/eventscripts/50.samba.monitor.107.sh b/ctdb/tests/eventscripts/50.samba.monitor.107.sh new file mode 100755 index 0000000000..4c776ac8aa --- /dev/null +++ b/ctdb/tests/eventscripts/50.samba.monitor.107.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +. "${TEST_SCRIPTS_DIR}/unit.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 <<EOF +ERROR: samba tcp port 139 is not responding +DEBUG: "ctdb checktcpport 139" was able to bind to port +EOF + +simple_test |
