Skip to content

Commit

Permalink
Add functionnal test
Browse files Browse the repository at this point in the history
Issue: BB-566
  • Loading branch information
KillianG committed Oct 17, 2024
1 parent 9beeee2 commit ae001e3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/functional/replication/queueProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ describe('queue processor functional tests with mocking', () => {
},
groupId: 'backbeat-func-test-group-id',
mpuPartsConcurrency: 10,
sourceCheckIfSizeGreaterThanMB: 0,
},
},
{ host: '127.0.0.1',
Expand Down Expand Up @@ -929,6 +930,18 @@ describe('queue processor functional tests with mocking', () => {
], done);
});

it('should fail a replication if unable to get metadata', done => {
s3mock.installBackbeatErrorResponder('source.s3.getMetadata',
errors.ObjNotFound,
{ once: true });
async.parallel([
done => queueProcessorSF.processReplicationEntry(
s3mock.getParam('kafkaEntry'), () => {
done();
}),
], done);
});

it('should complete a "copy location" action', done => {
sendCopyLocationAction(
s3mock, queueProcessorSF, response => {
Expand Down

0 comments on commit ae001e3

Please sign in to comment.