use of com.amazonaws.auth.policy.Action in project cerberus by Nike-Inc.
the class KmsPolicyServiceTest method test_that_statementAllowsAction_returns_true_when_action_in_statement.
@Test
public void test_that_statementAllowsAction_returns_true_when_action_in_statement() {
Action action = KMSActions.CancelKeyDeletion;
Statement statement = new Statement(Statement.Effect.Allow).withActions(action);
assertTrue(kmsPolicyService.statementIncludesAction(statement, action));
}
Aggregations