Skip to content

Commit

Permalink
Add healthcheck test for codegate (#1042)
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslav Dimitrov <[email protected]>
  • Loading branch information
rdimitrov authored Feb 13, 2025
1 parent 426105e commit fa5bbc4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,23 @@ jobs:
# Check mount configuration
docker inspect $CODEGATE_CONTAINER_NAME -f '{{ json .Mounts }}' | jq
- name: Test the healthcheck endpoint
timeout-minutes: 4
run: |
# Check the healthcheck endpoint is available
while true; do
echo "Checking for healthcheck endpoint in CodeGate..."
if curl --silent --fail --get "http://localhost:8989/health" >/dev/null; then
echo "Healthcheck endpoint is available"
break
else
echo "Healthcheck endpoint not available. Retrying in 5 seconds..."
sleep 5
fi
done
curl "http://localhost:8989/health"
- name: Ensure certificates are available in the container
timeout-minutes: 4
run: |
Expand Down

0 comments on commit fa5bbc4

Please sign in to comment.