Package org.azd.legacy
Class SecurityApiTest
java.lang.Object
org.azd.legacy.SecurityApiTest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
void
void
not really a test.void
void
void
void
void
void
void
void
void
- lookup a user and a repository - get current ACL - update ACE with merge flag set - re-fetch ACL and compare: - deny value should be our mask OR'd with original values , allow value should be our mask OR'd with original values + with deny bits unset - reset ACLvoid
- lookup a user and a repository - get current ACL - update ACL - re-fetch ACL and compare, assert allow / deny value changed - reset ACL
-
Constructor Details
-
SecurityApiTest
public SecurityApiTest()
-
-
Method Details
-
init
- Throws:
AzDException
-
shouldListSecurityNamespaces
- Throws:
AzDException
-
shouldGetANamespace
- Throws:
AzDException
-
shouldListACLs
- Throws:
AzDException
-
shouldListACLsWithExtendedInfo
- Throws:
AzDException
-
shouldResolveSubjectIdentities
- Throws:
AzDException
-
shouldListACLForDescriptor
- Throws:
AzDException
-
shouldDumpAllNamespaceActions
not really a test. Dump all actions to see bitmasks- Throws:
AzDException
-
shouldGenerateTokenString
- Throws:
AzDException
-
shouldListRequiredTokenProperties
- Throws:
AzDException
-
shouldAddAndRemoveACL
- Throws:
AzDException
-
shouldUpdateAccessControlList
- lookup a user and a repository - get current ACL - update ACL - re-fetch ACL and compare, assert allow / deny value changed - reset ACL- Throws:
AzDException
-
shouldUpdateAccessControlEntry
- lookup a user and a repository - get current ACL - update ACE with merge flag set - re-fetch ACL and compare: - deny value should be our mask OR'd with original values , allow value should be our mask OR'd with original values + with deny bits unset - reset ACLNot necessarily universal. Depending on the internal permission logic, denying access to one action may implicitly deny other actions. i.e. in git permissions, bit 1 (admin) appears to be flipped depending on other allow/deny values
- Throws:
AzDException
-