[Nagiosplug-checkins] nagiosplug/plugins/t check_http.t,1.6,1.7

Ton Voon tonvoon at users.sourceforge.net
Tue Mar 7 02:34:00 CET 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins/t
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16483/t

Modified Files:
	check_http.t 
Log Message:
Added tests for two external websites with certificates


Index: check_http.t
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/t/check_http.t,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- check_http.t	7 Mar 2006 10:23:31 -0000	1.6
+++ check_http.t	7 Mar 2006 10:33:00 -0000	1.7
@@ -25,7 +25,7 @@
 		"An invalid (not known to DNS) hostname",  
 		"nosuchhost");
 
-plan tests => 6;
+plan tests => 8;
 
 
 $res = NPTest->testCmd(
@@ -46,3 +46,12 @@
 cmp_ok( $res->return_code, '==', 2, "Webserver $hostname_invalid not valid" );
 like( $res->output, "/Name or service not known.*/", "Output OK");
 
+$res = NPTest->testCmd(
+	"./check_http --ssl www.verisign.com"
+	);
+cmp_ok( $res->return_code, '==', 0, "Can read https for www.verisign.com" );
+
+$res = NPTest->testCmd(
+	"./check_http --ssl www.e-paycobalt.com"
+	);
+cmp_ok( $res->return_code, "==", 0, "Can read https for www.e-paycobalt.com (uses AES certificate)" );





More information about the Commits mailing list