| 19 | const fileLocation = 'scality-internal-file'; |
| 20 | |
| 21 | function _createBucketPutRequest(bucketName, bucketLoc) { |
| 22 | const post = bucketLoc ? '<?xml version="1.0" encoding="UTF-8"?>' + |
| 23 | '<CreateBucketConfiguration ' + |
| 24 | 'xmlns="http://s3.amazonaws.com/doc/2006-03-01/">' + |
| 25 | `<LocationConstraint>${bucketLoc}</LocationConstraint>` + |
| 26 | '</CreateBucketConfiguration>' : ''; |
| 27 | return new DummyRequest({ |
| 28 | bucketName, |
| 29 | namespace, |
| 30 | headers: { host: `${bucketName}.s3.amazonaws.com` }, |
| 31 | url: '/', |
| 32 | post, |
| 33 | }); |
| 34 | } |
| 35 | |
| 36 | function _createObjectCopyRequest(destBucketName, objectKey) { |
| 37 | const params = { |