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
-
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.WebTarget
Creates 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) void
deleteTrustedSshKey
(@NotNull String host, @NotNull String key) Remove Trusted SSH keydeleteWebhookTemplate
(@NotNull UUID uuid) void
void
@NotNull RestBuildConcurrency
Returns current global build concurrency settings.int
@NotNull List<RestVariableDefinition>
boolean
void
void
setAgentAssignmentModificationByUsersAllowed
(boolean agentAssignmentModificationByUsersAllowed) void
setBuildConcurrencySettings
(boolean enabledBuildConcurrency, Integer defaultConcurrentBuilds) Sets current global build concurrency settings to the given primitives.void
setBuildMonitoringSettings
(int logQuietTime, int buildQueueTimeout) Sets plan monitoring settings for hung buildsvoid
setBuildMonitoringSettings
(@NotNull RestBuildMonitoring monitoringSettings) void
setDashboardPageSize
(int dashboardPageSize) void
setGlobalExpiryConfiguration
(@NotNull RestCombinedExpiryConfiguration configuration) Turn on instance expiration policy for build and deployment results.void
setLicense
(String license) void
setMailServerSettings
(@NotNull MailServerSettings mailServerSettings) void
setManualEncryptionConfiguration
(boolean enabled, int invocationLimit, TimeUnit invocationLimitUnit) void
setRestrictedAdminRole
(boolean enableRestrictedAdminRole) void
setSecuritySettings
(RestSecuritySettings settings) void
setSoxComplianceModeEnabled
(boolean enableSoxComplianceMode) setStorageConfiguration
(RestStorageConfiguration storageConfiguration) void
tearDown()
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:BackdoorControl
Cleanup resources- Overrides:
tearDown
in classBackdoorControl<AdministrationControl>
-
createResource
protected javax.ws.rs.client.WebTarget createResource()Description copied from class:BackdoorControl
Creates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath()
. Note that the createdWebResource
has the following properties:- it logs all GET/POST/etc requests made through it
- it sets the
Content-Type: application/json
by default (override withWebTarget.request(MediaType...)
)
BackdoorControl.createResourceForPath(java.lang.String)
- Overrides:
createResource
in 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
-