Skip to content

Commit

Permalink
Refactor debug log in ReplicateObject.js and update tests for check s…
Browse files Browse the repository at this point in the history
…ource replication
  • Loading branch information
KillianG committed Oct 17, 2024
1 parent 63b2609 commit 5aa4e97
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/functional/replication/queueProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const TestConfigurator = require('../../utils/TestConfigurator');

/* eslint-disable max-len */


function getMD5(body) {
return crypto.createHash('md5').update(body).digest('hex');
}
Expand Down Expand Up @@ -754,7 +753,7 @@ function sendCopyLocationAction(s3mock, queueProcessor, resultsCb) {
/* eslint-enable max-len */
/* eslint-disable mocha/no-exclusive-tests */

describe.only('queue processor functional tests with mocking', () => {
describe('queue processor functional tests with mocking', () => {
let queueProcessorSF;
let queueProcessorAzure;
let replicationStatusProcessor;
Expand Down Expand Up @@ -991,7 +990,7 @@ describe.only('queue processor functional tests with mocking', () => {
});
});

describe.only('error paths', function errorPaths() {
describe('error paths', function errorPaths() {
this.timeout(20000); // give more time to leave room for retry
// delays and timeout

Expand All @@ -1017,7 +1016,7 @@ describe.only('queue processor functional tests with mocking', () => {
});
});

describe.only('source S3 errors', () => {
describe('source S3 errors', () => {
[errors.AccessDenied, errors.ObjNotFound].forEach(error => {
it(`replication should skip on ${error.code} ` +
`(${error.message}) from source S3 on getObject`, done => {
Expand Down Expand Up @@ -1059,7 +1058,7 @@ describe.only('queue processor functional tests with mocking', () => {
});
});

it.only('should fail if unable to get metadata', done => {
it('should fail if unable to get metadata', done => {
s3mock.setParam('nbParts', 2);
s3mock.installBackbeatErrorResponder('source.s3.getMetadata',
errors.ObjNotFound,
Expand Down

0 comments on commit 5aa4e97

Please sign in to comment.