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

Function putObjectAndCheckMD

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

Source from the content-addressed store, hash-verified

99
100// Put the object key and check the replication information.
101function putObjectAndCheckMD(key, expected, cb) {
102 return objectPut(authInfo, getObjectPutReq(key, true), undefined, log,
103 err => {
104 if (err) {
105 return cb(err);
106 }
107 checkObjectReplicationInfo(key, expected);
108 return cb();
109 });
110}
111
112// Create the bucket in metadata.
113function createBucket() {

Callers 1

Calls 3

objectPutFunction · 0.85
getObjectPutReqFunction · 0.85

Tested by

no test coverage detected