Class AdministrationControl
java.lang.Object
com.atlassian.bamboo.testutils.backdoor.BackdoorControl<AdministrationControl>
com.atlassian.bamboo.testutils.backdoor.AdministrationControl
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter -
Field Summary
Fields inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, XSRF_NO_CHECK, XSRF_TOKEN_HEADER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddWebhookTemplate(@NotNull String name, @NotNull String payload, @NotNull String headers, @NotNull UUID uuid) createGlobalVariable(@NotNull String key, @NotNull String value) protected javax.ws.rs.client.WebTargetCreates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath().createTemporaryGlobalVariable(@NotNull String key, @NotNull String value) createTrustedSshKey(String host, String key) deleteGlobalVariable(@NotNull String key) voiddeleteTrustedSshKey(@NotNull String host, @NotNull String key) Remove Trusted SSH keydeleteWebhookTemplate(@NotNull UUID uuid) voidvoid@NotNull RestBuildConcurrencyReturns current global build concurrency settings.int@NotNull List<RestVariableDefinition>booleanvoidvoidsetAgentAssignmentModificationByUsersAllowed(boolean agentAssignmentModificationByUsersAllowed) voidsetBuildConcurrencySettings(boolean enabledBuildConcurrency, Integer defaultConcurrentBuilds) Sets current global build concurrency settings to the given primitives.voidsetBuildMonitoringSettings(int logQuietTime, int buildQueueTimeout) Sets plan monitoring settings for hung buildsvoidsetBuildMonitoringSettings(@NotNull RestBuildMonitoring monitoringSettings) voidsetDashboardPageSize(int dashboardPageSize) voidsetGlobalExpiryConfiguration(@NotNull RestCombinedExpiryConfiguration configuration) Turn on instance expiration policy for build and deployment results.voidsetLicense(String license) voidsetMailServerSettings(@NotNull MailServerSettings mailServerSettings) voidsetManualEncryptionConfiguration(boolean enabled, int invocationLimit, TimeUnit invocationLimitUnit) voidsetRestrictedAdminRole(boolean enableRestrictedAdminRole) voidsetSecuritySettings(RestSecuritySettings settings) voidsetSoxComplianceModeEnabled(boolean enableSoxComplianceMode) setStorageConfiguration(RestStorageConfiguration storageConfiguration) voidtearDown()Cleanup resourcesMethods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
anonymousResourceRoot, client, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRestModulePath, getRootPath, percentEncode, ping, post, resourceRoot
-
Constructor Details
-
AdministrationControl
-
-
Method Details
-
tearDown
public void tearDown()Description copied from class:BackdoorControlCleanup resources- Overrides:
tearDownin classBackdoorControl<AdministrationControl>
-
createResource
protected javax.ws.rs.client.WebTarget createResource()Description copied from class:BackdoorControlCreates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath(). Note that the createdWebResourcehas the following properties:- it logs all GET/POST/etc requests made through it
- it sets the
Content-Type: application/jsonby default (override withWebTarget.request(MediaType...))
BackdoorControl.createResourceForPath(java.lang.String)- Overrides:
createResourcein classBackdoorControl<AdministrationControl>- Returns:
- a WebResource for the TestKit REST API root
- See Also:
-
logSettings
-
isAuditLogEnabled
public boolean isAuditLogEnabled() -
enableAuditLog
- Throws:
Exception
-
disableAuditLog
- Throws:
Exception
-
getDashboardPageSize
public int getDashboardPageSize() -
setDashboardPageSize
public void setDashboardPageSize(int dashboardPageSize) -
createGlobalVariable
public AdministrationControl createGlobalVariable(@NotNull @NotNull String key, @NotNull @NotNull String value) -
addWebhookTemplate
public AdministrationControl addWebhookTemplate(@NotNull @NotNull String name, @NotNull @NotNull String payload, @NotNull @NotNull String headers, @NotNull @NotNull UUID uuid) -
deleteWebhookTemplate
-
deleteGlobalVariable
-
createTemporaryGlobalVariable
public AdministrationControl createTemporaryGlobalVariable(@NotNull @NotNull String key, @NotNull @NotNull String value) -
getGlobalVariables
-
getSystemInfo
- Throws:
Exception
-
setStorageConfiguration
-
getStorageConfiguration
-
getSecuritySettings
-
setSecuritySettings
-
setRestrictedAdminRole
public void setRestrictedAdminRole(boolean enableRestrictedAdminRole) -
setSoxComplianceModeEnabled
public void setSoxComplianceModeEnabled(boolean enableSoxComplianceMode) -
setAgentAssignmentModificationByUsersAllowed
public void setAgentAssignmentModificationByUsersAllowed(boolean agentAssignmentModificationByUsersAllowed) -
setMailServerSettings
-
removeMailServerSettings
public void removeMailServerSettings() -
getBuildConcurrencySettings
Returns current global build concurrency settings. Requires experimental REST admin API to be enabled.- Throws:
Exception
-
createTrustedSshKey
- Throws:
Exception
-
getTrustedSshKeys
-
deleteTrustedSshKey
Remove Trusted SSH key- Parameters:
host-key-
-
setBuildConcurrencySettings
public void setBuildConcurrencySettings(boolean enabledBuildConcurrency, Integer defaultConcurrentBuilds) Sets current global build concurrency settings to the given primitives. Requires experimental REST admin API to be enabled. -
setBuildMonitoringSettings
public void setBuildMonitoringSettings(int logQuietTime, int buildQueueTimeout) Sets plan monitoring settings for hung builds- Parameters:
logQuietTime- minutesbuildQueueTimeout- minutes
-
setBuildMonitoringSettings
-
setLicense
-
setGlobalExpiryConfiguration
public void setGlobalExpiryConfiguration(@NotNull @NotNull RestCombinedExpiryConfiguration configuration) Turn on instance expiration policy for build and deployment results. -
setManualEncryptionConfiguration
public void setManualEncryptionConfiguration(boolean enabled, int invocationLimit, TimeUnit invocationLimitUnit) -
addLightThemeLogo
- Throws:
Exception
-
addDarkThemeLogo
- Throws:
Exception
-