Class TestkitClient
java.lang.Object
com.atlassian.crowd.acceptance.tests.cluster.testutil.TestkitClient
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTrustedProxy
(String address) void
checkStrutsConfig
(String configToCheck) void
void
int
createApplication
(String namePassword, Number... directoryId) int
createApplication
(String namePassword, List<TestkitClient.AppDirMapping> directoryMappings, Set<RemoteAddress> remoteAddresses) long
createDirectory
(Map<String, ? extends Object> properties) void
createGroup
(String groupname, long directoryId) void
createGroup
(String groupname, long directoryId, String description) createInternalDirectory
(int userCount, int groupCount, int usersPerGroup, String namePrefix) void
createMembership
(String username, String groupname, long directoryId) void
createUser
(String username, long directoryId) void
createUser
(String username, long directoryId, boolean active) void
createUser
(String username, long directoryId, String email) void
createUser
(String username, long directoryId, String email, Boolean active, String firstName, String lastName, Boolean hasExpiredPassword) void
createUserWithExpiredPassword
(String username, long directoryId) void
deleteApplication
(long applicationId) void
deleteGroup
(String groupName, long directoryId) void
deleteProperty
(String property) void
deleteUser
(String username, long directoryId) void
disableDarkFeature
(String featureKey) void
enableDarkFeature
(String featureKey) void
expireUserPassword
(long directoryId, String username) getDirectory
(long directoryId) getDirectoryAttributes
(long directoryId) static EnvironmentUtils.JRE
long
getProperty
(String property) getResetToken
(String username, long directoryId) getSyncInfo
(long directoryId) getSystemProperty
(String property) boolean
getUserExternalIds
(long directoryId, List<String> usernames) boolean
boolean
static boolean
isDcLicense
(String crowdUrl) boolean
isEnabledForAllUsers
(String featureKey) boolean
boolean
isSynchronizing
(long directoryId) void
modifyMemberships
(String directoryName, int userMembershipModifications, int groupMembershipModifications) void
void
void
removeClusterMessagesOlderThan
(long millis) void
removeDirectory
(long directoryId) void
removeNestedGroup
(String parentGroupName, String groupName, long directoryId) void
restoreCrowd
(String xmlfilename, Class<?> testClass, String methodName) void
restoreCrowd
(String xmlfilename, Class<?> testClass, String methodName, boolean forceXmlRestore) void
void
void
setProperties
(Map<String, String> properties) void
setProperty
(String property, String value) void
setSchedulerState
(String state) void
setSystemProperty
(String property, String value) void
setTokenStorageType
(TokenStorageType tokenStorageType) void
void
synchroniseDirectory
(long directoryId) void
updateApplicationAttributes
(long appId, Map<String, String> attributes) void
updateApplicationMapping
(long applicationId, long directoryId, boolean allowAllToAuthenticate) void
updateApplicationRemoteAddresses
(long applicationId, List<String> remoteAddresses) void
updateDirectory
(long directoryId, Map<String, Object> properties) void
updateDirectoryAttributes
(long directoryId, Map<String, String> attributes) void
updateDirectoryPermissions
(long directoryId, List<OperationType> operationTypes) void
updateGroup
(String groupName, Long directoryId, String description) void
updateLicense
(String licenseKey) long
void
updateUser
(String username, long directoryId, String email, Boolean active, Boolean hasExpiredPassword, String firstName, String lastName) void
updateUserLocally
(long directoryId, String username, Map<String, String> updatedFields)
-
Field Details
-
TESTKIT_RESOURCE
- See Also:
-
CONFIGURATION_RESOURCE
- See Also:
-
PROPERTIES_RESOURCE
- See Also:
-
SYSTEM_PROPERTIES_RESOURCE
- See Also:
-
DIRECTORIES_RESOURCE
- See Also:
-
DIRECTORY_RESOURCE
- See Also:
-
ATTRIBUTES_RESOURCE
- See Also:
-
SYNCHRONISE_DIR_RESOURCE
- See Also:
-
SYNC_TOKEN_RESOURCE
- See Also:
-
TESTKIT_APPLICATION_RESOURCE
- See Also:
-
SCHEDULER_RESOURCE
- See Also:
-
SCHEDULER_RUNNING_JOBS_RESOURCE
- See Also:
-
NOTIFY_PASSWORD_EXPIRY_RESOURCE
- See Also:
-
MESSAGING_RESOURCE
- See Also:
-
CERTIFICATE_RESOURCE
- See Also:
-
TRUSTED_PROXY_RESOURCE
- See Also:
-
SESSION_CONFIGURATION_RESOURCE
- See Also:
-
ANALYTICS_RESOURCE
- See Also:
-
PROXY_PROPERTIES
- See Also:
-
AUDIT_RESOURCE
- See Also:
-
BACKUPS_RESOURCE
- See Also:
-
LICENSE_RESOURCE
- See Also:
-
COOKIE_RESOURCE
- See Also:
-
USER_RESOURCE
- See Also:
-
RESET_TOKEN
- See Also:
-
GROUP_RESOURCE
- See Also:
-
DARK_FEATURE_RESOURCE
- See Also:
-
CROWD_INFO_RESOURCE
- See Also:
-
CROWD_LOCAL_HOME_RESOURCE
- See Also:
-
CROWD_SHARED_HOME_RESOURCE
- See Also:
-
CROWD_JRE_RESOURCE
- See Also:
-
ALIASES_RESOURCE
- See Also:
-
FIXTURE_RESOURCE
- See Also:
-
STRUTS2_CONFIG_INFO_RESOURCE
- See Also:
-
-
Constructor Details
-
TestkitClient
-
-
Method Details
-
getRunningJobs
-
notifyUsersWithExpiredPassword
public void notifyUsersWithExpiredPassword() -
startScheduler
public void startScheduler() -
pauseScheduler
public void pauseScheduler() -
setSchedulerState
-
backupLicense
public void backupLicense() -
restoreLicense
public void restoreLicense() -
updateLicense
-
updateLicenseUsage
public long updateLicenseUsage() -
getLicenseUsage
public long getLicenseUsage() -
isDcLicense
public boolean isDcLicense() -
isDcLicense
-
getJre
-
createUser
-
createUser
-
createUser
-
createUserWithExpiredPassword
-
createUser
-
updateUserLocally
-
expireUserPassword
-
getUserExternalIds
-
updateUser
-
deleteUser
-
getResetToken
-
createGroup
-
createGroup
-
updateGroup
-
deleteGroup
-
removeNestedGroup
-
createMembership
-
createDirectory
-
updateDirectory
-
removeDirectory
public void removeDirectory(long directoryId) -
updateDirectoryAttributes
-
updateDirectoryPermissions
-
synchroniseDirectory
- Throws:
InterruptedException
-
getSyncInfo
-
isSynchronizing
public boolean isSynchronizing(long directoryId) -
getDirectory
-
getDirectoryIds
-
setProperty
-
setProperties
-
deleteProperty
-
getProperty
-
createApplication
-
createApplication
public int createApplication(String namePassword, List<TestkitClient.AppDirMapping> directoryMappings, Set<RemoteAddress> remoteAddresses) -
updateApplicationMapping
public void updateApplicationMapping(long applicationId, long directoryId, boolean allowAllToAuthenticate) -
updateApplicationRemoteAddresses
-
deleteApplication
public void deleteApplication(long applicationId) -
getApplicationsIds
-
setAlias
-
removeClusterMessagesOlderThan
public void removeClusterMessagesOlderThan(long millis) -
clearTrustedProxies
public void clearTrustedProxies() -
addTrustedProxy
-
clearAuditLog
public void clearAuditLog() -
getCrowdHomePath
-
restoreCrowd
-
restoreCrowd
-
enableDarkFeature
-
disableDarkFeature
-
isEnabledForAllUsers
-
setTokenStorageType
-
checkStrutsConfig
-
getStrutsActions
-
getStrutsOgnlLimit
-
setSystemProperty
-
getSystemProperty
-
getUnsetBooleanPropertyDefaultingToTrueForCrowd
public boolean getUnsetBooleanPropertyDefaultingToTrueForCrowd() -
getCurrentClusterNode
-
getDirectoryAttributes
- Throws:
IOException
-
isLicenseForged
public boolean isLicenseForged() -
updateApplicationAttributes
-
createInternalDirectory
-
modifyMemberships
public void modifyMemberships(String directoryName, int userMembershipModifications, int groupMembershipModifications) -
isAnonymousAccessEnabled
public boolean isAnonymousAccessEnabled()
-