Skip to content

Make the API redirect test independent of the database - #16

Merged
Filionus merged 1 commit into
mainfrom
fix/health-independent-test
Nov 28, 2026
Merged

Filionus merged 1 commit into
mainfrom
fix/health-independent-test

Conversation

@Filionus

Copy link
Copy Markdown
Collaborator

The test expected GET /api/health to return 200. With feat/b6-health-keepalive the route queries the database and returns 503 when Supabase is not configured or unreachable.

The test only has to show that API routes are not redirected to a language prefix. It now checks that there is no Location header, accepts 200 or 503, and requires a JSON response, so a 404 or an HTML page still fails.

Failing-first does not apply here: the old test is green on main today.

The test expected GET /api/health to return 200. With
feat/b6-health-keepalive the route queries the database and returns 503
when Supabase is not configured or unreachable.

The test only has to show that API routes are not redirected to a language
prefix. It now checks that there is no Location header, accepts 200 or 503,
and requires a JSON response, so a 404 or an HTML page still fails.

Failing-first does not apply here: the old test is green on main today.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Filionus
Filionus merged commit 87768ab into main Nov 28, 2026
1 check passed
@Filionus
Filionus deleted the fix/health-independent-test branch November 28, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant