java.lang.Object
com.atlassian.crowd.acceptance.tests.cluster.testutil.TestkitClient

public class TestkitClient extends Object
  • Field Details

  • Constructor Details

    • TestkitClient

      public TestkitClient(String crowdUrl)
  • Method Details

    • getRunningJobs

      public Collection<String> getRunningJobs()
    • notifyUsersWithExpiredPassword

      public void notifyUsersWithExpiredPassword()
    • startScheduler

      public void startScheduler()
    • pauseScheduler

      public void pauseScheduler()
    • setSchedulerState

      public void setSchedulerState(String state)
    • backupLicense

      public void backupLicense()
    • restoreLicense

      public void restoreLicense()
    • updateLicense

      public void updateLicense(String licenseKey)
    • updateLicenseUsage

      public long updateLicenseUsage()
    • getLicenseUsage

      public long getLicenseUsage()
    • isDcLicense

      public boolean isDcLicense()
    • isDcLicense

      public static boolean isDcLicense(String crowdUrl)
    • getJre

      public static EnvironmentUtils.JRE getJre(String crowdUrl)
    • createUser

      public void createUser(String username, long directoryId, boolean active)
    • createUser

      public void createUser(String username, long directoryId)
    • createUser

      public void createUser(String username, long directoryId, String email)
    • createUserWithExpiredPassword

      public void createUserWithExpiredPassword(String username, long directoryId)
    • createUser

      public void createUser(String username, long directoryId, String email, Boolean active, String firstName, String lastName, Boolean hasExpiredPassword)
    • updateUserLocally

      public void updateUserLocally(long directoryId, String username, Map<String,String> updatedFields)
    • expireUserPassword

      public void expireUserPassword(long directoryId, String username)
    • getUserExternalIds

      public Map<String,String> getUserExternalIds(long directoryId, List<String> usernames)
    • updateUser

      public void updateUser(String username, long directoryId, String email, Boolean active, Boolean hasExpiredPassword, String firstName, String lastName)
    • deleteUser

      public void deleteUser(String username, long directoryId)
    • getResetToken

      public String getResetToken(String username, long directoryId)
    • createGroup

      public void createGroup(String groupname, long directoryId)
    • createGroup

      public void createGroup(String groupname, long directoryId, @Nullable String description)
    • updateGroup

      public void updateGroup(String groupName, Long directoryId, String description)
    • deleteGroup

      public void deleteGroup(String groupName, long directoryId)
    • removeNestedGroup

      public void removeNestedGroup(String parentGroupName, String groupName, long directoryId)
    • createMembership

      public void createMembership(String username, String groupname, long directoryId)
    • createDirectory

      public long createDirectory(Map<String,? extends Object> properties)
    • updateDirectory

      public void updateDirectory(long directoryId, Map<String,Object> properties)
    • removeDirectory

      public void removeDirectory(long directoryId)
    • updateDirectoryAttributes

      public void updateDirectoryAttributes(long directoryId, Map<String,String> attributes)
    • updateDirectoryPermissions

      public void updateDirectoryPermissions(long directoryId, List<OperationType> operationTypes)
    • synchroniseDirectory

      public void synchroniseDirectory(long directoryId) throws InterruptedException
      Throws:
      InterruptedException
    • getSyncInfo

      public DirectorySynchronisationInformationEntity getSyncInfo(long directoryId)
    • isSynchronizing

      public boolean isSynchronizing(long directoryId)
    • getDirectory

      public Map<String,Object> getDirectory(long directoryId)
    • getDirectoryIds

      public List<Integer> getDirectoryIds()
    • setProperty

      public void setProperty(String property, String value)
    • setProperties

      public void setProperties(Map<String,String> properties)
    • deleteProperty

      public void deleteProperty(String property)
    • getProperty

      public String getProperty(String property)
    • createApplication

      public int createApplication(String namePassword, Number... directoryId)
    • createApplication

      public int createApplication(String namePassword, List<TestkitClient.AppDirMapping> directoryMappings, Set<RemoteAddress> remoteAddresses)
    • updateApplicationMapping

      public void updateApplicationMapping(long applicationId, long directoryId, boolean allowAllToAuthenticate)
    • updateApplicationRemoteAddresses

      public void updateApplicationRemoteAddresses(long applicationId, List<String> remoteAddresses)
    • deleteApplication

      public void deleteApplication(long applicationId)
    • getApplicationsIds

      public List<Integer> getApplicationsIds()
    • setAlias

      public void setAlias(long applicationId, String username, String alias)
    • removeClusterMessagesOlderThan

      public void removeClusterMessagesOlderThan(long millis)
    • clearTrustedProxies

      public void clearTrustedProxies()
    • addTrustedProxy

      public void addTrustedProxy(String address)
    • clearAuditLog

      public void clearAuditLog()
    • getCrowdHomePath

      public String getCrowdHomePath()
    • getCrowdSharedHomePath

      public String getCrowdSharedHomePath()
    • restoreCrowd

      public void restoreCrowd(String xmlfilename, Class<?> testClass, String methodName)
    • restoreCrowd

      public void restoreCrowd(String xmlfilename, Class<?> testClass, String methodName, boolean forceXmlRestore)
    • enableDarkFeature

      public void enableDarkFeature(String featureKey)
    • disableDarkFeature

      public void disableDarkFeature(String featureKey)
    • isEnabledForAllUsers

      public boolean isEnabledForAllUsers(String featureKey)
    • setTokenStorageType

      public void setTokenStorageType(TokenStorageType tokenStorageType)
    • checkStrutsConfig

      public TestkitClient.StrutsValidationStatus checkStrutsConfig(String configToCheck)
    • getStrutsActions

      public List<TestkitStrutsAction> getStrutsActions()
    • getStrutsOgnlLimit

      public Integer getStrutsOgnlLimit()
    • setSystemProperty

      public void setSystemProperty(String property, String value)
    • getSystemProperty

      public String getSystemProperty(String property)
    • getUnsetBooleanPropertyDefaultingToTrueForCrowd

      public boolean getUnsetBooleanPropertyDefaultingToTrueForCrowd()
    • getCurrentClusterNode

      public Optional<ClusterNodeEntity> getCurrentClusterNode()
    • getDirectoryAttributes

      public Map<String,String> getDirectoryAttributes(long directoryId) throws IOException
      Throws:
      IOException
    • isLicenseForged

      public boolean isLicenseForged()
    • updateApplicationAttributes

      public void updateApplicationAttributes(long appId, Map<String,String> attributes)
    • createInternalDirectory

      public Map<String,Object> createInternalDirectory(int userCount, int groupCount, int usersPerGroup, String namePrefix)
    • modifyMemberships

      public void modifyMemberships(String directoryName, int userMembershipModifications, int groupMembershipModifications)
    • isAnonymousAccessEnabled

      public boolean isAnonymousAccessEnabled()