Class EnvironmentsControl
java.lang.Object
com.atlassian.bamboo.testutils.backdoor.BackdoorControl<EnvironmentsControl>
com.atlassian.bamboo.testutils.backdoor.deployments.EnvironmentsControl
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.atlassian.pageobjects.elements.query.Poller.WaitTimeout
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 TypeMethodDescriptionaddEnvironment
(TestDeploymentProjectDetails deploymentProject, Consumer<TestEnvironmentDetails.Builder> builderConsumer) addEnvironment
(String deploymentProjectId) Save environmentaddEnvironmentVariable
(TestEnvironmentDetails environment) addEnvironmentVariable
(TestEnvironmentDetails environment, Consumer<TestVariableDetails.Builder> builderConsumer) addRequirement
(long environmentId, String requirementKey) assertDeploymentResults
(String environmentId, org.hamcrest.Matcher<? super Iterable<RestDeploymentResult>> deploymentResultMatcher) Verify that version is deployed on an environment.assertNeverDeployedOn
(String environmentId) Verify that version is not deployed on an environment.assertVersionDeployed
(String environmentId, String versionName) Verify that version is currently deployed on an environment.assertVersionInHistory
(String environmentId, String versionName) Verify that version was deployed on an environment.assertVersionNotDeployed
(String environmentId, String versionName) Verify that version is not deployed on an environment.assertVersionSuccessfullyDeployed
(String environmentId, String versionName) Verify that version is currently successfully deployed on an environment.getDeploymentResultList
(String environmentId) getDockerPipelineConfiguration
(String environmentId) getRequirements
(Long environmentId) protected javax.ws.rs.client.WebTarget
resourceRoot
(String url) Creates a WebResource with authentication parameters set for the default user.triggerDeployment
(String environmentId, long versionId) void
triggerDeploymentAndExpectFailure
(String environmentId, long versionId, int expectedStatusCode) waitForCompletedDeployment
(String environmentId, String versionName) Wait until version was deployed on environmentwaitForCompletedDeployment
(String environmentId, String versionName, com.atlassian.pageobjects.elements.query.Poller.WaitTimeout timeout) Wait until version was deployed on environmentio.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 environmentwaitForFailedDeployment
(String environmentId, String versionName) Wait until version was deployed on environmentwaitForInProgressDeployment
(String environmentId, String versionName) Wait until version was deployed on environmentwaitForInProgressDeployment
(String environmentId, String versionName, com.atlassian.pageobjects.elements.query.Poller.WaitTimeout timeout) Wait until version was deployed on environmentwaitForSuccessfulDeployment
(String environmentId, String versionName) Wait until version was deployed on environmentwaitForSuccessfulDeploymentWithReason
(String environmentId, String versionName, String reasonSummary) Wait until version was deployed on environment with reasonMethods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
anonymousResourceRoot, client, createResource, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRestModulePath, getRootPath, percentEncode, ping, post, tearDown
-
Field Details
-
DEFAULT_DEPLOYMENT_WAIT_TIMEOUT
public static final com.atlassian.pageobjects.elements.query.Poller.WaitTimeout DEFAULT_DEPLOYMENT_WAIT_TIMEOUT
-
-
Constructor Details
-
EnvironmentsControl
-
-
Method Details
-
addEnvironment
public EnvironmentsControl addEnvironment(TestDeploymentProjectDetails deploymentProject, Consumer<TestEnvironmentDetails.Builder> builderConsumer) -
addEnvironment
Save environment -
addEnvironmentVariable
public EnvironmentsControl addEnvironmentVariable(TestEnvironmentDetails environment, Consumer<TestVariableDetails.Builder> builderConsumer) -
addEnvironmentVariable
-
getDockerPipelineConfiguration
-
waitForSuccessfulDeployment
Wait until version was deployed on environment -
waitForFailedDeployment
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
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
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
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
Verify that version is currently deployed on an environment. -
assertVersionNotDeployed
Verify that version is not deployed on an environment. Only first page of results is processed -
assertNeverDeployedOn
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. -
addRequirement
-
getRequirements
-
triggerDeployment
-
triggerDeploymentAndExpectFailure
public void triggerDeploymentAndExpectFailure(String environmentId, long versionId, int expectedStatusCode) -
resourceRoot
Description copied from class:BackdoorControl
Creates a WebResource with authentication parameters set for the default user.- Overrides:
resourceRoot
in classBackdoorControl<EnvironmentsControl>
-
getDeploymentResultList
-