Class ServerCapabilitiesControl
java.lang.Object
com.atlassian.bamboo.testutils.backdoor.BackdoorControl<ServerCapabilitiesControl>
com.atlassian.bamboo.testutils.backdoor.ServerCapabilitiesControl
-
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 TypeMethodDescriptionvoid
createCapability
(@NotNull String key, @Nullable String value) Create shared server capabilityvoid
createCommandExecutable
(@NotNull String name, @Nullable String path) Convenience method for creating Command capabilityvoid
createGrailsExecutable
(@NotNull String name, @Nullable String path) Convenience method for creating Grails capabilityvoid
createJdkCapability
(@NotNull String name, @Nullable String path) Create JDK capability.void
deleteCapability
(@NotNull String capabilityKey) Delete capability, will throw exception if REST endpoint returns an error (most probably capability doesn't exist)void
deleteCapabilityQuietly
(@NotNull String capabilityKey) Delete capability, will throw exception if REST endpoint returns an error (most probably capability doesn't exist)void
Call standard "Detect server capabilities" action.Return full list of shared server capabilitiesgetServerExecutable
(@NotNull String namePattern) Get value of server executable capabilitygitPath()
boolean
Check if given JDK capability existsvoid
Call REST endpoint defined in bamboo-test-utils-plugin.boolean
serverExecutableExists
(@NotNull String namePattern) Check if given server executable capability existvoid
tearDown()
Cleanup resourcesMethods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
anonymousResourceRoot, client, createResource, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRestModulePath, getRootPath, percentEncode, ping, post, resourceRoot
-
Constructor Details
-
ServerCapabilitiesControl
-
-
Method Details
-
detectServerCapabilities
public void detectServerCapabilities()Call standard "Detect server capabilities" action. Will update existing configuration. -
redetectServerCapabilities
public void redetectServerCapabilities()Call REST endpoint defined in bamboo-test-utils-plugin. Will remove existing capabilities and detect them again. -
createCapability
Create shared server capability- Parameters:
key
- capability keyvalue
- capability value
-
createGrailsExecutable
Convenience method for creating Grails capability- Parameters:
name
- name of Grails executablepath
- path to Grails binary
-
createJdkCapability
Create JDK capability. -
createCommandExecutable
Convenience method for creating Command capability- Parameters:
name
- name of Command executablepath
- path to Command binary
-
deleteCapability
Delete capability, will throw exception if REST endpoint returns an error (most probably capability doesn't exist)- Parameters:
capabilityKey
- key of capability to be deleted
-
deleteCapabilityQuietly
Delete capability, will throw exception if REST endpoint returns an error (most probably capability doesn't exist)- Parameters:
capabilityKey
- key of capability to be deleted
-
gitPath
-
getServerExecutable
Get value of server executable capability- Parameters:
namePattern
- pattern that should match server executable name
-
serverExecutableExists
Check if given server executable capability exist- Parameters:
namePattern
- pattern that should match server executable name
-
jdkExists
Check if given JDK capability exists -
getAllCapabilities
Return full list of shared server capabilities -
tearDown
public void tearDown()Description copied from class:BackdoorControl
Cleanup resources- Overrides:
tearDown
in classBackdoorControl<ServerCapabilitiesControl>
-