public abstract class AbstractAppDeployerIntegrationTests extends Object
AppDeployer
implementations.
Inheritors should setup an environment with a newly created
AppDeployer that has no
pre-deployed applications. Tests in this class are independent and leave the
deployer in a clean state after they successfully run.
As deploying an application is often quite time consuming, some tests assert various aspects of deployment in a row, to avoid re-deploying apps over and over again.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractAppDeployerIntegrationTests.Timeout
Represents a timeout for querying status, with repetitive queries until a certain number have been made.
|
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
AbstractAppDeployerIntegrationTests() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AppDeployer |
appDeployer() |
protected AbstractAppDeployerIntegrationTests.Timeout |
deploymentTimeout()
Return the timeout to use for repeatedly querying app status while it is being deployed.
|
protected org.hamcrest.Matcher<String> |
hasStatusThat(org.hamcrest.Matcher<AppStatus> statusMatcher)
A Hamcrest Matcher that queries the deployment status for some app id.
|
protected org.springframework.core.io.Resource |
integrationTestProcessor()
Return a resource corresponding to the integration-test-processor suitable for the target runtime.
|
protected String |
randomName() |
protected int |
redeploymentPause()
Return the time to wait between reusing deployment requests.
|
void |
testDeployingStateCalculationAndCancel()
Tests that an app which takes a long time to deploy is correctly reported as deploying.
|
void |
testFailedDeployment() |
void |
testParameterPassing()
Tests that properties can be passed to a deployed app, including values that typically require special handling.
|
void |
testRedeploy()
An app deployer should be able to re-deploy an application after it has been un-deployed.
|
void |
testSimpleDeployment()
Tests a simple deploy-undeploy cycle.
|
void |
testUnknownDeployment() |
protected AbstractAppDeployerIntegrationTests.Timeout |
undeploymentTimeout()
Return the timeout to use for repeatedly querying app status while it is being un-deployed.
|
protected abstract AppDeployer appDeployer()
public void testUnknownDeployment()
public void testSimpleDeployment()
public void testRedeploy()
public void testDeployingStateCalculationAndCancel()
public void testFailedDeployment()
public void testParameterPassing()
protected String randomName()
protected AbstractAppDeployerIntegrationTests.Timeout deploymentTimeout()
protected AbstractAppDeployerIntegrationTests.Timeout undeploymentTimeout()
protected int redeploymentPause()
protected org.springframework.core.io.Resource integrationTestProcessor()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.