diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-13 12:49:06 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-13 12:49:06 +0200 |
commit | 6ae8ba911018571afddcf51c08e3d32f5efa3b5a (patch) | |
tree | 9ec1e2cdcf6aafcf6685a27569ec087907bb5045 /plugins/t | |
parent | 9afb5e2a6964aad149ca3ef0c175fcd510220505 (diff) | |
download | monitoring-plugins-6ae8ba911018571afddcf51c08e3d32f5efa3b5a.tar.gz |
check_curl: test adaption and output adaption
Diffstat (limited to 'plugins/t')
-rw-r--r-- | plugins/t/check_curl.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/t/check_curl.t b/plugins/t/check_curl.t index 7a930a4e..7f1a2de0 100644 --- a/plugins/t/check_curl.t +++ b/plugins/t/check_curl.t | |||
@@ -18,7 +18,7 @@ BEGIN { | |||
18 | } | 18 | } |
19 | 19 | ||
20 | 20 | ||
21 | my $successOutput = '/OK.*HTTP.*second/'; | 21 | my $successOutput = '/.*HTTP.*second/'; |
22 | 22 | ||
23 | my $res; | 23 | my $res; |
24 | my $plugin = 'check_http'; | 24 | my $plugin = 'check_http'; |
@@ -63,7 +63,7 @@ $res = NPTest->testCmd( | |||
63 | ); | 63 | ); |
64 | cmp_ok( $res->return_code, '==', 2, "Webserver $host_nonresponsive not responding" ); | 64 | cmp_ok( $res->return_code, '==', 2, "Webserver $host_nonresponsive not responding" ); |
65 | # was CRITICAL only, but both check_curl and check_http print HTTP CRITICAL (puzzle?!) | 65 | # was CRITICAL only, but both check_curl and check_http print HTTP CRITICAL (puzzle?!) |
66 | like( $res->output, "/HTTP CRITICAL - Invalid HTTP response received from host on port 80: cURL returned 28 - Connection timed out after/", "Output OK"); | 66 | like( $res->output, "/Invalid HTTP response received from host on port 80: cURL returned 28 - Connection timed out after/", "Output OK"); |
67 | 67 | ||
68 | $res = NPTest->testCmd( | 68 | $res = NPTest->testCmd( |
69 | "./$plugin $hostname_invalid -wt 1 -ct 2" | 69 | "./$plugin $hostname_invalid -wt 1 -ct 2" |