From e1ebb78331b04d8985c39509daff223fa3985aaf Mon Sep 17 00:00:00 2001 From: chan Date: Fri, 27 Feb 2026 15:04:13 +0900 Subject: [PATCH] =?UTF-8?q?=20[vite]=20http=20proxy=20error:=20/api/v1/adm?= =?UTF-8?q?in/tenants=3Flimit=3D1000&offset=3D0=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adminfront/tests/tenants.spec.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/adminfront/tests/tenants.spec.ts b/adminfront/tests/tenants.spec.ts index b54b4c8b..817f285a 100644 --- a/adminfront/tests/tenants.spec.ts +++ b/adminfront/tests/tenants.spec.ts @@ -27,6 +27,17 @@ test.describe("Tenants Management", () => { await route.fulfill({ json: { issuer: "http://localhost:5000/oidc" } }); }, ); + + // Default mock for tenants to avoid proxy leaks + await page.route("**/api/v1/admin/tenants**", async (route) => { + if (route.request().method() === "GET") { + await route.fulfill({ + json: { items: [], total: 0, limit: 100, offset: 0 }, + }); + } else { + await route.continue(); + } + }); }); test("should list tenants", async ({ page }) => {