[monitoring-plugins] check_http: fix test plan

Sven Nierlein git at monitoring-plugins.org
Tue Nov 29 16:40:11 CET 2022


    Module: monitoring-plugins
    Branch: master
    Commit: a517c62c1b536c934c92e4ac0f75b49bab927dca
    Author: Aksel Sjögren <asjogren at itrsgroup.com>
 Committer: Sven Nierlein <sven at nierlein.org>
      Date: Tue Nov 29 14:24:07 2022 +0100
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=a517c62

check_http: fix test plan

Fix test plan when run with NP_INTERNET_ACCESS=no, where the correct
number of steps must be skipped.
Caused by a removed test in 65fc7064295ac70d1388fa4db4d4d2cddd531e24.

Signed-off-by: Aksel Sjögren <asjogren at itrsgroup.com>

---

 plugins/t/check_http.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/t/check_http.t b/plugins/t/check_http.t
index 0c86622..1ca52f6 100644
--- a/plugins/t/check_http.t
+++ b/plugins/t/check_http.t
@@ -103,7 +103,7 @@ SKIP: {
         cmp_ok( $res->return_code, "==", 0, "And also when not found");
 }
 SKIP: {
-        skip "No internet access", 23 if $internet_access eq "no";
+        skip "No internet access", 22 if $internet_access eq "no";
 
         $res = NPTest->testCmd(
                 "./$plugin --ssl $host_tls_http"



More information about the Commits mailing list