From: danielhanrahan Date: Wed, 13 Nov 2024 12:57:50 +0000 (+0000) Subject: [k6] Output git build info in k6 log X-Git-Tag: 3.5.5~28^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=26a6b65af5d6ea42fa23b82e24c01abe0b193c5f;p=cps.git [k6] Output git build info in k6 log - output build info in k6 log using actuator endpoint - use quiet output while pulling images for less log noise Issue-ID: CPS-2445 Signed-off-by: danielhanrahan Change-Id: I4464b70650828c842c94677dddcc4d112f9758e0 --- diff --git a/k6-tests/setup.sh b/k6-tests/setup.sh index c2cdc206be..a4508e180d 100755 --- a/k6-tests/setup.sh +++ b/k6-tests/setup.sh @@ -15,7 +15,7 @@ # limitations under the License. # -docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub up -d +docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub up --quiet-pull -d echo "Waiting for CPS to start..." READY_MESSAGE="Inventory Model updated successfully" @@ -28,3 +28,8 @@ for CONTAINER_ID in $CONTAINER_IDS; do echo "Checking logs for container: $CONTAINER_ID" docker logs "$CONTAINER_ID" -f | grep -m 1 "$READY_MESSAGE" >/dev/null && echo "CPS is ready in container: $CONTAINER_ID" || true done + +# Output build information including git commit info +echo "Build information:" +curl http://localhost:8883/actuator/info +echo