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

Function createPutDummyRetention

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

Source from the content-addressed store, hash-verified

91 };
92
93 const createPutDummyRetention = (date, mode) => new DummyRequest({
94 bucketName,
95 namespace,
96 objectKey: objectName,
97 headers: {
98 'x-amz-object-lock-retain-until-date': date,
99 'x-amz-object-lock-mode': mode,
100 'content-length': '12',
101 },
102 parsedContentLength: 12,
103 url: `/${bucketName}/${objectName}`,
104 }, postBody);
105
106 const threeDaysMilliSecs = 3 * 24 * 60 * 60 * 1000;
107 const testDate = new Date(Date.now() + threeDaysMilliSecs).toISOString();

Callers 1

objectGet.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected