aboutsummaryrefslogtreecommitdiffstats
path: root/k6-tests
diff options
context:
space:
mode:
authorDaniel Hanrahan <daniel.hanrahan@est.tech>2025-02-17 18:30:59 +0000
committerGerrit Code Review <gerrit@onap.org>2025-02-17 18:30:59 +0000
commit68f577fc89e430492cac762e6d295fa6072409d1 (patch)
treede29f6c8a576fcb5850adea5da2cfee70a054792 /k6-tests
parent5f00f0cff15d7db8bb6511e8fd6d382a1de756eb (diff)
parent8865f8a24a9a3152d3e4d117c117ed9c4417e233 (diff)
Merge "Add actuator port based on testProfile provided"
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