public class TestkitClient extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestkitClient.AppDirMapping |
Constructor and Description |
---|
TestkitClient(String crowdUrl) |
Modifier and Type | Method and Description |
---|---|
void |
addTrustedProxy(String address) |
void |
backupLicense() |
void |
clearAuditLog() |
void |
clearTrustedProxies() |
int |
createApplication(String namePassword,
List<TestkitClient.AppDirMapping> directoryMappings,
Set<RemoteAddress> remoteAddresses) |
int |
createApplication(String namePassword,
Number... directoryId) |
int |
createDirectory(Map<String,? extends Object> properties) |
void |
createGroup(String groupname,
long directoryId) |
void |
createMembership(String username,
String groupname,
long directoryId) |
void |
createUser(String username,
long directoryId) |
void |
createUser(String username,
long directoryId,
boolean active) |
void |
createUserWithExpiredPassword(String username,
long directoryId) |
void |
deleteApplication(long applicationId) |
void |
deleteProperty(String property) |
void |
disableDarkFeature(String featureKey) |
void |
enableDarkFeature(String featureKey) |
List<Integer> |
getApplicationsIds() |
String |
getCrowdHomePath() |
Map<String,Object> |
getDirectory(int directoryId) |
List<Integer> |
getDirectoryIds() |
String |
getProperty(String property) |
String |
getResetToken(String username,
long directoryId) |
Collection<String> |
getRunningJobs() |
DirectorySynchronisationInformationEntity |
getSyncInfo(long directoryId) |
void |
pauseScheduler() |
void |
removeClusterMessagesOlderThan(long millis) |
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 |
setProperty(String property,
String value) |
void |
setSchedulerState(String state) |
void |
setTokenStorageType(TokenStorageType tokenStorageType) |
void |
startScheduler() |
void |
synchroniseDirectory(long directoryId) |
void |
updateApplicationMapping(int applicationId,
int directoryId,
boolean allowAllToAuthenticate) |
void |
updateApplicationRemoteAddresses(int 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) |
public static final String TESTKIT_RESOURCE
public static final String CONFIGURATION_RESOURCE
public static final String PROPERTIES_RESOURCE
public static final String DIRECTORIES_RESOURCE
public static final String DIRECTORY_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 INACTIVE_USER_RESOURCE
public static final String USER_EXPIRED_PASSWORD_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 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 createUser(String username, long directoryId, boolean active)
public void createUser(String username, long directoryId)
public void createUserWithExpiredPassword(String username, long directoryId)
public void createGroup(String groupname, 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 void deleteProperty(String property)
public int createApplication(String namePassword, List<TestkitClient.AppDirMapping> directoryMappings, Set<RemoteAddress> remoteAddresses)
public void updateApplicationMapping(int applicationId, int directoryId, boolean allowAllToAuthenticate)
public void updateApplicationRemoteAddresses(int 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)
Copyright © 2020 Atlassian. All rights reserved.