From bf73c3ce08f83f2f1e1a43e37926fac457150ec0 Mon Sep 17 00:00:00 2001 From: que01 Date: Mon, 21 Sep 2026 19:43:53 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E9=AA=8C=E8=AF=81=E6=97=A7=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E6=8F=90=E4=BE=9B=E9=A1=B9=E8=B7=AF=E7=94=B1=E5=B7=B2?= =?UTF-8?q?=E7=A7=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/test/http.integration.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/api/test/http.integration.test.js b/apps/api/test/http.integration.test.js index 26e75f3..cba594e 100644 --- a/apps/api/test/http.integration.test.js +++ b/apps/api/test/http.integration.test.js @@ -44,6 +44,8 @@ test("health and public content are available without authentication", async () const services = await request("/public/offerings"); assert.equal(services.statusCode, 200); assert.ok(JSON.parse(services.body).length >= 3); + const removedServicesRoute = await request("/public/services"); + assert.equal(removedServicesRoute.statusCode, 404); }); test("admin can install a template and public workspace exposes enabled configuration", async () => { @@ -339,6 +341,10 @@ test("admin can read and update brand and service configuration", async () => { payload: { username: "admin", password: process.env.SEED_ADMIN_PASSWORD }, }); const adminToken = JSON.parse(login.body).token; + const removedAdminRoute = await request("/admin/config/services", { + headers: { authorization: `Bearer ${adminToken}` }, + }); + assert.equal(removedAdminRoute.statusCode, 404); assert.ok(adminToken); const unauthorized = await request("/admin/config/brand");