2022-09-12 14:51:33 +00:00
|
|
|
/* eslint-disable import/extensions, import/no-unresolved */
|
|
|
|
// @ts-ignore
|
|
|
|
import random from './helpers/random';
|
|
|
|
|
|
|
|
export interface IUser {
|
|
|
|
username: string;
|
|
|
|
password: string;
|
|
|
|
email: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type TData = typeof data;
|
|
|
|
export type TDataKeys = keyof TData;
|
|
|
|
export type TDataUsers = keyof typeof data.users;
|
|
|
|
export type TDataChannels = keyof typeof data.channels;
|
|
|
|
export type TDataGroups = keyof typeof data.groups;
|
|
|
|
export type TDataTeams = keyof typeof data.teams;
|
2021-07-02 17:39:39 +00:00
|
|
|
|
2020-07-15 16:28:34 +00:00
|
|
|
const value = random(20);
|
|
|
|
const data = {
|
2021-07-02 17:39:39 +00:00
|
|
|
server: 'http://localhost:3000',
|
|
|
|
adminUser: 'admin',
|
|
|
|
adminPassword: 'password',
|
|
|
|
alternateServer: 'https://stable.rocket.chat',
|
|
|
|
users: {
|
|
|
|
regular: {
|
2021-09-13 20:41:05 +00:00
|
|
|
username: `userone${value}`,
|
2021-07-02 17:39:39 +00:00
|
|
|
password: '123',
|
2021-09-13 20:41:05 +00:00
|
|
|
email: `mobile+regular${value}@rocket.chat`
|
2021-07-02 17:39:39 +00:00
|
|
|
},
|
|
|
|
alternate: {
|
2021-09-13 20:41:05 +00:00
|
|
|
username: `usertwo${value}`,
|
2021-07-02 17:39:39 +00:00
|
|
|
password: '123',
|
2021-09-13 20:41:05 +00:00
|
|
|
email: `mobile+alternate${value}@rocket.chat`,
|
2021-07-02 17:39:39 +00:00
|
|
|
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
|
|
|
|
},
|
|
|
|
profileChanges: {
|
2021-09-13 20:41:05 +00:00
|
|
|
username: `userthree${value}`,
|
2021-07-02 17:39:39 +00:00
|
|
|
password: '123',
|
2021-09-13 20:41:05 +00:00
|
|
|
email: `mobile+profileChanges${value}@rocket.chat`
|
2021-07-02 17:39:39 +00:00
|
|
|
},
|
|
|
|
existing: {
|
2021-09-13 20:41:05 +00:00
|
|
|
username: `existinguser${value}`,
|
2021-07-02 17:39:39 +00:00
|
|
|
password: '123',
|
2021-09-13 20:41:05 +00:00
|
|
|
email: `mobile+existing${value}@rocket.chat`
|
2021-07-02 17:39:39 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
channels: {
|
|
|
|
detoxpublic: {
|
|
|
|
name: 'detox-public'
|
|
|
|
},
|
|
|
|
detoxpublicprotected: {
|
|
|
|
name: 'detox-public-protected',
|
|
|
|
joinCode: '123'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups: {
|
|
|
|
private: {
|
2021-09-13 20:41:05 +00:00
|
|
|
name: `detox-private-${value}`
|
2021-07-02 17:39:39 +00:00
|
|
|
},
|
|
|
|
alternate: {
|
2021-09-13 20:41:05 +00:00
|
|
|
name: `detox-alternate-${value}`
|
2021-10-26 16:11:50 +00:00
|
|
|
},
|
|
|
|
alternate2: {
|
|
|
|
name: `detox-alternate2-${value}`
|
2021-07-02 17:39:39 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
teams: {
|
|
|
|
private: {
|
2021-09-13 20:41:05 +00:00
|
|
|
name: `detox-team-${value}`
|
2021-07-02 17:39:39 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
registeringUser: {
|
2021-09-13 20:41:05 +00:00
|
|
|
username: `newuser${value}`,
|
|
|
|
password: `password${value}`,
|
|
|
|
email: `mobile+registering${value}@rocket.chat`
|
2021-07-02 17:39:39 +00:00
|
|
|
},
|
|
|
|
registeringUser2: {
|
2021-09-13 20:41:05 +00:00
|
|
|
username: `newusertwo${value}`,
|
|
|
|
password: `passwordtwo${value}`,
|
|
|
|
email: `mobile+registeringtwo${value}@rocket.chat`
|
2021-07-02 17:39:39 +00:00
|
|
|
},
|
|
|
|
registeringUser3: {
|
2021-09-13 20:41:05 +00:00
|
|
|
username: `newuserthree${value}`,
|
|
|
|
password: `passwordthree${value}`,
|
|
|
|
email: `mobile+registeringthree${value}@rocket.chat`
|
2021-07-02 17:39:39 +00:00
|
|
|
},
|
|
|
|
registeringUser4: {
|
2021-09-13 20:41:05 +00:00
|
|
|
username: `newuserfour${value}`,
|
|
|
|
password: `passwordfour${value}`,
|
|
|
|
email: `mobile+registeringfour${value}@rocket.chat`
|
2021-07-02 17:39:39 +00:00
|
|
|
},
|
|
|
|
random: value
|
|
|
|
};
|
2022-09-12 14:51:33 +00:00
|
|
|
|
|
|
|
export default data;
|