mirror of
https://github.com/RocketChat/Rocket.Chat.git
synced 2025-12-27 22:40:49 +00:00
test(federation): add permissions update request to end-to-end tests
Some checks are pending
Code scanning - action / CodeQL-Build (push) Waiting to run
Some checks are pending
Code scanning - action / CodeQL-Build (push) Waiting to run
This commit is contained in:
parent
f6167a69be
commit
00605ecc20
@ -133,6 +133,13 @@ import { SynapseClient } from '../helper/synapse-client';
|
||||
},
|
||||
rc1AdminRequestConfig,
|
||||
);
|
||||
|
||||
await rc1AdminRequestConfig.request
|
||||
.post(api('permissions.update'))
|
||||
.set(rc1AdminRequestConfig.credentials)
|
||||
.send({ permissions: [{ _id: 'access-federation', roles: ['admin', 'user'] }] })
|
||||
.expect('Content-Type', 'application/json')
|
||||
.expect(200);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user