Skip to content

Commit

Permalink
OSIS-149: update-unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Jun 4, 2024
1 parent 7daa3d4 commit 48607a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ void testGetCredentialsWithNoRole() {
// Setup

when(vaultAdminMock.getTempAccountCredentials(any(AssumeRoleRequest.class)))
.thenThrow(new VaultServiceException(HttpStatus.NOT_FOUND, "NoSuchEntity", "Role does not exist"))
.thenThrow(new VaultServiceException(HttpStatus.FORBIDDEN, "AccessDenied", "User: backbeat is not allowed to assume role"))
.thenAnswer((Answer<Credentials>) invocation -> {
final Credentials credentials = new Credentials();
credentials.setAccessKeyId(TEST_ACCESS_KEY);
Expand Down

0 comments on commit 48607a0

Please sign in to comment.