Class BaseSynchroniseCrowdDirectoryTest
java.lang.Object
com.atlassian.crowd.acceptance.tests.synchronisation.remote.BaseSynchroniseCrowdDirectoryTest
- Direct Known Subclasses:
IncrementalSyncImprovementsTest
,SynchroniseCrowdDirectoryClientApplicationTest
,SynchroniseCrowdDirectoryCreateGroupMembershipTest
,SynchroniseCrowdDirectoryCreateGroupTest
,SynchroniseCrowdDirectoryCreateUserMembershipTest
,SynchroniseCrowdDirectoryCreateUserTest
,SynchroniseCrowdDirectoryDuplicatedExternalIdsTest
,SynchroniseCrowdDirectoryForceFullSyncTest
,SynchroniseCrowdDirectoryGroupAttributesTest
,SynchroniseCrowdDirectoryNestedMembershipsTest
,SynchroniseCrowdDirectoryRemoveGroupTest
,SynchroniseCrowdDirectoryRemoveMembershipTest
,SynchroniseCrowdDirectoryRemoveUserMembershipTest
,SynchroniseCrowdDirectoryRemoveUserTest
,SynchroniseCrowdDirectoryServerApplicationTest
,SynchroniseCrowdDirectoryUpdateGroupTest
,SynchroniseCrowdDirectoryUpdateUserTest
,SynchroniseCrowdDirectoryUserAttributesTest
,SynchroniseCrowdDirectoryWithAccessBasedFiltering
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
static final BatchedTestRule
static final String
protected static final long
protected static final String
protected static final long
protected static int
protected static final String
protected static int
protected static final String
protected static long
com.atlassian.testutils.rules.RunConditionallyRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
deleteUserInRemoteDir1
(String username) protected void
deleteUserInRemoteDir2
(String username) protected void
protected ApplicationEntity
findApplicationByName
(CrowdInstanceHelper crowdInstance, String applicationName) findLocalUserByName
(Boolean active, String username) protected UserData
findLocalUserByNameOrFail
(Boolean active, String username) protected UserData
findLocalUserByNameOrFail
(String username) findLocalUsers
(String search) findUserByName
(CrowdInstanceHelper instance, long directoryId, Boolean active, String username) protected CrowdClient
protected CrowdClient
protected final SynchronisationMode
protected boolean
isDc()
static Collection<Object[]>
protected void
protected void
restoreCrowds
(String crowd1Xml, String crowd2Xml) org.junit.rules.TestRule
org.junit.rules.TestRule
org.junit.rules.TestRule
org.junit.rules.TestRule
org.junit.rules.TestRule
protected List<GroupSearchResultEntity>
searchLocalGroups
(String search) void
setUp()
protected void
protected void
syncAndAssertMode
(SynchronisationMode expected) protected void
updateApplication
(CrowdInstanceHelper crowdInstance, String applicationName, UnaryOperator<ApplicationEntity.Builder> changes)
-
Field Details
-
batchedCrowdTest
-
LOCAL_DIRECTORY_NAME
- See Also:
-
LOCAL_DIRECTORY_ID
protected static final long LOCAL_DIRECTORY_ID- See Also:
-
REMOTE_DIRECTORY1_NAME
- See Also:
-
REMOTE_DIRECTORY1_ID
protected static int REMOTE_DIRECTORY1_ID -
REMOTE_DIRECTORY2_NAME
- See Also:
-
REMOTE_DIRECTORY2_ID
protected static int REMOTE_DIRECTORY2_ID -
REMOTE_DIRECTORY3_ID
protected static long REMOTE_DIRECTORY3_ID -
APPLICATION_NAME
- See Also:
-
LOOP_APPLICATION_ID
protected static final long LOOP_APPLICATION_ID- See Also:
-
CROWD_APP_PASSWORD
- See Also:
-
runConditionallyRule
public com.atlassian.testutils.rules.RunConditionallyRule runConditionallyRule -
synchronisationMode
-
enableMembershipIterationImprovement
-
allowDuplicatedExternalIds
-
enableIncrementalSyncEventsImprovements
-
enableDeleteUserMembershipBatchingImprovement
-
enableNestedGroupsGroupMembershipChangesBatchingImprovement
-
crowd1
-
crowd2
-
-
Constructor Details
-
BaseSynchroniseCrowdDirectoryTest
public BaseSynchroniseCrowdDirectoryTest()
-
-
Method Details
-
parameters
-
runWithMembershipSyncImprovementRule
public org.junit.rules.TestRule runWithMembershipSyncImprovementRule() -
runWithAllowDuplicatedExternalIdsRule
public org.junit.rules.TestRule runWithAllowDuplicatedExternalIdsRule() -
runWithRecreatedMembershipsBatchingRule
public org.junit.rules.TestRule runWithRecreatedMembershipsBatchingRule() -
runWithDeleteUserMembershipsBatchingRule
public org.junit.rules.TestRule runWithDeleteUserMembershipsBatchingRule() -
runWithNestedGroupsGroupMembershipChangesBatchingRule
public org.junit.rules.TestRule runWithNestedGroupsGroupMembershipChangesBatchingRule() -
setUp
- Throws:
Exception
-
allowDuplicatedExternalIds
protected boolean allowDuplicatedExternalIds() -
restoreCrowds
- Throws:
Exception
-
restoreCrowds
- Throws:
Exception
-
getCrowdClient1
-
getCrowdClient2
-
getExpectedMode
-
doInitialSync
protected void doInitialSync() -
syncAndAssertMode
protected void syncAndAssertMode() -
syncAndAssertMode
-
deleteUserInRemoteDir1
-
deleteUserInRemoteDir2
-
findLocalUserByNameOrFail
-
findLocalUserByNameOrFail
-
findLocalUserByName
-
findUserByName
protected Optional<UserData> findUserByName(CrowdInstanceHelper instance, long directoryId, Boolean active, String username) -
getLocalUserNames
-
findLocalUsers
-
updateApplication
protected void updateApplication(CrowdInstanceHelper crowdInstance, String applicationName, UnaryOperator<ApplicationEntity.Builder> changes) -
findApplicationByName
protected ApplicationEntity findApplicationByName(CrowdInstanceHelper crowdInstance, String applicationName) -
getLocalGroupNames
-
searchLocalGroups
-
isDc
protected boolean isDc()
-