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