Increase healthcheck retries for cps-and-ncmp 11/140411/3
authorhalil.cakal <halil.cakal@est.tech>
Mon, 10 Mar 2025 11:11:29 +0000 (11:11 +0000)
committerhalil.cakal <halil.cakal@est.tech>
Tue, 11 Mar 2025 13:31:37 +0000 (13:31 +0000)
- increase the healthcheck retries from 3 to 10

Issue-ID: CPS-2679

Change-Id: Idd541fd88eb804d552659c32f6c6c92a0919c405
Signed-off-by: halil.cakal <halil.cakal@est.tech>
docker-compose/docker-compose.yml
k6-tests/setup.sh

index 3b7cc60..4964673 100644 (file)
@@ -94,7 +94,7 @@ services:
       test: wget -q -O - http://localhost:8080/actuator/health/readiness | grep -q '{"status":"UP"}' || exit 1
       interval: 10s
       timeout: 10s
-      retries: 3
+      retries: 10
       start_period: 60s
 
   nginx:
index c01a0f6..d990475 100755 (executable)
@@ -26,11 +26,11 @@ docker-compose \
   --profile dmi-stub \
   up --quiet-pull --detach --wait || exit 1
 
-  if [[ "$testProfile" == "kpi" ]]; then
-    ACTUATOR_PORT=8883
-  elif [[ "$testProfile" == "endurance" ]]; then
-    ACTUATOR_PORT=8884
-  fi
+if [[ "$testProfile" == "kpi" ]]; then
+  ACTUATOR_PORT=8883
+elif [[ "$testProfile" == "endurance" ]]; then
+  ACTUATOR_PORT=8884
+fi
 
 echo "Build information:"
 curl --silent --show-error http://localhost:$ACTUATOR_PORT/actuator/info