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

Function newPutIngestBucketRequest

tests/unit/api/objectPut.js:1120–1130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1118 return r;
1119 };
1120 const newPutIngestBucketRequest = location => new DummyRequest({
1121 bucketName,
1122 namespace,
1123 headers: { host: `${bucketName}.s3.amazonaws.com` },
1124 url: '/',
1125 post: '<?xml version="1.0" encoding="UTF-8"?>' +
1126 '<CreateBucketConfiguration ' +
1127 'xmlns="http://s3.amazonaws.com/doc/2006-03-01/">' +
1128 `<LocationConstraint>${location}</LocationConstraint>` +
1129 '</CreateBucketConfiguration>',
1130 });
1131 const archiveRestoreRequested = {
1132 archiveInfo: { foo: 0, bar: 'stuff' }, // opaque, can be anything...
1133 restoreRequestedAt: new Date().toString(),

Callers 1

objectPut.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected