// ---------------------------------------------------------------
before(function (done) {
- this.timeout(20000)
+ this.timeout(120000)
series([
function (next) {
password: 'my super password 4'
}
- requestsUtils.makePostBodyRequest(serverWithRegistrationDisabled.url, registrationPath, serverWithRegistrationDisabled.accessToken, data, done, 400)
+ requestsUtils.makePostBodyRequest(serverWithRegistrationDisabled.url, registrationPath, serverWithRegistrationDisabled.accessToken, data, done, 403)
+ })
+ })
+
+ describe('When registering multiple users on a server with users limit', function () {
+ it('Should fail when after 3 registrations', function (done) {
+ usersUtils.registerUser(server.url, 'user42', 'super password', 403, done)
})
})
after(function (done) {
process.kill(-server.app.pid)
+ process.kill(-serverWithRegistrationDisabled.app.pid)
// Keep the logs if the test failed
if (this.ok) {