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>
  • Constructor Details

    • DeploymentsControl

      public DeploymentsControl(@NotNull @NotNull BambooEnvironmentData environmentData)
  • Method Details

    • tearDown

      public void tearDown()
      Description copied from class: BackdoorControl
      Cleanup resources
      Overrides:
      tearDown in class BackdoorControl<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 javax.ws.rs.client.WebTarget resourceRoot(String url)
      Description copied from class: BackdoorControl
      Creates a WebResource with authentication parameters set for the default user.
      Overrides:
      resourceRoot in class BackdoorControl<DeploymentsControl>
    • getDeploymentProject

      public RestDeploymentProject getDeploymentProject(long deploymentProjectId)
    • getAllProjects

      public List<RestDeploymentProject> getAllProjects()
    • assignedRepositoryIds

      public List<Long> assignedRepositoryIds(String deploymentProjectId)