From 9ef63792f6ad590edb01c85578d542bbf7a1526e Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Thu, 17 Aug 2023 18:07:47 +0100
Subject: [PATCH] Expose the http port?

---
 .gitlab-ci.yml | 2 +-
 test/test.sh   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 288495b..e144c90 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,4 +10,4 @@ ctest-http:
     URL: https://www.incal.net/
   script:
     - sed -e "s,@URL@,$URL,g" < test/http/config.json > config.json
-    - with-container --mount=type=bind,source=$PWD/config.json,destination=/etc/service-prober.json --env=SERVICE_PROBER_CONFIG=/etc/service-prober.json $IMAGE_TAG ./test/test.sh
+    - with-container --mount=type=bind,source=$PWD/config.json,destination=/etc/service-prober.json --env=SERVICE_PROBER_CONFIG=/etc/service-prober.json --env=SERVICE_PROBER_HTTP_ADDR=:5521 --expose=5521 $IMAGE_TAG ./test/test.sh
diff --git a/test/test.sh b/test/test.sh
index 43966a8..b5d9e55 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -10,7 +10,7 @@ while [ $count -lt 120 ]; do
         exit 0
     fi
 
-    echo "probe_success=${value}"
+    [ -n "$value" ] && echo "probe_success=${value}"
 
     sleep 1
 done
-- 
GitLab