Class DeploymentsControl
- java.lang.Object
-
- com.atlassian.bamboo.testutils.backdoor.BackdoorControl<DeploymentsControl>
-
- com.atlassian.bamboo.testutils.backdoor.deployments.DeploymentsControl
-
public class DeploymentsControl extends BackdoorControl<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, rootPath
-
-
Constructor Summary
Constructors Constructor Description DeploymentsControl(@NotNull BambooEnvironmentData environmentData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDeploymentToBeRemoved(String deploymentId)
List<Long>
assignedRepositoryIds(String deploymentProjectId)
DeploymentsControl
createDeploymentProject(TestDeploymentProjectDetails deploymentProject)
Save deployment projectDeploymentsControl
createDeploymentProject(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)
RestDeploymentVersion
createVersion(long deploymentProjectId, @NotNull PlanResultKey planResultKey, @NotNull String name)
RestDeploymentVersion
createVersion(long deploymentProjectId, @NotNull String planResultKey, @NotNull String name)
DeploymentsControl
deleteDeploymentProject(String deploymentProjectId)
EnvironmentsControl
environments()
List<RestDeploymentProject>
getAllProjects()
RestDeploymentProject
getDeploymentProject(long deploymentProjectId)
protected com.sun.jersey.api.client.WebResource
resourceRoot(String url)
Creates a WebResource with authentication parameters set for the default user.void
tearDown()
Cleanup resourcesDeploymentsControl
waitForCompletedDeployment(String environmentId, String versionName)
-
Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
client, createResource, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post
-
-
-
-
Constructor Detail
-
DeploymentsControl
public DeploymentsControl(@NotNull @NotNull BambooEnvironmentData environmentData)
-
-
Method Detail
-
tearDown
public void tearDown()
Description copied from class:BackdoorControl
Cleanup resources- Overrides:
tearDown
in classBackdoorControl<DeploymentsControl>
-
deleteDeploymentProject
public DeploymentsControl deleteDeploymentProject(String deploymentProjectId)
-
addDeploymentToBeRemoved
public void addDeploymentToBeRemoved(String deploymentId)
-
createDeploymentProject
public DeploymentsControl createDeploymentProject(TestDeploymentProjectDetails deploymentProject)
Save deployment project
-
createDeploymentProject
public DeploymentsControl createDeploymentProject(TestDeploymentProjectDetails deploymentProject, boolean shouldBeTornDown)
Save deployment project
-
waitForCompletedDeployment
public DeploymentsControl waitForCompletedDeployment(String environmentId, String versionName)
-
environments
public EnvironmentsControl 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
protected com.sun.jersey.api.client.WebResource resourceRoot(String url)
Description copied from class:BackdoorControl
Creates a WebResource with authentication parameters set for the default user.- Overrides:
resourceRoot
in classBackdoorControl<DeploymentsControl>
-
getDeploymentProject
public RestDeploymentProject getDeploymentProject(long deploymentProjectId)
-
getAllProjects
public List<RestDeploymentProject> getAllProjects()
-
-