summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xctdb/tests/eventscripts/simple/50.samba.monitor.103.sh8
-rwxr-xr-xctdb/tests/eventscripts/simple/50.samba.monitor.104.sh8
2 files changed, 14 insertions, 2 deletions
diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.103.sh b/ctdb/tests/eventscripts/simple/50.samba.monitor.103.sh
index 8854780cad..924d953ff4 100755
--- a/ctdb/tests/eventscripts/simple/50.samba.monitor.103.sh
+++ b/ctdb/tests/eventscripts/simple/50.samba.monitor.103.sh
@@ -7,6 +7,12 @@ define_test "port 445 down"
setup_samba
tcp_port_down 445
-required_result 1 "ERROR: samba tcp port 445 is not responding"
+required_result 1 <<EOF
+ERROR: samba tcp port 445 is not responding
+netstat -l -t -n shows this output:
+Active Internet connections (servers only)
+Proto Recv-Q Send-Q Local Address Foreign Address State
+tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
+EOF
simple_test
diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.104.sh b/ctdb/tests/eventscripts/simple/50.samba.monitor.104.sh
index a29e7838b3..c05b8d45f6 100755
--- a/ctdb/tests/eventscripts/simple/50.samba.monitor.104.sh
+++ b/ctdb/tests/eventscripts/simple/50.samba.monitor.104.sh
@@ -7,6 +7,12 @@ define_test "port 139 down"
setup_samba
tcp_port_down 139
-required_result 1 "ERROR: samba tcp port 139 is not responding"
+required_result 1 <<EOF
+ERROR: samba tcp port 139 is not responding
+netstat -l -t -n shows this output:
+Active Internet connections (servers only)
+Proto Recv-Q Send-Q Local Address Foreign Address State
+tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
+EOF
simple_test