Change class name to ContextIT and correct a test

(cherry picked from commit a5567992bb)
This commit is contained in:
Toni Prieto
2023-10-27 09:11:12 +02:00
committed by github-actions[bot]
parent ddbba2d125
commit 6c211ac19c

View File

@@ -18,7 +18,7 @@ import org.dspace.authorize.service.AuthorizeService;
import org.dspace.builder.CommunityBuilder;
import org.junit.Test;
public class ContextModeIT extends AbstractIntegrationTestWithDatabase {
public class ContextIT extends AbstractIntegrationTestWithDatabase {
AuthorizeService authorizeService = AuthorizeServiceFactory.getInstance().getAuthorizeService();
@@ -26,6 +26,11 @@ public class ContextModeIT extends AbstractIntegrationTestWithDatabase {
public void testGetPoliciesNewCommunityAfterReadOnlyModeChange() throws Exception {
context.turnOffAuthorisationSystem();
// First disable the index consumer. The indexing process calls the authorizeService
// function used in this test and may affect the test
context.setDispatcher("noindex");
parentCommunity = CommunityBuilder.createCommunity(context)
.withName("Parent Community")
.build();