summaryrefslogtreecommitdiff
path: root/spec/frontend/admin/signup_restrictions/mock_data.js
blob: 9e001e122a498e18969515ffa8682788739d0357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
export const rawMockData = {
  host: 'path/to/host',
  settingsPath: 'path/to/settings',
  signupEnabled: 'true',
  requireAdminApprovalAfterUserSignup: 'true',
  sendUserConfirmationEmail: 'true',
  minimumPasswordLength: '8',
  minimumPasswordLengthMin: '3',
  minimumPasswordLengthMax: '10',
  minimumPasswordLengthHelpLink: 'help/link',
  domainAllowlistRaw: 'domain1.com, domain2.com',
  newUserSignupsCap: '8',
  domainDenylistEnabled: 'true',
  denylistTypeRawSelected: 'true',
  domainDenylistRaw: 'domain2.com, domain3.com',
  emailRestrictionsEnabled: 'true',
  supportedSyntaxLinkUrl: '/supported/syntax/link',
  emailRestrictions: 'user1@domain.com, user2@domain.com',
  afterSignUpText: 'Congratulations on your successful sign-up!',
  pendingUserCount: '0',
  passwordNumberRequired: 'true',
  passwordLowercaseRequired: 'true',
  passwordUppercaseRequired: 'true',
  passwordSymbolRequired: 'true',
};

export const mockData = {
  host: 'path/to/host',
  settingsPath: 'path/to/settings',
  signupEnabled: true,
  requireAdminApprovalAfterUserSignup: true,
  sendUserConfirmationEmail: true,
  minimumPasswordLength: '8',
  minimumPasswordLengthMin: '3',
  minimumPasswordLengthMax: '10',
  minimumPasswordLengthHelpLink: 'help/link',
  domainAllowlistRaw: 'domain1.com, domain2.com',
  newUserSignupsCap: '8',
  domainDenylistEnabled: true,
  denylistTypeRawSelected: true,
  domainDenylistRaw: 'domain2.com, domain3.com',
  emailRestrictionsEnabled: true,
  supportedSyntaxLinkUrl: '/supported/syntax/link',
  emailRestrictions: 'user1@domain.com, user2@domain.com',
  afterSignUpText: 'Congratulations on your successful sign-up!',
  pendingUserCount: '0',
  passwordNumberRequired: true,
  passwordLowercaseRequired: true,
  passwordUppercaseRequired: true,
  passwordSymbolRequired: true,
};