From f45dc339182d77dcaebe35a48165fd726eb62d0d Mon Sep 17 00:00:00 2001 From: Anar Sultanov Date: Mon, 26 Feb 2024 20:01:17 +0100 Subject: [PATCH] Fix: Update response code in failing test --- .../multitenancy/TenantCreationRbacIntegrationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }