MCPcopy Create free account
hub / github.com/scality/cloudserver / getPolicyRequest

Function getPolicyRequest

tests/unit/api/bucketPutPolicy.js:22–31  ·  view source on GitHub ↗
(policy)

Source from the content-addressed store, hash-verified

20
21let expectedBucketPolicy = {};
22function getPolicyRequest(policy) {
23 return {
24 bucketName,
25 headers: {
26 host: `${bucketName}.s3.amazonaws.com`,
27 },
28 post: JSON.stringify(policy),
29 actionImplicitDenies: false,
30 };
31}
32
33describe('putBucketPolicy API', () => {
34 before(() => cleanup());

Callers 1

bucketPutPolicy.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected