diff options
| author | Lorenz <12514511+RincewindsHat@users.noreply.github.com> | 2022-09-09 16:56:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-09 16:56:49 +0200 |
| commit | cca769b3155c680b7ec637782ce0ffe539aa482c (patch) | |
| tree | fe37883c9bd1ad531fc1d9d48b6a9f439727126e /plugins/t | |
| parent | b82a1667fe5c063bc9a174a76c665b27bf34b117 (diff) | |
| parent | 3ad5fe9d84138da1451429bfac3b9b4024393d25 (diff) | |
| download | monitoring-plugins-cca769b3155c680b7ec637782ce0ffe539aa482c.tar.gz | |
Merge branch 'master' into check_load-compiler_warnings
Diffstat (limited to 'plugins/t')
| -rw-r--r-- | plugins/t/check_curl.t | 7 | ||||
| -rw-r--r-- | plugins/t/check_http.t | 8 |
2 files changed, 2 insertions, 13 deletions
diff --git a/plugins/t/check_curl.t b/plugins/t/check_curl.t index ada6a045..693f4b25 100644 --- a/plugins/t/check_curl.t +++ b/plugins/t/check_curl.t | |||
| @@ -9,7 +9,7 @@ use Test::More; | |||
| 9 | use POSIX qw/mktime strftime/; | 9 | use POSIX qw/mktime strftime/; |
| 10 | use NPTest; | 10 | use NPTest; |
| 11 | 11 | ||
| 12 | plan tests => 58; | 12 | plan tests => 57; |
| 13 | 13 | ||
| 14 | my $successOutput = '/OK.*HTTP.*second/'; | 14 | my $successOutput = '/OK.*HTTP.*second/'; |
| 15 | 15 | ||
| @@ -188,11 +188,6 @@ SKIP: { | |||
| 188 | like ( $res->output, '/time_connect=[\d\.]+/', 'Extended Performance Data Output OK' ); | 188 | like ( $res->output, '/time_connect=[\d\.]+/', 'Extended Performance Data Output OK' ); |
| 189 | like ( $res->output, '/time_ssl=[\d\.]+/', 'Extended Performance Data SSL Output OK' ); | 189 | like ( $res->output, '/time_ssl=[\d\.]+/', 'Extended Performance Data SSL Output OK' ); |
| 190 | 190 | ||
| 191 | $res = NPTest->testCmd( | ||
| 192 | "./$plugin --ssl -H www.e-paycobalt.com" | ||
| 193 | ); | ||
| 194 | cmp_ok( $res->return_code, "==", 0, "Can read https for www.e-paycobalt.com (uses AES certificate)" ); | ||
| 195 | |||
| 196 | $res = NPTest->testCmd( "./$plugin -H www.mozilla.com -u /firefox -f curl" ); | 191 | $res = NPTest->testCmd( "./$plugin -H www.mozilla.com -u /firefox -f curl" ); |
| 197 | is( $res->return_code, 0, "Redirection based on location is okay"); | 192 | is( $res->return_code, 0, "Redirection based on location is okay"); |
| 198 | 193 | ||
diff --git a/plugins/t/check_http.t b/plugins/t/check_http.t index c137f7b4..0c866229 100644 --- a/plugins/t/check_http.t +++ b/plugins/t/check_http.t | |||
| @@ -9,7 +9,7 @@ use Test::More; | |||
| 9 | use POSIX qw/mktime strftime/; | 9 | use POSIX qw/mktime strftime/; |
| 10 | use NPTest; | 10 | use NPTest; |
| 11 | 11 | ||
| 12 | plan tests => 50; | 12 | plan tests => 49; |
| 13 | 13 | ||
| 14 | my $successOutput = '/OK.*HTTP.*second/'; | 14 | my $successOutput = '/OK.*HTTP.*second/'; |
| 15 | 15 | ||
| @@ -166,12 +166,6 @@ SKIP: { | |||
| 166 | like ( $res->output, '/time_connect=[\d\.]+/', 'Extended Performance Data Output OK' ); | 166 | like ( $res->output, '/time_connect=[\d\.]+/', 'Extended Performance Data Output OK' ); |
| 167 | like ( $res->output, '/time_ssl=[\d\.]+/', 'Extended Performance Data SSL Output OK' ); | 167 | like ( $res->output, '/time_ssl=[\d\.]+/', 'Extended Performance Data SSL Output OK' ); |
| 168 | 168 | ||
| 169 | $res = NPTest->testCmd( | ||
| 170 | "./$plugin --ssl -H www.e-paycobalt.com" | ||
| 171 | ); | ||
| 172 | cmp_ok( $res->return_code, "==", 0, "Can read https for www.e-paycobalt.com (uses AES certificate)" ); | ||
| 173 | |||
| 174 | |||
| 175 | $res = NPTest->testCmd( "./$plugin -H www.mozilla.com -u /firefox -f follow" ); | 169 | $res = NPTest->testCmd( "./$plugin -H www.mozilla.com -u /firefox -f follow" ); |
| 176 | is( $res->return_code, 0, "Redirection based on location is okay"); | 170 | is( $res->return_code, 0, "Redirection based on location is okay"); |
| 177 | 171 | ||
