Tests - eventscripts - Samba TCP port checking fixes
authorMartin Schwenke <martin@meltin.net>
Tue, 23 Aug 2011 03:52:42 +0000 (13:52 +1000)
committerMartin Schwenke <martin@meltin.net>
Tue, 30 Aug 2011 06:51:55 +0000 (16:51 +1000)
Expect "ctdb checktcpport" to exit with 1 if not implemented.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/eventscripts/simple/50.samba.monitor.109.sh
tests/eventscripts/simple/50.samba.monitor.110.sh

index b91374132516caf9e82d7290a6d2371de0e6beea..4bc854b623e6f7d8f9133a1e5354e3cd9e6db7a5 100755 (executable)
@@ -17,7 +17,7 @@ tcp_port_down 139
 required_result 1 <<EOF
 DEBUG: ctdb_check_ports - checker ctdb not implemented
 DEBUG: output from checker was:
-DEBUG: ctdb checktcpport 445 (exited with 0) with output:
+DEBUG: ctdb checktcpport 445 (exited with 1) with output:
 $ctdb_not_implemented
 ERROR: samba tcp port 139 is not responding
 DEBUG: nmap -n -oG - -PS 127.0.0.1 -p 445,139 shows this output:
index ca30d16fba942423f9e82b3ab47473776730ec01..80264cc24e301486951ca42a41bf80f971183923 100755 (executable)
@@ -18,7 +18,7 @@ tcp_port_down 139
 required_result 1 <<EOF
 DEBUG: ctdb_check_ports - checker ctdb not implemented
 DEBUG: output from checker was:
-DEBUG: ctdb checktcpport 445 (exited with 0) with output:
+DEBUG: ctdb checktcpport 445 (exited with 1) with output:
 $ctdb_not_implemented
 DEBUG: ctdb_check_ports - checker nmap not implemented
 DEBUG: output from checker was: