diff options
author | Daniel Hanrahan <daniel.hanrahan@est.tech> | 2024-07-09 12:31:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2024-07-09 12:31:10 +0000 |
commit | 76c1369b1540ed0dd72bf8ae5c7c22da40220ea8 (patch) | |
tree | 447a6576f3b6a5cb80ffa1cff32988311e77e341 /k6-tests | |
parent | ef58dce98c142384b65e6cbacacb58387730da5d (diff) | |
parent | 3a9613f75519176efb2eb50bde88f268535e0ca9 (diff) |
Merge "Setup automated tests with two replicas of cps-and-ncmp"
Diffstat (limited to 'k6-tests')
-rwxr-xr-x | k6-tests/setup.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/k6-tests/setup.sh b/k6-tests/setup.sh index 4805e2ea43..86f6d26acd 100755 --- a/k6-tests/setup.sh +++ b/k6-tests/setup.sh @@ -18,5 +18,13 @@ docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub up -d echo "Waiting for CPS to start..." -READY_MESSAGE='Processing module sync fetched 0 advised cm handles from DB' -docker logs cps-and-ncmp -f | grep -m 1 "$READY_MESSAGE" >/dev/null || true +READY_MESSAGE="Processing module sync fetched 0 advised cm handles from DB" + +# Get the container IDs of the cps-and-ncmp replicas +CONTAINER_IDS=$(docker ps --filter "name=cps-and-ncmp" --format "{{.ID}}") + +# Check the logs for each container +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 || true +done |