Class EnvironmentsControl

    • Field Detail

      • DEFAULT_DEPLOYMENT_WAIT_TIMEOUT

        public static final com.atlassian.pageobjects.elements.query.Poller.WaitTimeout DEFAULT_DEPLOYMENT_WAIT_TIMEOUT
    • Constructor Detail

      • EnvironmentsControl

        public EnvironmentsControl​(@NotNull
                                   @NotNull BambooEnvironmentData environmentData)
    • Method Detail

      • waitForSuccessfulDeployment

        public EnvironmentsControl waitForSuccessfulDeployment​(String environmentId,
                                                               String versionName)
        Wait until version was deployed on environment
      • waitForFailedDeployment

        public EnvironmentsControl waitForFailedDeployment​(String environmentId,
                                                           String versionName)
        Wait until version was deployed on environment
      • waitForSuccessfulDeploymentWithReason

        public EnvironmentsControl waitForSuccessfulDeploymentWithReason​(String environmentId,
                                                                         String versionName,
                                                                         String reasonSummary)
        Wait until version was deployed on environment with reason
      • waitForCompletedDeployment

        public EnvironmentsControl waitForCompletedDeployment​(String environmentId,
                                                              String versionName)
        Wait until version was deployed on environment
      • waitForCompletedDeployment

        public EnvironmentsControl waitForCompletedDeployment​(String environmentId,
                                                              String versionName,
                                                              com.atlassian.pageobjects.elements.query.Poller.WaitTimeout timeout)
        Wait until version was deployed on environment
      • waitForInProgressDeployment

        public EnvironmentsControl waitForInProgressDeployment​(String environmentId,
                                                               String versionName)
        Wait until version was deployed on environment
      • waitForInProgressDeployment

        public EnvironmentsControl waitForInProgressDeployment​(String environmentId,
                                                               String versionName,
                                                               com.atlassian.pageobjects.elements.query.Poller.WaitTimeout timeout)
        Wait until version was deployed on environment
      • waitForDeploymentWithResponse

        public io.restassured.path.json.JsonPath waitForDeploymentWithResponse​(String environmentId,
                                                                               org.hamcrest.Matcher<io.restassured.path.json.JsonPath> matcher,
                                                                               com.atlassian.pageobjects.elements.query.Poller.WaitTimeout timeout)
        Wait until matching deployment result appears for an environment
      • assertVersionInHistory

        public EnvironmentsControl assertVersionInHistory​(String environmentId,
                                                          String versionName)
        Verify that version was deployed on an environment. Only first page of results is processed.
      • assertVersionSuccessfullyDeployed

        public EnvironmentsControl assertVersionSuccessfullyDeployed​(String environmentId,
                                                                     String versionName)
        Verify that version is currently successfully deployed on an environment.
      • assertVersionDeployed

        public EnvironmentsControl assertVersionDeployed​(String environmentId,
                                                         String versionName)
        Verify that version is currently deployed on an environment.
      • assertVersionNotDeployed

        public EnvironmentsControl assertVersionNotDeployed​(String environmentId,
                                                            String versionName)
        Verify that version is not deployed on an environment. Only first page of results is processed
      • assertNeverDeployedOn

        public EnvironmentsControl assertNeverDeployedOn​(String environmentId)
        Verify that version is not deployed on an environment. Only first page of results is processed
      • assertDeploymentResults

        public EnvironmentsControl assertDeploymentResults​(String environmentId,
                                                           org.hamcrest.Matcher<? super Iterable<RestDeploymentResult>> deploymentResultMatcher)
        Verify that version is deployed on an environment. Assumption is made that it will be listed on the first page of results.
      • triggerDeploymentAndExpectFailure

        public void triggerDeploymentAndExpectFailure​(String environmentId,
                                                      long versionId,
                                                      int expectedStatusCode)