Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 394cf5a

Browse files
committed
Add healthcheck test for codegate
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
1 parent a4c0509 commit 394cf5a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/integration-tests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,21 @@ 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
95110
- name: Ensure certificates are available in the container
96111
timeout-minutes: 4
97112
run: |

0 commit comments

Comments
 (0)