forked from baron/baron-sso
[vite] http proxy error: /api/v1/admin/tenants?limit=1000&offset=0 해결
This commit is contained in:
@@ -27,6 +27,17 @@ test.describe("Tenants Management", () => {
|
|||||||
await route.fulfill({ json: { issuer: "http://localhost:5000/oidc" } });
|
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 }) => {
|
test("should list tenants", async ({ page }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user