summaryrefslogtreecommitdiffstats
path: root/plugins/t/check_http.t
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2006-10-19 18:59:58 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2006-10-19 18:59:58 (GMT)
commit58ea98cc817d1d9c34b4895a8c828df6764e68a7 (patch)
treebf28f5ba0567f707a1494b1f7bd7ff757adf39ab /plugins/t/check_http.t
parentd15721d2f8a26cd01259931cca5b3c00a6f77b6c (diff)
downloadmonitoring-plugins-58ea98cc817d1d9c34b4895a8c828df6764e68a7.tar.gz
Redirection error if other headers beginning with L (Aravind Gottipati - 1562572)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1502 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/t/check_http.t')
-rw-r--r--plugins/t/check_http.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/t/check_http.t b/plugins/t/check_http.t
index 4e3c06c..21ac0f7 100644
--- a/plugins/t/check_http.t
+++ b/plugins/t/check_http.t
@@ -9,7 +9,7 @@ use strict;
9use Test::More; 9use Test::More;
10use NPTest; 10use NPTest;
11 11
12plan tests => 21; 12plan tests => 22;
13 13
14my $successOutput = '/OK.*HTTP.*second/'; 14my $successOutput = '/OK.*HTTP.*second/';
15 15
@@ -95,3 +95,7 @@ like ( $res->output, "/pattern found/", "Error message says 'pattern found'");
95 95
96$res = NPTest->testCmd( "./check_http -H altinity.com -r 'nAGiOs' --invert-regex" ); 96$res = NPTest->testCmd( "./check_http -H altinity.com -r 'nAGiOs' --invert-regex" );
97cmp_ok( $res->return_code, "==", 0, "And also when not found"); 97cmp_ok( $res->return_code, "==", 0, "And also when not found");
98
99$res = NPTest->testCmd( "./check_http -H www.worldfirefoxday.com -f follow" );
100is( $res->return_code, 0, "Redirection based on location is okay");
101