MCPcopy Index your code
hub / github.com/scality/cloudserver / getBucketRequestObject

Function getBucketRequestObject

tests/unit/api/bucketGetLocation.js:39–46  ·  view source on GitHub ↗
(location)

Source from the content-addressed store, hash-verified

37const locationConstraints = config.locationConstraints;
38
39function 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
48describe('getBucketLocation API', () => {
49 Object.keys(locationConstraints).forEach(location => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected