[Nagiosplug-checkins] nagiosplug/plugins/t check_http.t,1.11,1.12

Ton Voon tonvoon at users.sourceforge.net
Thu Oct 19 21:00:01 CEST 2006


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

Modified Files:
	check_http.t 
Log Message:
Redirection error if other headers beginning with L (Aravind Gottipati - 1562572)


Index: check_http.t
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/t/check_http.t,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- check_http.t	25 May 2006 15:34:54 -0000	1.11
+++ check_http.t	19 Oct 2006 18:59:58 -0000	1.12
@@ -9,7 +9,7 @@
 use Test::More;
 use NPTest;
 
-plan tests => 21;
+plan tests => 22;
 
 my $successOutput = '/OK.*HTTP.*second/';
 
@@ -95,3 +95,7 @@
 
 $res = NPTest->testCmd( "./check_http -H altinity.com -r 'nAGiOs' --invert-regex" );
 cmp_ok( $res->return_code, "==", 0, "And also when not found");
+
+$res = NPTest->testCmd( "./check_http -H www.worldfirefoxday.com -f follow" );
+is( $res->return_code, 0, "Redirection based on location is okay");
+





More information about the Commits mailing list