Skip to content

Commit

Permalink
BB-300: use correct backbeat route client
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderchan-scality committed Oct 5, 2022
1 parent ab7b7e9 commit 024cc4c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extensions/lifecycle/tasks/LifecycleDeleteObjectTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class LifecycleDeleteObjectTask extends BackbeatTask {

_getMetadata(entry, log, done) {
const { owner: canonicalId, accountId } = entry.getAttribute('target');
const backbeatClient = this.getBackbeatClient(canonicalId, accountId);
const backbeatClient = this.getBackbeatMetadataProxy(accountId);
if (!backbeatClient) {
log.error('failed to get backbeat client', {
canonicalId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Lifecycle Object Processor', function lifecycleObjectProcessor() {

const s3Client = new S3ClientMock(failures);
lop.clientManager.getS3Client = () => s3Client;
lop.clientManager.getBackbeatClient = () => ({
lop.clientManager.getBackbeatMetadataProxy = () => ({
getMetadata: (_a, _b, cb) =>
cb(null, { Body: new ObjectMD().getSerialized() }),
});
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/lifecycle/LifecycleDeleteObjectTask.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ describe('LifecycleDeleteObjectTask', () => {
backbeatClient = new BackbeatMetadataProxyMock();
objectProcessor = new ProcessorMock(
s3Client,
backbeatClient,
null,
backbeatClient,
null,
new werelogs.Logger('test:LifecycleDeleteObjectTask'));
objMd = new ObjectMD();
Expand Down

0 comments on commit 024cc4c

Please sign in to comment.