MCPcopy Index your code
hub / github.com/scality/cloudserver / createPutDummyRetentionAndLegalHold

Function createPutDummyRetentionAndLegalHold

tests/unit/api/objectGet.js:177–190  ·  view source on GitHub ↗
(date, mode, status)

Source from the content-addressed store, hash-verified

175 });
176
177 const createPutDummyRetentionAndLegalHold = (date, mode, status) =>
178 new DummyRequest({
179 bucketName,
180 namespace,
181 objectKey: objectName,
182 headers: {
183 'x-amz-object-lock-retain-until-date': date,
184 'x-amz-object-lock-mode': mode,
185 'x-amz-object-lock-legal-hold': status,
186 'content-length': '12',
187 },
188 parsedContentLength: 12,
189 url: `/${bucketName}/${objectName}`,
190 }, postBody);
191
192 it('should get the object metadata with both retention and legal hold',
193 done => {

Callers 1

objectGet.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected