Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Nov 29, 2024
1 parent 691d860 commit 5a58c90
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions tests/unit/api/objectReplicationMD.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,17 @@ const emptyReplicationMD = {
role: '',
storageType: '',
dataStoreVersionId: '',
isNFS: null,
isNFS: undefined,
};
const emptyReplicationMDUndef = {
status: '',
backends: [],
content: [],
destination: '',
storageClass: '',
role: '',
storageType: '',
dataStoreVersionId: '',
};

// Check that the object key has the expected replication information.
Expand Down Expand Up @@ -230,7 +240,7 @@ describe('Replication object MD without bucket replication config', () => {
if (err) {
return done(err);
}
checkObjectReplicationInfo(keyA, emptyReplicationMD);
checkObjectReplicationInfo(keyA, emptyReplicationMDUndef);
return done();
}));

Expand All @@ -241,7 +251,7 @@ describe('Replication object MD without bucket replication config', () => {
], err => done(err)));

it('should not update object metadata if putting tag', done => {
checkObjectReplicationInfo(keyA, emptyReplicationMD);
checkObjectReplicationInfo(keyA, emptyReplicationMDUndef);
return done();
});

Expand All @@ -255,7 +265,7 @@ describe('Replication object MD without bucket replication config', () => {
if (err) {
return done(err);
}
checkObjectReplicationInfo(keyA, emptyReplicationMD);
checkObjectReplicationInfo(keyA, emptyReplicationMDUndef);
return done();
}));

Expand All @@ -264,7 +274,7 @@ describe('Replication object MD without bucket replication config', () => {
if (err) {
return done(err);
}
checkObjectReplicationInfo(keyA, emptyReplicationMD);
checkObjectReplicationInfo(keyA, emptyReplicationMDUndef);
return done();
}));

Expand Down

0 comments on commit 5a58c90

Please sign in to comment.