From 43d2351adacb55d26955f42146b8b68be60fb5da Mon Sep 17 00:00:00 2001 From: Tim Donohue Date: Thu, 18 Mar 2021 09:01:44 -0500 Subject: [PATCH] Wait on /api/core/sites to also ensure database is up --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8c6d9212370..0b5b3f9d8c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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)