Commit 59c7c3bc authored by Mark's avatar Mark
Browse files

Add hydra readiness check

parent 7a0f9a98
Pipeline #6190 passed with stages
in 5 minutes and 20 seconds
......@@ -143,6 +143,9 @@ frontend-e2etest:
script:
- cd frontend
- npm install
# wait for hydradmin to be ready
- TIMER=0
- while [[ $HYDRAADMINSTATUS -ne "200" && 60 -ge $TIMER ]]; do HYDRAADMINSTATUS=`curl http://hydra:4445/health/ready -o /dev/null -w "%{http_code}"` || TIMER=$TIMER+5 && sleep 5 ; done
# create oauth client
- ./test/create-hydra-client.sh $OAUTH_CLIENT_ID $OAUTH_CLIENT_SECRET $BASE_URL hydra:4445
# create test users
......@@ -155,6 +158,9 @@ frontend-e2etest:
- ./assign-role.bash $ADMIN_USERNAME admin backend:5000
- ./grant-access.bash $ADMIN_USERNAME user-panel backend:5000
- ./grant-access.bash $TESTUSER_USERNAME user-panel backend:5000
# wait for hydra sso endpoint to be ready
- TIMER=0
- while [[ $HYDRASTATUS -ne "200" && 60 -ge $TIMER ]]; do HYDRASTATUS=`curl http://hydra:4444/health/ready -o /dev/null -w "%{http_code}"` || TIMER=$TIMER+5 && sleep 5 ; done
# run the tests
- cd ../../frontend/
- npm run test
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment