Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
stackspin
user-panel
Commits
59c7c3bc
Commit
59c7c3bc
authored
Mar 09, 2021
by
Mark
Browse files
Add hydra readiness check
parent
7a0f9a98
Pipeline
#6190
passed with stages
in 5 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
59c7c3bc
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment