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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
test_keycloak_init.sh
|
@ -14,7 +14,7 @@ function keycloak_start() { |
|
|
echo "Starting keycloak docker container" |
|
|
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 |
|
|
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 |
|
|
SECONDS=0 |
|
|
until curl localhost:$KEYCLOAK_PORT; do |
|
|
|
|
|
|
|
|
until curl --silent --output /dev/null localhost:$KEYCLOAK_PORT; do |
|
|
sleep 5; |
|
|
sleep 5; |
|
|
if [ ${SECONDS} -gt 180 ]; then |
|
|
if [ ${SECONDS} -gt 180 ]; then |
|
|
echo "Timeout exceeded"; |
|
|
echo "Timeout exceeded"; |
|
|