(date, mode)
| 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(); |