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

Function getObjectPutReq

tests/unit/api/objectReplicationMD.js:56–65  ·  view source on GitHub ↗
(key, hasContent)

Source from the content-addressed store, hash-verified

54
55// Get an object request with the given key.
56function getObjectPutReq(key, hasContent) {
57 const bodyContent = hasContent ? 'body content' : '';
58 return new DummyRequest({
59 bucketName,
60 namespace,
61 objectKey: key,
62 headers: {},
63 url: `/${bucketName}/${key}`,
64 }, Buffer.from(bodyContent, 'utf8'));
65}
66
67const taggingPutReq = new TaggingConfigTester()
68 .createObjectTaggingRequest('PUT', bucketName, keyA);

Callers 3

putObjectAndCheckMDFunction · 0.85
copyObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected