enable all the tests in users-test.js

This commit is contained in:
Girish Ramakrishnan
2021-07-20 09:05:21 -07:00
parent a6e79c243e
commit 1a1f40988e
2 changed files with 227 additions and 473 deletions

View File

@@ -62,14 +62,14 @@ const AUDIT_SOURCE = { ip: '1.2.3.4' };
const ADMIN = {
id: null,
username: 'admin123',
username: 'testadmin',
password: 'secret123',
email: 'admin@me.com',
fallbackEmail: 'admin@me.com',
salt: 'morton',
createdAt: 'sometime back',
resetToken: '',
displayName: '',
displayName: 'Administrator',
groupIds: [],
role: 'owner',
source: '',
@@ -78,19 +78,18 @@ const ADMIN = {
};
const USER = {
id: 'uid-userid', // ldap logic relies on uid prefix
username: 'uuid213',
id: null,
username: 'user',
password: '123secret',
email: 'safe@me.com',
fallbackEmail: 'safefallback@me.com',
email: 'user@me.com',
fallbackEmail: 'user@me.com',
role: 'user',
salt: 'morton',
createdAt: 'sometime back',
resetToken: hat(256),
resetToken: '',
groupIds: [],
displayName: '',
displayName: 'Normal User',
source: '',
permissions: null,
avatar: constants.AVATAR_NONE,
active: true,
};