diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-04-08 17:21:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-08 17:21:44 +0200 |
| commit | 613cb60c96e21eaafb82b80a6b6d84b1b1f9729f (patch) | |
| tree | b8b0b26ea8b14b74cd92da272c213dccf5356fbd /plugins/tests | |
| parent | ddd1bd9fbd84b29fb169e592943d1fdfc8ad0d7e (diff) | |
| download | monitoring-plugins-613cb60c96e21eaafb82b80a6b6d84b1b1f9729f.tar.gz | |
check_curl: Clean up (#2252)
* check_curl: remove unused variables
* check_curl: run formatter on related files
* check_curl_helpers: make code a bit more understandable
* check_curl helpers: general api cleanup and code style
Diffstat (limited to 'plugins/tests')
| -rwxr-xr-x | plugins/tests/check_curl.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/tests/check_curl.t b/plugins/tests/check_curl.t index e027b6f4..d0a866cb 100755 --- a/plugins/tests/check_curl.t +++ b/plugins/tests/check_curl.t | |||
| @@ -833,12 +833,12 @@ sub run_common_tests { | |||
| 833 | $cmd = "$command -u /statuscode/200 --proxy http://proxy.example.com:8080 --noproxy '*' -v"; | 833 | $cmd = "$command -u /statuscode/200 --proxy http://proxy.example.com:8080 --noproxy '*' -v"; |
| 834 | $result = NPTest->testCmd( $cmd ); | 834 | $result = NPTest->testCmd( $cmd ); |
| 835 | is( $result->return_code, 0, $cmd); | 835 | is( $result->return_code, 0, $cmd); |
| 836 | like( $result->output, '/.*proxy_resolves_hostname: 0.*/', "Proxy will not be used due to '*' in noproxy: ".$result->output ); | 836 | like( $result->output, '/.*have local name resolution: true.*/', "Proxy will not be used due to '*' in noproxy: ".$result->output ); |
| 837 | 837 | ||
| 838 | $cmd = "$command -u /statuscode/200 --proxy http://proxy.example.com:8080 --noproxy '127.0.0.1' -v"; | 838 | $cmd = "$command -u /statuscode/200 --proxy http://proxy.example.com:8080 --noproxy '127.0.0.1' -v"; |
| 839 | $result = NPTest->testCmd( $cmd ); | 839 | $result = NPTest->testCmd( $cmd ); |
| 840 | is( $result->return_code, 0, $cmd); | 840 | is( $result->return_code, 0, $cmd); |
| 841 | like( $result->output, '/.*proxy_resolves_hostname: 0.*/', "Proxy will not be used due to '127.0.0.1' in noproxy: ".$result->output ); | 841 | like( $result->output, '/.*have local name resolution: true.*/', "Proxy will not be used due to '127.0.0.1' in noproxy: ".$result->output ); |
| 842 | } | 842 | } |
| 843 | 843 | ||
| 844 | } | 844 | } |
