The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/tests/end-to-end/api/26-LDAP.ts

24 lines
685 B

import { expect } from 'chai';
import type { Response } from 'supertest';
import { getCredentials, api, request, credentials } from '../../data/api-data.js';
describe('LDAP', function() {
this.retries(0);
before((done) => getCredentials(done));
describe('[/ldap.syncNow]', () => {
it('should throw an error containing totp-required error ', (done) => {
request.post(api('ldap.syncNow'))
.set(credentials)
.expect('Content-Type', 'application/json')
.expect(400)
.expect((res: Response) => {
expect(res.body).to.have.property('success', false);
expect(res.body).to.have.property('errorType', 'totp-required');
})
.end(done);
});
});
});