public class IntegrationTestDenormalisedSpacePermissionsClusterTests extends AbstractDenormalisedPermissionsIntegrationTestBase
admin, bulkPermissionService, contentPermissionManager, denormalisedContentChangeLogDao, denormalisedPermissionsDdlExecutor, denormalisedPermissionStateManager, denormalisedSpaceChangeLogDao, eventPublisher, pageManager, SERVICE_READY_TIMEOUT, spaceDao, spaceManager, spacePermissionManager, state, userAccessor
Constructor and Description |
---|
IntegrationTestDenormalisedSpacePermissionsClusterTests() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
void |
properlyActivateTriggers()
Checks that triggers are activated before processing the content
|
void |
testConcurrentContentChangeLogProcessing()
Check that two nodes do not process space log records in parallel.
|
void |
testConcurrentContentInitialisationRequestsAreHandledCorrectly()
Create 2 instances of DenormalisedPermissionStateManager and run content initialisation in parallel.
|
void |
testConcurrentSidUpdating()
Check that if space and content updaters are trying to add the same sid, it does not lead to collisions
TODO it would be improved by adding delays to DenormalisedSidSeManager
|
void |
testConcurrentSpaceChangeLogProcessing()
Check that two nodes do not process space log records in parallel.
|
void |
testConcurrentSpaceInitialisationRequestsAreHandledCorrectly()
Create 2 instances of DenormalisedPermissionStateManager and run space initialisation in parallel.
|
clearEverything, createPage, deleteContentRecordFromDB, deleteSpace, disableServiceAndWaitUntilItsReady, enableServiceAndWaitUntilItsReady, getDialectName, processLogRecords, removeAllChangeLogRecords, setUpBase, waitForServiceState, waitUntilApiIsEnabled
@Inject public DenormalisedSpacePermissionsUpdater denormalisedSpacePermissionsUpdater
@Inject public DenormalisedContentPermissionsUpdater denormalisedContentPermissionsUpdater
@Inject public RealContentAndPermissionsDao realContentAndPermissionsDao
@Inject public DenormalisedServiceStateDao denormalisedServiceStateDao
@Inject public DenormalisedPermissionStateLogService denormalisedPermissionStateLogService
public IntegrationTestDenormalisedSpacePermissionsClusterTests()
public void init()
public void testConcurrentSpaceInitialisationRequestsAreHandledCorrectly() throws InterruptedException
InterruptedException
public void testConcurrentContentInitialisationRequestsAreHandledCorrectly() throws InterruptedException
InterruptedException
public void testConcurrentSpaceChangeLogProcessing() throws InterruptedException
InterruptedException
public void testConcurrentSidUpdating() throws InterruptedException, ExecutionException
public void testConcurrentContentChangeLogProcessing() throws InterruptedException
InterruptedException
public void properlyActivateTriggers() throws ExecutionException, InterruptedException
Copyright © 2003–2021 Atlassian. All rights reserved.