Class AbstractDbCachingLoadTest

Direct Known Subclasses:
DbCachingLoadAndOperateTest, DbCachingLoadMutationTest, DbCachingLoadTest

public abstract class AbstractDbCachingLoadTest extends CrowdAcceptanceTestCase
Contains constants and helper methods that are shared between DbCachingLoad tests The LDAP server properties will be determined by the property file provided in the system property: tpm.loadtest.file
  • Field Details

    • CHILD_OU_A

      public static final String CHILD_OU_A
    • CHILD_OU_B

      public static final String CHILD_OU_B
    • CHILD_OU_C

      public static final String CHILD_OU_C
    • CHILD_OU_D

      public static final String CHILD_OU_D
    • CONNECTOR_BASEDN

      public static final String CONNECTOR_BASEDN
    • CONNECTOR_URL

      public static final String CONNECTOR_URL
    • CONNECTOR_SECURE

      public static final String CONNECTOR_SECURE
    • CONNECTOR_REFERRAL

      public static final String CONNECTOR_REFERRAL
    • CONNECTOR_PAGEDRESULTS

      public static final String CONNECTOR_PAGEDRESULTS
    • CONNECTOR_PAGEDRESULTSSIZE

      public static final String CONNECTOR_PAGEDRESULTSSIZE
    • CONNECTOR_USERDN

      public static final String CONNECTOR_USERDN
    • CONNECTOR_USERPW

      public static final String CONNECTOR_USERPW
    • CONNECTOR_CLASSNAME

      public static final String CONNECTOR_CLASSNAME
    • CONNECTOR_NESTEDGROUPS

      public static final String CONNECTOR_NESTEDGROUPS
    • CONNECTOR_DIRECTORY_NAME

      public static final String CONNECTOR_DIRECTORY_NAME
      See Also:
    • ONE_MINUTE_IN_MILLIS

      public static final int ONE_MINUTE_IN_MILLIS
      See Also:
    • PARTIAL_GROUPNAME

      public static final String PARTIAL_GROUPNAME
    • PARTIAL_USERNAME

      public static final String PARTIAL_USERNAME
    • MEMBERSHIPS_COUNT

      public static final int MEMBERSHIPS_COUNT
    • useSpringLdapConnectionPooling

      public boolean useSpringLdapConnectionPooling
  • Constructor Details

    • AbstractDbCachingLoadTest

      public AbstractDbCachingLoadTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Overrides:
      setUp in class CrowdAcceptanceTestCase
      Throws:
      Exception
    • restoreBaseSetup

      public void restoreBaseSetup()
      Overrides:
      restoreBaseSetup in class CrowdWebDriverTest
    • synchroniseDirectory

      public long synchroniseDirectory(String shortDescription) throws InterruptedException
      Manually starts the sync.
      Parameters:
      shortDescription - A short description of what is being sync-ed (eg. 10k users) to be printed once we believe the sync has finished.
      Returns:
      The duration of the sync process in seconds.
      Throws:
      InterruptedException
    • parsePrettyDurationToSeconds

      protected static long parsePrettyDurationToSeconds(String duration)
    • waitForExistingSyncToFinish

      public void waitForExistingSyncToFinish()
    • createLoadTestingDirectory

      public long createLoadTestingDirectory(String url, String baseDN, String userDN, String password) throws Exception
      Throws:
      Exception
    • isSynchronising

      protected boolean isSynchronising(String directoryName)
      Returns true if the directory is currently being synchronised.
      Parameters:
      directoryName -
      Returns:
      true if the directory is currently being synchronised
    • getConnectorType

      protected String getConnectorType()
    • assertUsersAndGroupsFromOUPresent

      public void assertUsersAndGroupsFromOUPresent(String childOU)
    • assertUsersAndGroupsFromOUNotPresent

      public void assertUsersAndGroupsFromOUNotPresent(String childOU)
    • createUserName

      public String createUserName(String childOU, int index)
    • createGroupName

      public String createGroupName(String childOU, int index)