MCPcopy
hub / github.com/scality/cloudserver / _putVersioningRequest

Function _putVersioningRequest

tests/unit/api/bucketPutVersioning.js:74–83  ·  view source on GitHub ↗
(xml)

Source from the content-addressed store, hash-verified

72}
73
74function _putVersioningRequest(xml) {
75 const request = {
76 bucketName,
77 headers: { host: `${bucketName}.s3.amazonaws.com` },
78 url: '/?versioning',
79 query: { versioning: '' },
80 };
81 request.post = xml;
82 return request;
83}
84
85describe('bucketPutVersioning API', () => {
86 before(() => cleanup());

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected