aboutsummaryrefslogtreecommitdiffstats
path: root/k6-tests
diff options
context:
space:
mode:
authormpriyank <priyank.maheshwari@est.tech>2025-02-14 16:08:41 +0000
committermpriyank <priyank.maheshwari@est.tech>2025-02-17 13:59:09 +0000
commit8865f8a24a9a3152d3e4d117c117ed9c4417e233 (patch)
tree824170c5fac60ee56f02e8ed5dec810bdf1fb97c /k6-tests
parent544438c3110eebbdd8c8e0eb8fea0d8d1eb02967 (diff)
Add actuator port based on testProfile provided
- kpi uses 8883 port for healthcheck and endurance profile uses 8884 port. Issue-ID: CPS-2642 Change-Id: I0ee63f14e30141d894eb0e8b9a646a3e4112dac8 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
Diffstat (limited to 'k6-tests')
-rwxr-xr-xk6-tests/setup.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/k6-tests/setup.sh b/k6-tests/setup.sh
index 3a121cf157..c01a0f6c60 100755
--- a/k6-tests/setup.sh
+++ b/k6-tests/setup.sh
@@ -26,6 +26,12 @@ 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
+
echo "Build information:"
-curl http://localhost:8883/actuator/info
+curl --silent --show-error http://localhost:$ACTUATOR_PORT/actuator/info
echo