From d43aebb18bfb4f6ffdbcc41f9fafc2d271578ada Mon Sep 17 00:00:00 2001 From: m-goggins Date: Wed, 30 Oct 2024 08:59:41 -0400 Subject: [PATCH] get response status --- .github/workflows/ci.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c1037d1dd..e29a9a1eb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -74,6 +74,13 @@ jobs: echo "Waiting for Query Connector to be ready before running Playwright..." sleep 5 done + - name: Poll until HAPI server is ready + run: | + until [[ "$(curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/fhir/Patient)" -eq 200 ]]; do + echo "Waiting for HAPI server to be ready before running Playwright..." + echo "Response status: $(curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/fhir/Patient)" + sleep 5 + done - name: Poll until FHIR server has data run: | until curl -s http://localhost:8080/fhir/Patient | jq '.entry | length > 0' | grep -q 'true'; do