diff options
Diffstat (limited to 'plugins/t')
-rw-r--r-- | plugins/t/check_http.t | 6 |
1 files changed, 5 insertions, 1 deletions
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; | |||
9 | use Test::More; | 9 | use Test::More; |
10 | use NPTest; | 10 | use NPTest; |
11 | 11 | ||
12 | plan tests => 21; | 12 | plan tests => 22; |
13 | 13 | ||
14 | my $successOutput = '/OK.*HTTP.*second/'; | 14 | my $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" ); |
97 | cmp_ok( $res->return_code, "==", 0, "And also when not found"); | 97 | cmp_ok( $res->return_code, "==", 0, "And also when not found"); |
98 | |||
99 | $res = NPTest->testCmd( "./check_http -H www.worldfirefoxday.com -f follow" ); | ||
100 | is( $res->return_code, 0, "Redirection based on location is okay"); | ||
101 | |||