Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check to e2e test to verify all containers come up. #1389

Merged
merged 3 commits into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions turbinia/e2e/e2e-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,20 @@ docker-compose -f ./docker/local/docker-compose.yml up -d
echo "==> Sleep for 10s"
sleep 10s

echo "==> Show running instances"
docker ps -a
echo "==> Show and check running containers"
containers=( turbinia-server turbinia-worker turbinia-api-server redis )
for container in "${containers[@]}"
do
docker ps | grep "$container"
RET=$?
if [ $RET -ne 0 ]; then
echo "ERROR: $container container not up, exiting."
echo "==> Show $container logs"
docker logs $container
exit 1
fi
done
echo "All containers up and running!"

echo "==> Show loop device availability in worker"
docker exec -t turbinia-worker /sbin/losetup -a
Expand All @@ -34,6 +46,7 @@ docker exec -t turbinia-worker ls -al /evidence/
echo "==> Show container logs"
docker logs turbinia-server
docker logs turbinia-worker
docker logs turbinia-api-server

echo "==> Create Turbinia request"
docker exec -t turbinia-server turbiniactl -r 123456789 -P /evidence/e2e-recipe.yaml rawdisk -l /evidence/artifact_disk.dd
Expand Down
Loading