Enhance API with OIDC support, including login and callback endpoints. Update environment variables for OIDC configuration in .env.example. Add new features to the catalog service for listing software families, Minecraft versions, and deployment regions. Implement server management actions such as kill, delete, and update in the servers module. Integrate feature flags for maintenance mode in server operations. Update pnpm-lock.yaml with new dependencies and versions.
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 12s
CI / Go — node-agent tests (push) Failing after 9s
CI / Go — edge-gateway build (push) Successful in 17s

This commit is contained in:
TheOnlyMace
2026-07-05 18:39:53 +02:00
parent bf36cb3159
commit 50cd4b3ffd
225 changed files with 17824 additions and 436 deletions

View File

@@ -0,0 +1,52 @@
import { expect, test } from "@playwright/test";
test("home page loads", async ({ page }) => {
const response = await page.goto("/");
expect(response?.ok()).toBeTruthy();
await expect(page.locator("h1")).toBeVisible();
});
test("login page loads", async ({ page }) => {
const response = await page.goto("/login");
expect(response?.ok()).toBeTruthy();
await expect(page.getByRole("heading", { name: /Anmelden|Sign in|Log in/i })).toBeVisible();
await expect(page.getByLabel(/E-Mail|Email/i)).toBeVisible();
await expect(page.getByLabel(/^Passwort$|^Password$/i)).toBeVisible();
});
test("register page loads", async ({ page }) => {
const response = await page.goto("/register");
expect(response?.ok()).toBeTruthy();
await expect(
page.getByRole("heading", { name: /Konto erstellen|Create account/i }),
).toBeVisible();
await expect(page.getByLabel(/E-Mail|Email/i)).toBeVisible();
await expect(page.getByLabel(/^Passwort$|^Password$/i)).toBeVisible();
});
test("docs page loads", async ({ page }) => {
const response = await page.goto("/docs");
expect(response?.ok()).toBeTruthy();
await expect(
page.getByRole("heading", { name: /Dokumentation|Documentation/i }),
).toBeVisible();
});
test("API health if reachable", async ({ request }) => {
const apiUrl = process.env.API_URL ?? "http://localhost:3001";
let response;
try {
response = await request.get(`${apiUrl}/api/v1/health/live`, { timeout: 3000 });
} catch {
test.info().annotations.push({
type: "skip-reason",
description: "API not reachable",
});
return;
}
expect(response.ok()).toBeTruthy();
const body = (await response.json()) as { status?: string };
expect(body.status).toBe("ok");
});