Skip to content

Commit

Permalink
Fix integration tests to not print list of buckets (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
rapphil authored Jul 18, 2024
1 parent d641dfa commit edc17b5
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/scripts/integ-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,16 @@ docker run -dt -p 8080:8080 \
# Wait for the container to start
sleep 5

docker logs $CONTAINER_NAME

curl -s -H 'host: s3.amazonaws.com' http://127.0.0.1:8080 | grep ListAllMyBucketsResult
curl -s -H 'host: s3.amazonaws.com' http://127.0.0.1:8080 | grep -o "<ListAllMyBucketsResult"
result=$?

docker stop $CONTAINER_NAME && docker rm $CONTAINER_NAME

if [[ "$result" == "1" ]]; then
echo "Integration tests failed"
exit 1
if [[ "$result" == "0" ]]; then
echo "Integration tests succeeded"
exit 0
fi

echo "Integration tests run successfully"
echo "Integration tests failed"

exit 0
exit 1

0 comments on commit edc17b5

Please sign in to comment.