mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Wait on /api/core/sites to also ensure database is up
This commit is contained in:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -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)
|
||||
|
Reference in New Issue
Block a user