summaryrefslogtreecommitdiffstats
path: root/plugins/t
diff options
context:
space:
mode:
authorJacob Hansen <jhansen@op5.com>2021-05-18 13:19:43 (GMT)
committerJacob Hansen <jhansen@op5.com>2021-05-18 13:19:43 (GMT)
commitae2fe683e3a5e2254473777b0249efe66f24d26c (patch)
tree9c745353b56c93886b0f97675c88af063dbf6552 /plugins/t
parentde9f85c916db4515bd81f2a000d7fb57f8e0f46a (diff)
downloadmonitoring-plugins-ae2fe683e3a5e2254473777b0249efe66f24d26c.tar.gz
check_curl.t: Adjust test to use -f curl
It appears that `-f follow` doesn't work correctly in `check_curl` at the moment. Test adjusted to use `-f curl` instead. Issue for the above created: https://github.com/monitoring-plugins/monitoring-plugins/issues/1685 Signed-off-by: Jacob Hansen <jhansen@op5.com>
Diffstat (limited to 'plugins/t')
-rw-r--r--plugins/t/check_curl.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/t/check_curl.t b/plugins/t/check_curl.t
index 4f4124b..45ee533 100644
--- a/plugins/t/check_curl.t
+++ b/plugins/t/check_curl.t
@@ -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" );