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

Function makeAuthInfo

tests/unit/api/apiUtils/permissionChecks.js:736–742  ·  view source on GitHub ↗
(canonicalID, arn, isIAMUser = false)

Source from the content-addressed store, hash-verified

734 }
735
736 function makeAuthInfo(canonicalID, arn, isIAMUser = false) {
737 return {
738 getCanonicalID: () => canonicalID,
739 getArn: () => arn,
740 isRequesterAnIAMUser: () => isIAMUser,
741 };
742 }
743
744 it('should not set aclRequired when requester is bucket owner', () => {
745 const request = makeRequest();

Callers 15

mpuUtils.jsFile · 0.50
routeBackbeat.jsFile · 0.50
bucketCreation.jsFile · 0.50
bucketPutCors.jsFile · 0.50
objectRestore.jsFile · 0.50
objectPut.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected