assuming-long-roleidnames + object-uuid-based-rolenames #139
@ -7,7 +7,6 @@ import net.hostsharing.hsadminng.lambda.Reducer;
|
|||||||
import net.hostsharing.hsadminng.mapper.Array;
|
import net.hostsharing.hsadminng.mapper.Array;
|
||||||
import net.hostsharing.hsadminng.rbac.grant.RawRbacGrantRepository;
|
import net.hostsharing.hsadminng.rbac.grant.RawRbacGrantRepository;
|
||||||
import net.hostsharing.hsadminng.rbac.role.RawRbacRoleRepository;
|
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.ContextBasedTestWithCleanup;
|
||||||
import net.hostsharing.hsadminng.rbac.test.JpaAttempt;
|
import net.hostsharing.hsadminng.rbac.test.JpaAttempt;
|
||||||
import org.junit.jupiter.api.Nested;
|
import org.junit.jupiter.api.Nested;
|
||||||
@ -62,12 +61,12 @@ class HsOfficeRelationRepositoryIntegrationTest extends ContextBasedTestWithClea
|
|||||||
@MockBean
|
@MockBean
|
||||||
HttpServletRequest request;
|
HttpServletRequest request;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private RbacRoleRepository rbacRoleRepository;
|
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
class AssumeRelationRole {
|
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
|
@Test
|
||||||
public void testHostsharingAdminCanAssumeRelationRoleWithLongIdName() {
|
public void testHostsharingAdminCanAssumeRelationRoleWithLongIdName() {
|
||||||
context(
|
context(
|
||||||
|
Loading…
Reference in New Issue
Block a user