Skip to content

Commit

Permalink
Separate the calls out based on type
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <dxho@amazon.com>
  • Loading branch information
derek-ho committed Jan 23, 2025
1 parent a685951 commit 77ad6c3
Show file tree
Hide file tree
Showing 2 changed files with 184 additions and 130 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ public void apiToken_negative_noPermissions() throws Exception {
);

PrivilegesEvaluatorResponse result = subject.hasIndexPrivilege(context, requiredActions, resolved("index_a11"));
assertThat(result, isForbidden(missingPrivileges(requiredActions)));
assertThat(result, isForbidden());
}

@Test
Expand Down Expand Up @@ -499,7 +499,7 @@ public void apiTokens_positive_hasExplicit_full() {

PrivilegesEvaluatorResponse result = subject.hasExplicitIndexPrivilege(context, requiredActions, resolved("index_a11"));

assertThat(result, isForbidden(missingPrivileges(requiredActions)));
assertThat(result, isForbidden());

}

Expand Down
Loading

0 comments on commit 77ad6c3

Please sign in to comment.