mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-05-05 09:46:30 +00:00
Some checks are pending
CI / Integration Tests (push) Blocked by required conditions
CI / Security Tests (push) Blocked by required conditions
CI / i18n Validation (push) Blocked by required conditions
CI / Lint (push) Waiting to run
CI / Build language matrix (push) Waiting to run
CI / PR Test Policy (push) Waiting to run
CI / Advanced Security Scans (push) Waiting to run
CI / Build (push) Waiting to run
CI / Build-1 (push) Waiting to run
CI / Unit Tests (push) Blocked by required conditions
CI / Unit Tests-1 (push) Blocked by required conditions
CI / Coverage (push) Blocked by required conditions
CI / SonarQube (push) Blocked by required conditions
CI / PR Coverage Comment (push) Blocked by required conditions
CI / E2E Tests (1/4) (push) Blocked by required conditions
CI / E2E Tests (2/4) (push) Blocked by required conditions
CI / E2E Tests (3/4) (push) Blocked by required conditions
CI / E2E Tests (4/4) (push) Blocked by required conditions
CI / CI Dashboard (push) Blocked by required conditions
Publish to Docker Hub / Build and Push Docker (multi-arch) (push) Waiting to run
* chore: create release/v3.6.0 branch * fix: add row count limits to prevent DB bloat and handle HTML error responses (#1104) Integrated into release/v3.6.0 * fix combo smoke test payload for thinking models (#1105) Integrated into release/v3.6.0 * fix: improve Android/Termux ARM64 support for better-sqlite3 (#1107) Integrated into release/v3.6.0 * chore: finalize CHANGELOG and sync versions for v3.6.0 * fix(tests): align CI tests with v3.6.0 changes - compliance: match new cleanupExpiredLogs return shape (trimmed/maxRows) - model-sync: accept masked email in account field - e2e: allow 401/403/307 for auth-protected /api/providers endpoint --------- Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com> Co-authored-by: Paijo <14921983+oyi77@users.noreply.github.com> Co-authored-by: Randi <55005611+rdself@users.noreply.github.com> Co-authored-by: Suhayli <73960279+Suhay1i@users.noreply.github.com>
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import { test, expect } from "@playwright/test";
|
|
|
|
test.describe("API Health Checks", () => {
|
|
test("GET /api/monitoring/health returns OK", async ({ request }) => {
|
|
const res = await request.get("/api/monitoring/health");
|
|
expect(res.ok()).toBeTruthy();
|
|
const body = await res.json();
|
|
expect(body).toHaveProperty("status");
|
|
});
|
|
|
|
test("GET /api/v1/models returns model list", async ({ request }) => {
|
|
const res = await request.get("/api/v1/models");
|
|
expect(res.ok()).toBeTruthy();
|
|
const body = await res.json();
|
|
expect(body).toHaveProperty("data");
|
|
expect(Array.isArray(body.data)).toBe(true);
|
|
});
|
|
|
|
test("GET /api/providers returns provider list or requires auth", async ({ request }) => {
|
|
const res = await request.get("/api/providers");
|
|
// In CI with auth enabled, 401 is acceptable — endpoint is reachable
|
|
if (res.ok()) {
|
|
const body = await res.json();
|
|
expect(body).toHaveProperty("connections");
|
|
expect(Array.isArray(body.connections)).toBe(true);
|
|
} else {
|
|
expect([401, 403, 307]).toContain(res.status());
|
|
}
|
|
});
|
|
});
|