(2.1.x) Backporting cflinuxfs4
This commit is contained in:
@@ -70,7 +70,7 @@ class CreateInstanceAcceptanceTest extends CloudFoundryAcceptanceTest {
|
||||
"spring.cloud.appbroker.services[0].apps[1].name=" + APP_CREATE_2,
|
||||
"spring.cloud.appbroker.services[0].apps[1].path=" + BACKING_APP_PATH,
|
||||
|
||||
"spring.cloud.appbroker.deployer.cloudfoundry.properties.stack=cflinuxfs3"
|
||||
"spring.cloud.appbroker.deployer.cloudfoundry.properties.stack=cflinuxfs4"
|
||||
})
|
||||
void deployAppsOnCreateService() {
|
||||
// when a service instance is created
|
||||
@@ -92,7 +92,7 @@ class CreateInstanceAcceptanceTest extends CloudFoundryAcceptanceTest {
|
||||
// and stack is updated when specified
|
||||
Optional<ApplicationDetail> application1Detail = getApplicationDetail(APP_CREATE_1);
|
||||
assertThat(application1Detail).hasValueSatisfying(app -> {
|
||||
assertThat(app.getStack()).isEqualTo("cflinuxfs3");
|
||||
assertThat(app.getStack()).isEqualTo("cflinuxfs4");
|
||||
});
|
||||
|
||||
// and has the environment variables
|
||||
|
||||
@@ -113,7 +113,7 @@ class UpgradeInstanceAcceptanceTest extends CloudFoundryAcceptanceTest {
|
||||
"spring.cloud.appbroker.services[0].apps[0].environment.parameter3=new-config3",
|
||||
"spring.cloud.appbroker.services[0].apps[0].parameters-transformers[0].name=PropertyMapping",
|
||||
"spring.cloud.appbroker.services[0].apps[0].parameters-transformers[0].args.include=upgrade",
|
||||
"spring.cloud.appbroker.deployer.cloudfoundry.properties.stack=cflinuxfs3"
|
||||
"spring.cloud.appbroker.deployer.cloudfoundry.properties.stack=cflinuxfs4"
|
||||
})
|
||||
void upgradesTheServiceInstanceWithNewBackingServiceAndEnvironmentVariables() {
|
||||
// when the service instance is updated with a new service
|
||||
@@ -133,7 +133,7 @@ class UpgradeInstanceAcceptanceTest extends CloudFoundryAcceptanceTest {
|
||||
// and stack is updated when specified
|
||||
Optional<ApplicationDetail> application1Detail = getApplicationDetail(APP_NAME);
|
||||
assertThat(application1Detail).hasValueSatisfying(app -> {
|
||||
assertThat(app.getStack()).isEqualTo("cflinuxfs3");
|
||||
assertThat(app.getStack()).isEqualTo("cflinuxfs4");
|
||||
});
|
||||
|
||||
// then the backing application was updated with zero downtime
|
||||
|
||||
@@ -519,7 +519,7 @@ class CloudFoundryAppDeployerTest {
|
||||
.memoryLimit(100)
|
||||
.requestedState("STARTED")
|
||||
.runningInstances(2)
|
||||
.stack("cflinuxfs3")
|
||||
.stack("cflinuxfs4")
|
||||
.build()));
|
||||
|
||||
given(clientApplications.summary(argThat(request -> appId.equals(request.getApplicationId()))))
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"buildpacks": [
|
||||
"java_buildpack"
|
||||
],
|
||||
"stack": "cflinuxfs3"
|
||||
"stack": "cflinuxfs4"
|
||||
}
|
||||
},
|
||||
"relationships": {
|
||||
|
||||
Reference in New Issue
Block a user