Files
edmand46 e863cc3bf7
CI / check (push) Successful in 18s
CI / publish (push) Has been skipped
Align e2e-prod suite with the monolith API; drop dead applyOverride; treat run_not_active as terminal
2026-09-06 09:53:45 +03:00

26 lines
911 B
TypeScript

import { describe, it, expect, beforeAll } from 'vitest';
import { loadArtifact } from './_setup/harness.js';
// Smoke gate: if egress to prod is blocked or the gateway is down, fail fast here.
describe('e2e-prod: health', () => {
let baseUrl: string;
beforeAll(() => {
baseUrl = loadArtifact().baseUrl;
});
it('GET /health is ok', async () => {
const res = await fetch(`${baseUrl}/health`);
expect(res.ok).toBe(true);
const body = (await res.json()) as { status?: string };
expect(body.status).toBe('ok');
});
it('GET /readyz reports every backing store ready', async () => {
const res = await fetch(`${baseUrl}/readyz`);
expect(res.ok).toBe(true);
const body = (await res.json()) as { status?: string; checks?: Record<string, string> };
expect(body.status).toBe('ready');
expect(body.checks).toMatchObject({ db: 'ok', redis: 'ok', s3: 'ok' });
});
});