Skip to content

Commit

Permalink
Wait on /api/core/sites to also ensure database is up
Browse files Browse the repository at this point in the history
  • Loading branch information
tdonohue committed Mar 18, 2021
1 parent ba4c7a8 commit 43d2351
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ jobs:
- name: Wait for DSpace REST Backend to be ready (for e2e tests)
uses: nev7n/wait_for_response@v1
with:
url: 'http://localhost:8080/server/api'
# We use the 'sites' endpoint to also ensure the database is ready
url: 'http://localhost:8080/server/api/core/sites'
responseCode: 200
timeout: 30000

- name: Check DSpace REST Backend response (for e2e tests)
- name: Get DSpace REST Backend info/properties
run: curl http://localhost:8080/server/api

- name: Run e2e tests (integration tests)
Expand Down

0 comments on commit 43d2351

Please sign in to comment.