Skip to content

Commit

Permalink
wait for instance to be ready before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall007 committed May 24, 2024
1 parent 1977f0c commit ceb0ccf
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions tasks/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,18 @@ tasks:

- name: ingress
actions:
- description: GitLab UI Health Check
wait:
network:
protocol: https
address: gitlab.uds.dev
code: 200
# `/-/readiness` endpoint returns 503 if any checks fail.
# When `?all=1` is specified, dependent services are also checked.
# https://docs.gitlab.com/ee/administration/monitoring/health_check.html#readiness
- description: GitLab Readiness Check
maxRetries: 30
cmd: |
STATUS=$(curl -s -o /dev/null --write-out '%{http_code}' 'https://gitlab.uds.dev/-/readiness?all=1')
echo "GitLab readiness status: ${STATUS}"
if [ $STATUS != "200" ]; then
sleep 10
exit 1
fi
- name: git
description: GitLab Repository Mirror Checks
Expand Down

0 comments on commit ceb0ccf

Please sign in to comment.