diff options
| author | Sven Nierlein <sven@nierlein.de> | 2021-05-21 13:06:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-21 13:06:37 +0200 |
| commit | 6946b546feb9635413932861c4256f0067846860 (patch) | |
| tree | 8f2de1d6bb3359796685d2d3ca8c56ddfd4fc110 /plugins/t/check_curl.t | |
| parent | f0ac7fcc7c40fab04c00fbbc8c091e89e77b0f74 (diff) | |
| parent | b428cc17f75682465e6f1e59b32fdec02b87ceac (diff) | |
| download | monitoring-plugins-6946b546feb9635413932861c4256f0067846860.tar.gz | |
Merge pull request #1686 from monitoring-plugins/feature_github_actions
Migrate to GitHub actions
Diffstat (limited to 'plugins/t/check_curl.t')
| -rw-r--r-- | plugins/t/check_curl.t | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/t/check_curl.t b/plugins/t/check_curl.t index a4f1dfb3..45ee5339 100644 --- a/plugins/t/check_curl.t +++ b/plugins/t/check_curl.t | |||
| @@ -84,7 +84,7 @@ like( $res->output, '/^Host: testhost:8001\s*$/ms', "Host Header OK" ); | |||
| 84 | like( $res->output, '/CURLOPT_URL: http:\/\/'.$host_tcp_http.':80\//ms', "Url OK" ); | 84 | like( $res->output, '/CURLOPT_URL: http:\/\/'.$host_tcp_http.':80\//ms', "Url OK" ); |
| 85 | 85 | ||
| 86 | SKIP: { | 86 | SKIP: { |
| 87 | skip "No internet access", 3 if $internet_access eq "no"; | 87 | skip "No internet access", 4 if $internet_access eq "no"; |
| 88 | 88 | ||
| 89 | $res = NPTest->testCmd("./$plugin -v -H $host_tls_http -S"); | 89 | $res = NPTest->testCmd("./$plugin -v -H $host_tls_http -S"); |
| 90 | like( $res->output, '/^Host: '.$host_tls_http.'\s*$/ms', "Host Header OK" ); | 90 | like( $res->output, '/^Host: '.$host_tls_http.'\s*$/ms', "Host Header OK" ); |
| @@ -120,7 +120,7 @@ SKIP: { | |||
| 120 | cmp_ok( $res->return_code, "==", 0, "And also when not found"); | 120 | cmp_ok( $res->return_code, "==", 0, "And also when not found"); |
| 121 | } | 121 | } |
| 122 | SKIP: { | 122 | SKIP: { |
| 123 | skip "No internet access", 16 if $internet_access eq "no"; | 123 | skip "No internet access", 28 if $internet_access eq "no"; |
| 124 | 124 | ||
| 125 | $res = NPTest->testCmd( | 125 | $res = NPTest->testCmd( |
| 126 | "./$plugin --ssl $host_tls_http" | 126 | "./$plugin --ssl $host_tls_http" |
| @@ -193,8 +193,7 @@ SKIP: { | |||
| 193 | ); | 193 | ); |
| 194 | cmp_ok( $res->return_code, "==", 0, "Can read https for www.e-paycobalt.com (uses AES certificate)" ); | 194 | cmp_ok( $res->return_code, "==", 0, "Can read https for www.e-paycobalt.com (uses AES certificate)" ); |
| 195 | 195 | ||
| 196 | 196 | $res = NPTest->testCmd( "./$plugin -H www.mozilla.com -u /firefox -f curl" ); | |
| 197 | $res = NPTest->testCmd( "./$plugin -H www.mozilla.com -u /firefox -f follow" ); | ||
| 198 | is( $res->return_code, 0, "Redirection based on location is okay"); | 197 | is( $res->return_code, 0, "Redirection based on location is okay"); |
| 199 | 198 | ||
| 200 | $res = NPTest->testCmd( "./$plugin -H www.mozilla.com --extended-perfdata" ); | 199 | $res = NPTest->testCmd( "./$plugin -H www.mozilla.com --extended-perfdata" ); |
