MCPcopy
hub / github.com/scality/cloudserver / checkObjectReplicationInfo

Function checkObjectReplicationInfo

tests/unit/api/objectReplicationMD.js:95–98  ·  view source on GitHub ↗
(key, expected)

Source from the content-addressed store, hash-verified

93
94// Check that the object key has the expected replication information.
95function checkObjectReplicationInfo(key, expected) {
96 const objectMD = metadata.keyMaps.get(bucketName).get(key);
97 assert.deepStrictEqual(objectMD.replicationInfo, expected);
98}
99
100// Put the object key and check the replication information.
101function putObjectAndCheckMD(key, expected, cb) {

Callers 2

putObjectAndCheckMDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected