Class DeploymentsControl
java.lang.Object
com.atlassian.bamboo.testutils.backdoor.BackdoorControl<DeploymentsControl>
com.atlassian.bamboo.testutils.backdoor.deployments.DeploymentsControl
-
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
addDeploymentToBeRemoved
(String deploymentId) assignedRepositoryIds
(String deploymentProjectId) createDeploymentProject
(TestDeploymentProjectDetails deploymentProject) Save deployment projectcreateDeploymentProject
(TestDeploymentProjectDetails deploymentProject, boolean shouldBeTornDown) Save deployment projectlong
createOrUpdateDeploymentProject
(com.atlassian.bamboo.specs.api.builders.deployment.Deployment deployment) long
createOrUpdateDeploymentProject
(com.atlassian.bamboo.specs.api.builders.deployment.Deployment deployment, boolean shouldBeTornDown) long
createOrUpdateDeploymentProject
(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties) long
createOrUpdateDeploymentProject
(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, boolean shouldBeTornDown) createVersion
(long deploymentProjectId, @NotNull PlanResultKey planResultKey, @NotNull String name) createVersion
(long deploymentProjectId, @NotNull String planResultKey, @NotNull String name) deleteDeploymentProject
(String deploymentProjectId) getDeploymentProject
(long deploymentProjectId) protected javax.ws.rs.client.WebTarget
resourceRoot
(String url) Creates a WebResource with authentication parameters set for the default user.void
tearDown()
Cleanup resourceswaitForCompletedDeployment
(String environmentId, String versionName) Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
anonymousResourceRoot, client, createResource, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRestModulePath, getRootPath, percentEncode, ping, post
-
Constructor Details
-
DeploymentsControl
-
-
Method Details
-
tearDown
public void tearDown()Description copied from class:BackdoorControl
Cleanup resources- Overrides:
tearDown
in classBackdoorControl<DeploymentsControl>
-
deleteDeploymentProject
-
addDeploymentToBeRemoved
-
createDeploymentProject
Save deployment project -
createDeploymentProject
public DeploymentsControl createDeploymentProject(TestDeploymentProjectDetails deploymentProject, boolean shouldBeTornDown) Save deployment project -
waitForCompletedDeployment
-
environments
-
createVersion
public RestDeploymentVersion createVersion(long deploymentProjectId, @NotNull @NotNull PlanResultKey planResultKey, @NotNull @NotNull String name) -
createVersion
public RestDeploymentVersion createVersion(long deploymentProjectId, @NotNull @NotNull String planResultKey, @NotNull @NotNull String name) -
createOrUpdateDeploymentProject
public long createOrUpdateDeploymentProject(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, boolean shouldBeTornDown) throws Exception - Throws:
Exception
-
createOrUpdateDeploymentProject
public long createOrUpdateDeploymentProject(com.atlassian.bamboo.specs.api.builders.deployment.Deployment deployment, boolean shouldBeTornDown) throws Exception - Throws:
Exception
-
createOrUpdateDeploymentProject
public long createOrUpdateDeploymentProject(com.atlassian.bamboo.specs.api.builders.deployment.Deployment deployment) throws Exception - Throws:
Exception
-
createOrUpdateDeploymentProject
public long createOrUpdateDeploymentProject(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties) throws Exception - Throws:
Exception
-
resourceRoot
Description copied from class:BackdoorControl
Creates a WebResource with authentication parameters set for the default user.- Overrides:
resourceRoot
in classBackdoorControl<DeploymentsControl>
-
getDeploymentProject
-
getAllProjects
-
assignedRepositoryIds
-