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");