From 58ea98cc817d1d9c34b4895a8c828df6764e68a7 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 19 Oct 2006 18:59:58 +0000 Subject: 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 --- plugins/t/check_http.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/t/check_http.t') diff --git a/plugins/t/check_http.t b/plugins/t/check_http.t index 4e3c06cb..21ac0f7a 100644 --- a/plugins/t/check_http.t +++ b/plugins/t/check_http.t @@ -9,7 +9,7 @@ use strict; use Test::More; use NPTest; -plan tests => 21; +plan tests => 22; my $successOutput = '/OK.*HTTP.*second/'; @@ -95,3 +95,7 @@ like ( $res->output, "/pattern found/", "Error message says 'pattern found'"); $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"); + -- cgit v1.2.3