public class PolicyReaderTest extends Object
| Constructor and Description |
|---|
PolicyReaderTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testAccountNamePrincipalWithDashesAreNotStrippedWhenDisabled() |
void |
testAccountNamePrincipalWithDashesAreStrippedByDefault() |
void |
testCloudHSMServicePrincipal() |
void |
testFederatedUserBySAMLProvider()
Tests that SAML-based federated user is supported as principal.
|
void |
testMultipleConditionKeysForConditionType() |
void |
testMultipleStatements() |
void |
testNoJsonArray() |
void |
testNoStatementArray() |
void |
testNotResources() |
void |
testPolicyParsingWithNoEffect()
Test policy parsing when the "Effect" is not mentioned in a Statement.
|
void |
testPrincipals() |
void |
testPrincipalWithServiceNotInServicesEnum()
This test case was written as result of the following TT
|
public void testPrincipals()
public void testMultipleConditionKeysForConditionType()
throws Exception
Exceptionpublic void testPolicyParsingWithNoEffect()
public void testNoJsonArray()
public void testNoStatementArray()
public void testFederatedUserBySAMLProvider()
public void testCloudHSMServicePrincipal()
public void testPrincipalWithServiceNotInServicesEnum()
When a service is mentioned in the principal, we always try to
figure out the service from
com.amazonaws.auth.policy.Principal.Services enum. For
new services introduced, if the enum is not updated, then the parsing
fails.public void testAccountNamePrincipalWithDashesAreStrippedByDefault()
public void testAccountNamePrincipalWithDashesAreNotStrippedWhenDisabled()
public void testNotResources()
Copyright © 2021. All rights reserved.