diff --git a/packages/api-gateway/test/file_download.e2e-spec.ts b/packages/api-gateway/test/file_download.e2e-spec.ts index 7974647..99c938e 100644 --- a/packages/api-gateway/test/file_download.e2e-spec.ts +++ b/packages/api-gateway/test/file_download.e2e-spec.ts @@ -160,6 +160,20 @@ beforeEach(async () => { }); describe('File Download Verification Routes', () => { + it('downloads file with api key', async () => { + const req = { + bucketName: bucketName, + configId: configId, + fileName: validFile, + providerName: providerName, + }; + + return request(app.getHttpServer()) + .post('/file/download') + .set('Authorization', 'Bearer ' + apiKey) + .send(req) + .expect(200); + }); it('downloads file without api key', async () => { const req = { bucketName: bucketName,