Skip to content

Commit 48607a0

Browse files
committed
OSIS-149: update-unit-test
1 parent 7daa3d4 commit 48607a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osis-core/src/test/java/com/scality/osis/service/impl/ScalityOsisServiceMiscTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ void testGetCredentialsWithNoRole() {
339339
// Setup
340340

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

0 commit comments

Comments
 (0)