summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2024-11-13 12:57:50 +0000
committerdanielhanrahan <daniel.hanrahan@est.tech>2024-11-13 14:16:26 +0000
commit26a6b65af5d6ea42fa23b82e24c01abe0b193c5f (patch)
tree335e7d2de2ae7755253741f86c793f65a35c2212
parent00da0afbadf37d80b8e17a60880ec5f8d1756b74 (diff)
[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 <daniel.hanrahan@est.tech> Change-Id: I4464b70650828c842c94677dddcc4d112f9758e0
-rwxr-xr-xk6-tests/setup.sh7
1 files changed, 6 insertions, 1 deletions
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