From 0eb906d5df5e881ecd75b3049c934818f68ab6d4 Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Thu, 29 Aug 2024 07:39:25 +0000 Subject: [PATCH] test(reset-connection): remove unnecessary read connection permission --- .../v1/connections/reset-connection.test.js | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/packages/backend/src/controllers/api/v1/connections/reset-connection.test.js b/packages/backend/src/controllers/api/v1/connections/reset-connection.test.js index edae043c..e2d5ecb2 100644 --- a/packages/backend/src/controllers/api/v1/connections/reset-connection.test.js +++ b/packages/backend/src/controllers/api/v1/connections/reset-connection.test.js @@ -31,13 +31,6 @@ describe('POST /api/v1/connections/:connectionId/reset', () => { }, }); - await createPermission({ - action: 'read', - subject: 'Connection', - roleId: currentUserRole.id, - conditions: ['isCreator'], - }); - await createPermission({ action: 'create', subject: 'Connection', @@ -72,13 +65,6 @@ describe('POST /api/v1/connections/:connectionId/reset', () => { verified: true, }); - await createPermission({ - action: 'read', - subject: 'Connection', - roleId: currentUserRole.id, - conditions: [], - }); - await createPermission({ action: 'create', subject: 'Connection', @@ -95,13 +81,6 @@ describe('POST /api/v1/connections/:connectionId/reset', () => { it('should return not found response for not existing connection UUID', async () => { const notExistingConnectionUUID = Crypto.randomUUID(); - await createPermission({ - action: 'read', - subject: 'Connection', - roleId: currentUserRole.id, - conditions: ['isCreator'], - }); - await createPermission({ action: 'create', subject: 'Connection', @@ -116,13 +95,6 @@ describe('POST /api/v1/connections/:connectionId/reset', () => { }); it('should return bad request response for invalid UUID', async () => { - await createPermission({ - action: 'read', - subject: 'Connection', - roleId: currentUserRole.id, - conditions: ['isCreator'], - }); - await createPermission({ action: 'create', subject: 'Connection',