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

public abstract class BaseSynchroniseCrowdDirectoryTest extends Object
  • Field Details

    • batchedCrowdTest

      public static final BatchedTestRule batchedCrowdTest
    • LOCAL_DIRECTORY_NAME

      protected static final String LOCAL_DIRECTORY_NAME
      See Also:
    • LOCAL_DIRECTORY_ID

      protected static final long LOCAL_DIRECTORY_ID
      See Also:
    • REMOTE_DIRECTORY1_NAME

      protected static final String REMOTE_DIRECTORY1_NAME
      See Also:
    • REMOTE_DIRECTORY1_ID

      protected static int REMOTE_DIRECTORY1_ID
    • REMOTE_DIRECTORY2_NAME

      protected static final String 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

      protected static final String APPLICATION_NAME
      See Also:
    • LOOP_APPLICATION_ID

      protected static final long LOOP_APPLICATION_ID
      See Also:
    • CROWD_APP_PASSWORD

      public static final String CROWD_APP_PASSWORD
      See Also:
    • runConditionallyRule

      public com.atlassian.testutils.rules.RunConditionallyRule runConditionallyRule
    • synchronisationMode

      public SynchronisationMode synchronisationMode
    • enableMembershipIterationImprovement

      public Boolean enableMembershipIterationImprovement
    • allowDuplicatedExternalIds

      public Boolean allowDuplicatedExternalIds
    • enableIncrementalSyncEventsImprovements

      public Boolean enableIncrementalSyncEventsImprovements
    • enableDeleteUserMembershipBatchingImprovement

      public Boolean enableDeleteUserMembershipBatchingImprovement
    • enableNestedGroupsGroupMembershipChangesBatchingImprovement

      public Boolean enableNestedGroupsGroupMembershipChangesBatchingImprovement
    • crowd1

      public CrowdInstanceHelper crowd1
    • crowd2

      public CrowdInstanceHelper crowd2
  • Constructor Details

    • BaseSynchroniseCrowdDirectoryTest

      public BaseSynchroniseCrowdDirectoryTest()
  • Method Details

    • parameters

      public static Collection<Object[]> 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

      public void setUp() throws Exception
      Throws:
      Exception
    • allowDuplicatedExternalIds

      protected boolean allowDuplicatedExternalIds()
    • restoreCrowds

      protected void restoreCrowds() throws Exception
      Throws:
      Exception
    • restoreCrowds

      protected void restoreCrowds(String crowd1Xml, String crowd2Xml) throws Exception
      Throws:
      Exception
    • getCrowdClient1

      protected CrowdClient getCrowdClient1()
    • getCrowdClient2

      protected CrowdClient getCrowdClient2()
    • getExpectedMode

      protected final SynchronisationMode getExpectedMode()
    • doInitialSync

      protected void doInitialSync()
    • syncAndAssertMode

      protected void syncAndAssertMode()
    • syncAndAssertMode

      protected void syncAndAssertMode(SynchronisationMode expected)
    • deleteUserInRemoteDir1

      protected void deleteUserInRemoteDir1(String username)
    • deleteUserInRemoteDir2

      protected void deleteUserInRemoteDir2(String username)
    • findLocalUserByNameOrFail

      protected UserData findLocalUserByNameOrFail(String username)
    • findLocalUserByNameOrFail

      protected UserData findLocalUserByNameOrFail(Boolean active, String username)
    • findLocalUserByName

      protected Optional<UserData> findLocalUserByName(Boolean active, String username)
    • findUserByName

      protected Optional<UserData> findUserByName(CrowdInstanceHelper instance, long directoryId, Boolean active, String username)
    • getLocalUserNames

      protected List<String> getLocalUserNames()
    • findLocalUsers

      protected List<UserData> findLocalUsers(String search)
    • updateApplication

      protected void updateApplication(CrowdInstanceHelper crowdInstance, String applicationName, UnaryOperator<ApplicationEntity.Builder> changes)
    • findApplicationByName

      protected ApplicationEntity findApplicationByName(CrowdInstanceHelper crowdInstance, String applicationName)
    • getLocalGroupNames

      public List<String> getLocalGroupNames()
    • searchLocalGroups

      protected List<GroupSearchResultEntity> searchLocalGroups(String search)
    • isDc

      protected boolean isDc()