Skip to content

Commit 4daf806

Browse files
committed
add listBucket internal to validator lambda
1 parent 1816f3c commit 4daf806

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/test-team/template-mgmt-e2e-tests/template-mgmt-letter-file-validation.e2e.spec.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ test.describe('letter file validation', () => {
104104
expect(csv?.ChecksumSHA256).toEqual(
105105
pdfUploadFixtures.withPersonalisation.csv.checksumSha256()
106106
);
107-
}).toPass({ timeout: 30_000 });
107+
}).toPass({ timeout: 40_000 });
108108
});
109109

110110
test('PDF only - Uploaded pdf file is virus scanned - if scan passes, file is copied to the internal bucket and validated', async ({
@@ -169,7 +169,7 @@ test.describe('letter file validation', () => {
169169
expect(pdf?.ChecksumSHA256).toEqual(
170170
pdfUploadFixtures.noCustomPersonalisation.pdf.checksumSha256()
171171
);
172-
}).toPass({ timeout: 30_000 });
172+
}).toPass({ timeout: 40_000 });
173173
});
174174

175175
test('Uploaded pdf template files and test data csv files are virus scanned - if scan fails, files are deleted from quarantine and not copied, file and template status updated in database', async ({
@@ -238,7 +238,7 @@ test.describe('letter file validation', () => {
238238
expect(csv?.ChecksumSHA256).toEqual(
239239
pdfUploadFixtures.withPersonalisation.csv.checksumSha256()
240240
);
241-
}).toPass({ timeout: 30_000 });
241+
}).toPass({ timeout: 40_000 });
242242
});
243243

244244
test('validation fails if pdf parameters and test data parameters do not match', async ({
@@ -288,7 +288,7 @@ test.describe('letter file validation', () => {
288288
expect(template.templateStatus).toBe('VALIDATION_FAILED');
289289
expect(template.personalisationParameters).toBeUndefined();
290290
expect(template.csvHeaders).toBeUndefined();
291-
}).toPass({ timeout: 30_000 });
291+
}).toPass({ timeout: 40_000 });
292292
});
293293

294294
test('validation fails if unexpected csv is uploaded', async ({ page }) => {
@@ -336,7 +336,7 @@ test.describe('letter file validation', () => {
336336
expect(template.templateStatus).toBe('VALIDATION_FAILED');
337337
expect(template.personalisationParameters).toBeUndefined();
338338
expect(template.csvHeaders).toBeUndefined();
339-
}).toPass({ timeout: 30_000 });
339+
}).toPass({ timeout: 40_000 });
340340
});
341341

342342
test('validation fails if expected csv is not uploaded', async ({ page }) => {
@@ -379,7 +379,7 @@ test.describe('letter file validation', () => {
379379
expect(template.templateStatus).toBe('VALIDATION_FAILED');
380380
expect(template.personalisationParameters).toBeUndefined();
381381
expect(template.csvHeaders).toBeUndefined();
382-
}).toPass({ timeout: 30_000 });
382+
}).toPass({ timeout: 40_000 });
383383
});
384384

385385
test('validation fails if pdf has incomplete address', async ({ page }) => {
@@ -422,7 +422,7 @@ test.describe('letter file validation', () => {
422422
expect(template.templateStatus).toBe('VALIDATION_FAILED');
423423
expect(template.personalisationParameters).toBeUndefined();
424424
expect(template.csvHeaders).toBeUndefined();
425-
}).toPass({ timeout: 30_000 });
425+
}).toPass({ timeout: 40_000 });
426426
});
427427

428428
test('validation fails if pdf has empty parameters', async ({ page }) => {
@@ -470,7 +470,7 @@ test.describe('letter file validation', () => {
470470
expect(template.templateStatus).toBe('VALIDATION_FAILED');
471471
expect(template.personalisationParameters).toBeUndefined();
472472
expect(template.csvHeaders).toBeUndefined();
473-
}).toPass({ timeout: 30_000 });
473+
}).toPass({ timeout: 40_000 });
474474
});
475475

476476
test('validation fails if pdf has non-sensible parameters', async ({
@@ -520,6 +520,6 @@ test.describe('letter file validation', () => {
520520
expect(template.templateStatus).toBe('VALIDATION_FAILED');
521521
expect(template.personalisationParameters).toBeUndefined();
522522
expect(template.csvHeaders).toBeUndefined();
523-
}).toPass({ timeout: 30_000 });
523+
}).toPass({ timeout: 40_000 });
524524
});
525525
});

0 commit comments

Comments
 (0)