71d14209a4
OmniRoute is an intelligent API gateway that unifies 20+ AI providers behind a single OpenAI-compatible endpoint. Features include intelligent routing with 6 strategies, multi-format translation (OpenAI/Claude/Gemini/Responses API), circuit breakers, semantic caching, combo fallback chains, real-time health monitoring, and a full dashboard with provider management, analytics, and CLI tool integration. Key highlights: - 20+ providers (Claude Code, Codex, Gemini CLI, GitHub Copilot, iFlow, Qwen, Kiro, etc.) - 6 routing strategies (Fill First, Round Robin, P2C, Random, Least Used, Cost Optimized) - Export/Import database backup with full archive support - Translator Playground with 4 modes (Playground, Chat Tester, Test Bench, Live Monitor) - 100% TypeScript across src/ and open-sse/ - Docker support with multi-stage builds - Comprehensive documentation and 9 dashboard screenshots
27 lines
953 B
TypeScript
27 lines
953 B
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", async ({ request }) => {
|
|
const res = await request.get("/api/providers");
|
|
expect(res.ok()).toBeTruthy();
|
|
const body = await res.json();
|
|
expect(body).toHaveProperty("connections");
|
|
expect(Array.isArray(body.connections)).toBe(true);
|
|
});
|
|
});
|