assuming-long-roleidnames + object-uuid-based-rolenames #139

Merged
hsh-michaelhoennig merged 13 commits from bugfix/assuming-long-roleidnames into master 2024-12-30 10:00:20 +01:00
Showing only changes of commit 6ee3a465c6 - Show all commits

View File

@ -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(