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

Function createPutDummyLegalHold

tests/unit/api/objectGet.js:137–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 });
136
137 const createPutDummyLegalHold = legalHold => new DummyRequest({
138 bucketName,
139 namespace,
140 objectKey: objectName,
141 headers: {
142 'x-amz-object-lock-legal-hold': legalHold,
143 'content-length': '12',
144 },
145 parsedContentLength: 12,
146 url: `/${bucketName}/${objectName}`,
147 }, postBody);
148
149 const testStatuses = ['ON', 'OFF'];
150 testStatuses.forEach(status => {

Callers 1

objectGet.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected