Browse Source

Merge pull request #334 from asyd/silent-curl

test: Make curl silent
pull/335/head
Richard Nemeth 2 years ago
committed by GitHub
parent
commit
a0166092e9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      test_keycloak_init.sh

2
test_keycloak_init.sh

@ -14,7 +14,7 @@ function keycloak_start() {
echo "Starting keycloak docker container"
docker run -d --name unittest_keycloak -e KEYCLOAK_ADMIN="${KEYCLOAK_ADMIN}" -e KEYCLOAK_ADMIN_PASSWORD="${KEYCLOAK_ADMIN_PASSWORD}" -p "${KEYCLOAK_PORT}:8080" "${KEYCLOAK_DOCKER_IMAGE}" start-dev
SECONDS=0
until curl localhost:$KEYCLOAK_PORT; do
until curl --silent --output /dev/null localhost:$KEYCLOAK_PORT; do
sleep 5;
if [ ${SECONDS} -gt 180 ]; then
echo "Timeout exceeded";

Loading…
Cancel
Save