From 6ee3a465c670cb41b76224cf53435506952c23e8 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Mon, 30 Dec 2024 09:21:38 +0100 Subject: [PATCH] cleanup and TODO added --- .../HsOfficeRelationRepositoryIntegrationTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/relation/HsOfficeRelationRepositoryIntegrationTest.java b/src/test/java/net/hostsharing/hsadminng/hs/office/relation/HsOfficeRelationRepositoryIntegrationTest.java index aec09e1d..eb92aad9 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/relation/HsOfficeRelationRepositoryIntegrationTest.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/relation/HsOfficeRelationRepositoryIntegrationTest.java @@ -7,7 +7,6 @@ import net.hostsharing.hsadminng.lambda.Reducer; import net.hostsharing.hsadminng.mapper.Array; import net.hostsharing.hsadminng.rbac.grant.RawRbacGrantRepository; import net.hostsharing.hsadminng.rbac.role.RawRbacRoleRepository; -import net.hostsharing.hsadminng.rbac.role.RbacRoleRepository; import net.hostsharing.hsadminng.rbac.test.ContextBasedTestWithCleanup; import net.hostsharing.hsadminng.rbac.test.JpaAttempt; import org.junit.jupiter.api.Nested; @@ -62,12 +61,12 @@ class HsOfficeRelationRepositoryIntegrationTest extends ContextBasedTestWithClea @MockBean HttpServletRequest request; - @Autowired - private RbacRoleRepository rbacRoleRepository; - @Nested class AssumeRelationRole { + // TODO.test: these tests would be better placed in the rbac module, + // but for this we need an extra long object-idname in the rbac test data + @Test public void testHostsharingAdminCanAssumeRelationRoleWithLongIdName() { context(