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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateCapability(@NotNull String key, @Nullable String value) Create shared server capabilityvoidcreateCommandExecutable(@NotNull String name, @Nullable String path) Convenience method for creating Command capabilityvoidcreateGrailsExecutable(@NotNull String name, @Nullable String path) Convenience method for creating Grails capabilityvoidcreateJdkCapability(@NotNull String name, @Nullable String path) Create JDK capability.voiddeleteCapability(@NotNull String capabilityKey) Delete capability, will throw exception if REST endpoint returns an error (most probably capability doesn't exist)voiddeleteCapabilityQuietly(@NotNull String capabilityKey) Delete capability, will throw exception if REST endpoint returns an error (most probably capability doesn't exist)voidCall standard "Detect server capabilities" action.Return full list of shared server capabilitiesgetServerExecutable(@NotNull String namePattern) Get value of server executable capabilitygitPath()booleanCheck if given JDK capability existsvoidCall REST endpoint defined in bamboo-test-utils-plugin.booleanserverExecutableExists(@NotNull String namePattern) Check if given server executable capability existvoidtearDown()Cleanup resourcesMethods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
anonymousResourceRoot, client, createAnonymousResourceForPath, createAnonymousResourceForPath, createResource, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRestModulePath, getRootPath, percentEncode, ping, post, resourceRoot, resourceRootWithForcedTokenAuth
-
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:BackdoorControlCleanup resources- Overrides:
tearDownin classBackdoorControl<ServerCapabilitiesControl>
-