test(reset-connection): remove unnecessary read connection permission
This commit is contained in:
@@ -31,13 +31,6 @@ describe('POST /api/v1/connections/:connectionId/reset', () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
await createPermission({
|
|
||||||
action: 'read',
|
|
||||||
subject: 'Connection',
|
|
||||||
roleId: currentUserRole.id,
|
|
||||||
conditions: ['isCreator'],
|
|
||||||
});
|
|
||||||
|
|
||||||
await createPermission({
|
await createPermission({
|
||||||
action: 'create',
|
action: 'create',
|
||||||
subject: 'Connection',
|
subject: 'Connection',
|
||||||
@@ -72,13 +65,6 @@ describe('POST /api/v1/connections/:connectionId/reset', () => {
|
|||||||
verified: true,
|
verified: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
await createPermission({
|
|
||||||
action: 'read',
|
|
||||||
subject: 'Connection',
|
|
||||||
roleId: currentUserRole.id,
|
|
||||||
conditions: [],
|
|
||||||
});
|
|
||||||
|
|
||||||
await createPermission({
|
await createPermission({
|
||||||
action: 'create',
|
action: 'create',
|
||||||
subject: 'Connection',
|
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 () => {
|
it('should return not found response for not existing connection UUID', async () => {
|
||||||
const notExistingConnectionUUID = Crypto.randomUUID();
|
const notExistingConnectionUUID = Crypto.randomUUID();
|
||||||
|
|
||||||
await createPermission({
|
|
||||||
action: 'read',
|
|
||||||
subject: 'Connection',
|
|
||||||
roleId: currentUserRole.id,
|
|
||||||
conditions: ['isCreator'],
|
|
||||||
});
|
|
||||||
|
|
||||||
await createPermission({
|
await createPermission({
|
||||||
action: 'create',
|
action: 'create',
|
||||||
subject: 'Connection',
|
subject: 'Connection',
|
||||||
@@ -116,13 +95,6 @@ describe('POST /api/v1/connections/:connectionId/reset', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should return bad request response for invalid UUID', async () => {
|
it('should return bad request response for invalid UUID', async () => {
|
||||||
await createPermission({
|
|
||||||
action: 'read',
|
|
||||||
subject: 'Connection',
|
|
||||||
roleId: currentUserRole.id,
|
|
||||||
conditions: ['isCreator'],
|
|
||||||
});
|
|
||||||
|
|
||||||
await createPermission({
|
await createPermission({
|
||||||
action: 'create',
|
action: 'create',
|
||||||
subject: 'Connection',
|
subject: 'Connection',
|
||||||
|
Reference in New Issue
Block a user