public class TestkitClient extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestkitClient.AppDirMapping |
static class |
TestkitClient.StrutsValidationStatus |
Constructor and Description |
---|
TestkitClient(String crowdUrl) |
Modifier and Type | Method and Description |
---|---|
void |
addTrustedProxy(String address) |
void |
backupLicense() |
TestkitClient.StrutsValidationStatus |
checkStrutsConfig(String configToCheck) |
void |
clearAuditLog() |
void |
clearTrustedProxies() |
int |
createApplication(String namePassword,
List<TestkitClient.AppDirMapping> directoryMappings,
Set<RemoteAddress> remoteAddresses) |
int |
createApplication(String namePassword,
Number... directoryId) |
long |
createDirectory(Map<String,? extends Object> properties) |
void |
createGroup(String groupname,
long directoryId) |
void |
createGroup(String groupname,
long directoryId,
String description) |
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) |
List<Integer> |
getApplicationsIds() |
String |
getCrowdHomePath() |
Optional<ClusterNodeEntity> |
getCurrentClusterNode() |
Map<String,Object> |
getDirectory(long directoryId) |
Map<String,String> |
getDirectoryAttributes(long directoryId) |
List<Integer> |
getDirectoryIds() |
String |
getProperty(String property) |
String |
getResetToken(String username,
long directoryId) |
Collection<String> |
getRunningJobs() |
Integer |
getStrutsOgnlLimit() |
DirectorySynchronisationInformationEntity |
getSyncInfo(long directoryId) |
String |
getSystemProperty(String property) |
boolean |
isDcLicense() |
static boolean |
isDcLicense(String crowdUrl) |
boolean |
isLicenseForged() |
boolean |
isSynchronizing(long directoryId) |
void |
pauseScheduler() |
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,
BackupReuseMode backupReuseMode) |
void |
restoreCrowd(String xmlfilename,
Class testClass,
String methodName,
Predicate<Class> clsMatcher) |
void |
restoreLicense() |
void |
setAlias(long applicationId,
String username,
String alias) |
void |
setProperty(String property,
String value) |
void |
setSchedulerState(String state) |
void |
setSystemProperty(String property,
String value) |
void |
setTokenStorageType(TokenStorageType tokenStorageType) |
void |
startScheduler() |
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) |
void |
updateLicenseUsage() |
void |
updateUser(String username,
long directoryId,
String email,
Boolean active,
String firstName,
String lastName) |
public static final String TESTKIT_RESOURCE
public static final String CONFIGURATION_RESOURCE
public static final String PROPERTIES_RESOURCE
public static final String SYSTEM_PROPERTIES_RESOURCE
public static final String DIRECTORIES_RESOURCE
public static final String DIRECTORY_RESOURCE
public static final String ATTRIBUTES_RESOURCE
public static final String SYNCHRONISE_DIR_RESOURCE
public static final String SYNC_TOKEN_RESOURCE
public static final String TESTKIT_APPLICATION_RESOURCE
public static final String SCHEDULER_RESOURCE
public static final String SCHEDULER_RUNNING_JOBS_RESOURCE
public static final String MESSAGING_RESOURCE
public static final String CERTIFICATE_RESOURCE
public static final String TRUSTED_PROXY_RESOURCE
public static final String SESSION_CONFIGURATION_RESOURCE
public static final String ANALYTICS_RESOURCE
public static final String PROXY_PROPERTIES
public static final String AUDIT_RESOURCE
public static final String BACKUPS_RESOURCE
public static final String LICENSE_RESOURCE
public static final String COOKIE_RESOURCE
public static final String USER_RESOURCE
public static final String RESET_TOKEN
public static final String GROUP_RESOURCE
public static final String DARK_FEATURE_RESOURCE
public static final String CROWD_INFO_RESOURCE
public static final String CROWD_LOCAL_HOME_RESOURCE
public static final String ALIASES_RESOURCE
public static final String STRUTS2_CONFIG_INFO_RESOURCE
public TestkitClient(String crowdUrl)
public Collection<String> getRunningJobs()
public void startScheduler()
public void pauseScheduler()
public void setSchedulerState(String state)
public void backupLicense()
public void restoreLicense()
public void updateLicense(String licenseKey)
public void updateLicenseUsage()
public boolean isDcLicense()
public static boolean isDcLicense(String crowdUrl)
public void createUser(String username, long directoryId, boolean active)
public void createUser(String username, long directoryId)
public void createUserWithExpiredPassword(String username, long directoryId)
public void createUser(String username, long directoryId, String email, Boolean active, String firstName, String lastName, Boolean hasExpiredPassword)
public void updateUser(String username, long directoryId, String email, Boolean active, String firstName, String lastName)
public void deleteUser(String username, long directoryId)
public void createGroup(String groupname, long directoryId)
public void createGroup(String groupname, long directoryId, @Nullable String description)
public void deleteGroup(String groupName, long directoryId)
public void removeNestedGroup(String parentGroupName, String groupName, long directoryId)
public void removeDirectory(long directoryId)
public void updateDirectoryAttributes(long directoryId, Map<String,String> attributes)
public void updateDirectoryPermissions(long directoryId, List<OperationType> operationTypes)
public void synchroniseDirectory(long directoryId) throws InterruptedException
InterruptedException
public DirectorySynchronisationInformationEntity getSyncInfo(long directoryId)
public boolean isSynchronizing(long directoryId)
public void deleteProperty(String property)
public int createApplication(String namePassword, List<TestkitClient.AppDirMapping> directoryMappings, Set<RemoteAddress> remoteAddresses)
public void updateApplicationMapping(long applicationId, long directoryId, boolean allowAllToAuthenticate)
public void updateApplicationRemoteAddresses(long applicationId, List<String> remoteAddresses)
public void deleteApplication(long applicationId)
public void removeClusterMessagesOlderThan(long millis)
public void clearTrustedProxies()
public void addTrustedProxy(String address)
public void clearAuditLog()
public String getCrowdHomePath()
public void restoreCrowd(String xmlfilename, Class testClass, String methodName, BackupReuseMode backupReuseMode)
public void restoreCrowd(String xmlfilename, Class testClass, String methodName, Predicate<Class> clsMatcher)
public void enableDarkFeature(String featureKey)
public void disableDarkFeature(String featureKey)
public void setTokenStorageType(TokenStorageType tokenStorageType)
public TestkitClient.StrutsValidationStatus checkStrutsConfig(String configToCheck)
public Integer getStrutsOgnlLimit()
public Optional<ClusterNodeEntity> getCurrentClusterNode()
public Map<String,String> getDirectoryAttributes(long directoryId) throws IOException
IOException
public boolean isLicenseForged()
Copyright © 2021 Atlassian. All rights reserved.