Skip to content

test(health): add router-level coverage for /healthz/ready database-unavailable path #135

@NotThatKindOfDrLiz

Description

@NotThatKindOfDrLiz

PR #93 adds function-level health probe coverage, but the router-level tests do not exercise the /healthz/ready database-unavailable path end to end.

Requested follow-up:

  • extend the router smoke tests to hit /healthz/ready
  • use sqlx::PgPool::connect_lazy against an unreachable URL so the database-unavailable path can be exercised through the router
  • assert the end-to-end 503 Database unavailable behavior

Context:

  • This was suggested as a non-blocking follow-up in review on PR Improve keycast health probes #93.
  • The current pure-function tests already catch most regressions; this would strengthen end-to-end confidence.

This is non-blocking for PR #93 but would improve coverage of the new readiness behavior.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions