Skip to content

Commit

Permalink
add download file test
Browse files Browse the repository at this point in the history
  • Loading branch information
Keerth1Keerthi committed Nov 19, 2024
1 parent 0917b6f commit 96113b4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/api-gateway/test/file_download.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 96113b4

Please sign in to comment.