Module: monitoring-plugins
 Branch: feature_github_actions
 Commit: ae2fe683e3a5e2254473777b0249efe66f24d26c
 Author: Jacob Hansen <jhan...@op5.com>
   Date: Tue May 18 15:19:43 2021 +0200
    URL: 
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=ae2fe68

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 <jhan...@op5.com>

---

 plugins/t/check_curl.t | 3 +--
 1 file changed, 1 insertion(+), 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: {
                 );
         cmp_ok( $res->return_code, "==", 0, "Can read https for 
www.e-paycobalt.com (uses AES certificate)" );
 
-
-        $res = NPTest->testCmd( "./$plugin -H www.mozilla.com -u /firefox -f 
follow" );
+        $res = NPTest->testCmd( "./$plugin -H www.mozilla.com -u /firefox -f 
curl" );
         is( $res->return_code, 0, "Redirection based on location is okay");
 
         $res = NPTest->testCmd( "./$plugin -H www.mozilla.com 
--extended-perfdata" );

Reply via email to