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

Function getPolicyRequest

tests/unit/api/objectPutACL.js:594–603  ·  view source on GitHub ↗
(policy)

Source from the content-addressed store, hash-verified

592
593 describe('with bucket policy', () => {
594 function getPolicyRequest(policy) {
595 return {
596 bucketName,
597 headers: {
598 host: `${bucketName}.s3.amazonaws.com`,
599 },
600 post: JSON.stringify(policy),
601 actionImplicitDenies: false,
602 };
603 }
604 /** Additional fields are required on existing request mocks */
605 const requestFix = {
606 connection: { encrypted: false },

Callers 1

objectPutACL.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected