-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.js
254 lines (233 loc) · 6.31 KB
/
index.js
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
import { ROLES } from '@ukef/dtfs2-common';
import MOCK_BANKS from '../banks';
const UKEF_TEST_BANK_1 = MOCK_BANKS.find((bank) => bank.name === 'UKEF test bank (Delegated)');
const UKEF_TEST_BANK_2 = MOCK_BANKS.find((bank) => bank.name === 'UKEF test bank (Delegated) 2');
const UKEF_GEF_ONLY_BANK = MOCK_BANKS.find((bank) => bank.name === 'GEF Only Bank');
export const BANK1_MAKER1 = {
username: 'maker1@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'First',
surname: 'Last',
email: 'maker1@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.MAKER],
bank: UKEF_TEST_BANK_1,
isTrusted: true,
};
export const BANK1_MAKER2 = {
username: 'maker2@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Tamara',
surname: 'last',
email: 'maker2@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.MAKER],
bank: UKEF_TEST_BANK_1,
isTrusted: false,
};
export const BANK1_MAKER3 = {
username: 'maker33@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'First',
surname: 'Last',
email: 'maker33@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.MAKER],
bank: UKEF_TEST_BANK_1,
isTrusted: false,
};
export const BANK1_READ_ONLY1 = {
username: 'readOnly1@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Bank1',
surname: 'Read-only',
email: 'readOnly1@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.READ_ONLY],
bank: UKEF_TEST_BANK_1,
isTrusted: false,
};
export const BANK3_GEF_MAKER1 = {
username: 'maker3@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Benito',
surname: 'Sutton',
email: 'maker3@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.MAKER],
bank: UKEF_GEF_ONLY_BANK,
isTrusted: false,
};
export const BANK3_GEF_CHECKER1 = {
username: 'maker4@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Tony',
surname: 'Sheridan',
email: 'maker4@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.CHECKER],
bank: UKEF_GEF_ONLY_BANK,
isTrusted: false,
};
export const BANK1_CHECKER1 = {
username: 'checker1@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Mister',
surname: 'Checker',
email: 'checker1@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.CHECKER],
bank: UKEF_TEST_BANK_1,
isTrusted: false,
};
export const BANK1_MAKER_CHECKER1 = {
username: 'checker2@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Vladimir',
surname: 'Scorpius',
email: 'checker2@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.MAKER, ROLES.CHECKER],
bank: UKEF_TEST_BANK_1,
isTrusted: false,
};
export const BANK1_MAKER_CHECKER2 = {
username: 'checker3@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Vladimir',
surname: 'Scorpius',
email: 'checker3@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.MAKER, ROLES.CHECKER],
bank: UKEF_TEST_BANK_1,
isTrusted: false,
};
export const BANK1_PAYMENT_REPORT_OFFICER1 = {
username: 'payment-officer1@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Payton',
surname: 'Archer',
email: 'payment-officer1@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.PAYMENT_REPORT_OFFICER],
bank: UKEF_TEST_BANK_1,
isTrusted: false,
};
export const BANK1_MAKER_PAYMENT_REPORT_OFFICER1 = {
username: 'payment-officer2@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Payton',
surname: 'Archer',
email: 'payment-officer2@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.MAKER, ROLES.PAYMENT_REPORT_OFFICER],
bank: UKEF_TEST_BANK_1,
isTrusted: false,
};
export const BANK2_PAYMENT_REPORT_OFFICER1 = {
username: 'payment-officer3@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Payton',
surname: 'Archer',
email: 'payment-officer3@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.PAYMENT_REPORT_OFFICER],
bank: UKEF_TEST_BANK_2,
isTrusted: false,
};
export const BANK2_MAKER2 = {
username: 'maker5@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Tamara',
surname: 'last',
email: 'maker5@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.MAKER],
bank: UKEF_TEST_BANK_2,
isTrusted: false,
};
export const BANK2_MAKER1 = {
username: 'maker6@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'First',
surname: 'Last',
email: 'maker6@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.MAKER],
bank: UKEF_TEST_BANK_2,
isTrusted: false,
};
export const BANK2_CHECKER1 = {
username: 'checker4@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Mister',
surname: 'Checker',
email: 'checker4@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.CHECKER],
bank: UKEF_TEST_BANK_2,
isTrusted: false,
};
export const BANK2_READ_ONLY1 = {
username: 'readonly2@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Reid',
surname: 'Oakley',
email: 'readonly2@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.READ_ONLY],
bank: UKEF_TEST_BANK_2,
isTrusted: false,
};
export const ADMIN = {
username: 'test2@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Julius',
surname: 'No',
email: 'test2@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.ADMIN, ROLES.MAKER],
bank: {
id: '*',
},
isTrusted: false,
};
export const READ_ONLY = {
username: 'readonly@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Reid',
surname: 'Oakley',
email: 'readonly@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.READ_ONLY],
bank: {
id: '*',
},
isTrusted: false,
};
export const ADMINNOMAKER = {
username: 'adminnomaker@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Julius',
surname: 'No',
email: 'adminnomaker@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.ADMIN],
bank: {
id: '*',
},
isTrusted: false,
};
export const TEST_EMAIL_NO_GOV_NOTIFY = {
username: 'test_no_notify@ukexportfinance.gov.uk',
password: 'AbC!2345',
firstname: 'Wolfgang',
surname: 'Weisen',
email: 'test_no_notify@ukexportfinance.gov.uk',
timezone: 'Europe/London',
roles: [ROLES.MAKER],
bank: {
id: '*',
},
isTrusted: false,
};