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

Function makeObjectMD

tests/unit/api/apiUtils/permissionChecks.js:857–869  ·  view source on GitHub ↗
(ownerId)

Source from the content-addressed store, hash-verified

855 }
856
857 function makeObjectMD(ownerId) {
858 return {
859 'owner-id': ownerId,
860 acl: {
861 Canned: '',
862 FULL_CONTROL: [],
863 READ: [],
864 READ_ACP: [],
865 WRITE: [],
866 WRITE_ACP: [],
867 },
868 };
869 }
870
871 it('should not set aclRequired when requester is object owner', () => {
872 const request = makeRequest();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected