Slience output from curl for integration tests

We use curl in our integration test script to make sure the application container is
available before moving on. We expect many connection errors and don't care
about the output of curl, so this will just swallow all of the output.
This commit is contained in:
graham-dds
2019-12-18 12:04:38 -05:00
parent 325441dd42
commit d247620c51
2 changed files with 5 additions and 3 deletions

View File

@@ -72,15 +72,18 @@ $CONTAINER_IMAGE \
# Use curl to wait for application container to become available
docker pull curlimages/curl:latest
echo "Waiting for application container to become available"
docker run --network atat \
curlimages/curl:latest \
curl --connect-timeout 3 \
curl \
--silent \
--connect-timeout 3 \
--max-time 5 \
--retry $CONTAINER_TIMEOUT \
--retry-connrefused \
--retry-delay 1 \
--retry-max-time $CONTAINER_TIMEOUT \
test-atat:8000
test-atat:8000 >/dev/null
# Run Ghost Inspector tests
docker pull ghostinspector/test-runner-standalone:latest