diff --git a/src/test/java/dev/sultanov/keycloak/multitenancy/TenantCreationRbacIntegrationTest.java b/src/test/java/dev/sultanov/keycloak/multitenancy/TenantCreationRbacIntegrationTest.java index a5902b5..4ca4b81 100644 --- a/src/test/java/dev/sultanov/keycloak/multitenancy/TenantCreationRbacIntegrationTest.java +++ b/src/test/java/dev/sultanov/keycloak/multitenancy/TenantCreationRbacIntegrationTest.java @@ -57,7 +57,7 @@ void user_shouldFailToCreateTenant_whenRoleIsRequiredButMissing() { try (var response = user.tenantsResource().createTenant(tenantRepresentation)) { // then - assertThat(response.getStatus()).isEqualTo(401); + assertThat(response.getStatus()).isEqualTo(403); } finally { removeRealmAttribute(ATTRIBUTE_NAME); }