| 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 => { |