| 37 | const locationConstraints = config.locationConstraints; |
| 38 | |
| 39 | function getBucketRequestObject(location) { |
| 40 | const post = location ? '<?xml version="1.0" encoding="UTF-8"?>' + |
| 41 | '<CreateBucketConfiguration ' + |
| 42 | 'xmlns="http://s3.amazonaws.com/doc/2006-03-01/">' + |
| 43 | `<LocationConstraint>${location}</LocationConstraint>` + |
| 44 | '</CreateBucketConfiguration>' : undefined; |
| 45 | return Object.assign({ post }, testBucketPutRequest); |
| 46 | } |
| 47 | |
| 48 | describe('getBucketLocation API', () => { |
| 49 | Object.keys(locationConstraints).forEach(location => { |