about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorClaude Sonnet 4.62026-06-15 16:23:00 +0000
committerFrederick Muriuki Muriithi2026-06-15 11:28:19 -0500
commit28667600ac91f3dfe2da7481d13532e332e14b15 (patch)
treea4ca9ea3726fd6c5f93be67d4b33d557278639f3 /README.md
parentbbc7838937f643ae84d153626a4820e6acc00ec5 (diff)
downloadgn-integration-tests-28667600ac91f3dfe2da7481d13532e332e14b15.tar.gz
conftest: add readiness check before test session
Poll each service base URL until it responds with a non-502/503 status
before the test session begins. Retries on:

  - ConnectionError: process not yet bound to its port
  - 502/503: Nginx upstream-not-ready response (served while the upstream
    gunicorn process is still starting up behind the reverse proxy)

Any other HTTP response is treated as "service is up". Polls every 2
seconds for up to 120 seconds, then raises RuntimeError with a clear
message.

This prevents spurious failures when smoke tests are queued immediately
after a service restart.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions