diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 288495b78a954374ba5a757e35145ffd60bc00dc..e144c90bb4734ec98c6e0b6571b2139fe7722416 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 43966a8ad64cfd8a82b5a5c08bda0bc658ea4057..b5d9e557a83d002e82ba0f854bbb2bf4493d9f49 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