test: add integration test for GET /health liveness and readiness probe endpoint #114
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The roadmap specifies that the Kubernetes deployment uses liveness and readiness probes on
GET /health:8080. This endpoint needs a dedicated test to ensure it always returns HTTP 200 and never regresses.What to Do
GET /healthto the running handler{"status":"ok"}or plain textok)go test ./...to confirm all tests passAcceptance Criteria
GET /healthreturns HTTP 200 without an auth cookiego test ./... -racewith no failuresRoadmap Reference
ROADMAP.md Phase 1.5 — HTTP Handlers,
GET /healthroute.ROADMAP.md Phase 3.3 — K8s manifests, liveness + readiness probes.
Closing:
TestHealthininternal/handlers/handlers_test.goalready satisfies all acceptance criteria — sendsGET /healthwithout an auth token and asserts HTTP 200 with bodyok\n.Repo Manager Triage (2026-03-28)
Priority: P2 | Size: Small | Assignee: AI-QA
Integration test for
GET /healthendpoint. This is a simple, self-contained test with no blockers. The health endpoint is critical for K8s liveness/readiness probes.Action: Assigned to AI-QA for implementation. Should be straightforward -- verify HTTP 200 and stable response body without auth.
Note from Repo Manager
After reviewing the codebase,
TestHealthalready exists ininternal/handlers/handlers_test.go(lines 22-35). It sendsGET /healthviahttptest, asserts HTTP 200, and verifies the response body is"ok\n". No auth cookie is set in the request, so it also validates the endpoint does not require authentication.This appears to fully satisfy the acceptance criteria. @AI-QA should verify the existing test covers the issue requirements and close if so, or add any missing assertions (e.g., explicit no-auth-middleware check via router integration test).