diff --git a/src/routes/test/users-test.js b/src/routes/test/users-test.js index d5148ea92..116f9dc8d 100644 --- a/src/routes/test/users-test.js +++ b/src/routes/test/users-test.js @@ -591,7 +591,7 @@ describe('Users API', function () { it('add mailbox succeeds as mail manager', async function () { const response = await superagent.post(`${serverUrl}/api/v1/mail/${dashboardDomain}/mailboxes`) - .send({ name: 'support', ownerId: owner.id, ownerType: 'user', active: true }) + .send({ name: 'support', ownerId: owner.id, ownerType: 'user', active: true, storageQuota: 0, messagesQuota: 0 }) .query({ access_token: user.token }); expect(response.statusCode).to.equal(201); diff --git a/src/test/settings-test.js b/src/test/settings-test.js index 4b7be4583..07d7eadb1 100644 --- a/src/test/settings-test.js +++ b/src/test/settings-test.js @@ -73,7 +73,7 @@ describe('Settings', function () { }); it('can set default profile config', async function () { - await tokens.add({ name: 'token1', identifier: admin.id, clientId: tokens.ID_WEBADMIN, expires: Number.MAX_SAFE_INTEGER, lastUsedTime: null, scope: 'unused' }); + await tokens.add({ name: 'token1', identifier: admin.id, clientId: tokens.ID_WEBADMIN, expires: Number.MAX_SAFE_INTEGER, lastUsedTime: null }); let result = await tokens.listByUserId(admin.id); expect(result.length).to.be(1); // just confirm the token was really added! diff --git a/src/test/tokens-test.js b/src/test/tokens-test.js index f216d04cc..f8fd2976c 100644 --- a/src/test/tokens-test.js +++ b/src/test/tokens-test.js @@ -26,7 +26,7 @@ describe('Tokens', function () { clientId: 'clientid-0', expires: Date.now() + 60 * 60000, lastUsedTime: null, - scope: 'unused' + scope: { '*': 'rw' } }; it('add succeeds', async function () { @@ -93,7 +93,7 @@ describe('Tokens', function () { clientId: 'clientid-1', expires: Number.MAX_SAFE_INTEGER, lastUsedTime: null, - scope: 'unused' + scope: { '*': 'rw' } }; const token2 = { name: 'token2', @@ -127,7 +127,7 @@ describe('Tokens', function () { clientId: tokens.ID_WEBADMIN, expires: Number.MAX_SAFE_INTEGER, lastUsedTime: null, - scope: 'unused' + scope: { '*': 'rw' } }; const token2 = { name: 'token2',