Skip to content

Commit fa5bbc4

Browse files
authored
Add healthcheck test for codegate (#1042)
Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent 426105e commit fa5bbc4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/integration-tests.yml

+17
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,23 @@ jobs:
9292
# Check mount configuration
9393
docker inspect $CODEGATE_CONTAINER_NAME -f '{{ json .Mounts }}' | jq
9494
95+
- name: Test the healthcheck endpoint
96+
timeout-minutes: 4
97+
run: |
98+
# Check the healthcheck endpoint is available
99+
while true; do
100+
echo "Checking for healthcheck endpoint in CodeGate..."
101+
102+
if curl --silent --fail --get "http://localhost:8989/health" >/dev/null; then
103+
echo "Healthcheck endpoint is available"
104+
break
105+
else
106+
echo "Healthcheck endpoint not available. Retrying in 5 seconds..."
107+
sleep 5
108+
fi
109+
done
110+
curl "http://localhost:8989/health"
111+
95112
- name: Ensure certificates are available in the container
96113
timeout-minutes: 4
97114
run: |

0 commit comments

Comments
 (0)