Skip to content

Commit 4d03dcf

Browse files
committed
Upgrading CFJC
1 parent 3e48da3 commit 4d03dcf

File tree

33 files changed

+383
-40
lines changed

33 files changed

+383
-40
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import java.util.concurrent.ConcurrentHashMap
1919
buildscript {
2020
ext {
2121
blockHoundVersion = "1.0.9.RELEASE"
22-
cfJavaClientVersion = "5.10.0.RELEASE"
22+
cfJavaClientVersion = "5.12.1.RELEASE"
2323
commonsTextVersion = "1.12.0"
2424
immutablesVersion = "2.10.1"
2525
openServiceBrokerVersion = "4.1.2"

spring-cloud-app-broker-integration-tests/src/test/java/org/springframework/cloud/appbroker/integration/CreateInstanceComponentTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class CreateInstanceComponentTest extends WiremockComponentTest {
5858

5959
@Test
6060
void pushAppsWhenTheyDoNotExist() {
61+
cloudControllerFixture.stubFindSpaceV3();
6162
cloudControllerFixture.stubAppDoesNotExist(APP_NAME_1);
6263
cloudControllerFixture.stubPushApp(APP_NAME_1,
6364
matchingJsonPath("$.environment_json[?(@.SPRING_APPLICATION_JSON =~ " +

spring-cloud-app-broker-integration-tests/src/test/java/org/springframework/cloud/appbroker/integration/CreateInstanceWithCustomParametersMappingComponentTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class CreateInstanceWithCustomParametersMappingComponentTest extends WiremockCom
7171

7272
@Test
7373
void pushAppWithParametersTransformedUsingCustomTransformer() {
74+
cloudControllerFixture.stubFindSpaceV3();
7475
cloudControllerFixture.stubAppDoesNotExist(APP_NAME);
7576
cloudControllerFixture.stubPushApp(APP_NAME,
7677
matchingJsonPath(

spring-cloud-app-broker-integration-tests/src/test/java/org/springframework/cloud/appbroker/integration/CreateInstanceWithCustomTargetComponentTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,11 @@ void pushAppWithServicesInSpace() {
7777
String serviceInstanceId = "instance-id";
7878
String customSpace = "my-space";
7979
String customSpaceGuid = "my-space-guid";
80+
81+
cloudControllerFixture.stubFindTestOrg();
82+
cloudControllerFixture.stubFindSpaceV3(customSpace, customSpaceGuid);
8083
cloudControllerFixture.stubCreateSpace(customSpace, customSpaceGuid);
81-
cloudControllerFixture.stubAssociatePermissions(customSpace, customSpaceGuid);
84+
cloudControllerFixture.stubAssociatePermissions();
8285
cloudControllerFixture.stubPushApp(APP_NAME);
8386

8487
// given services are available in the marketplace

spring-cloud-app-broker-integration-tests/src/test/java/org/springframework/cloud/appbroker/integration/CreateInstanceWithEnvironmentComponentTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class CreateInstanceWithEnvironmentComponentTest extends WiremockComponentTest {
6060

6161
@Test
6262
void pushAppWithEnvironmentVariables() {
63+
cloudControllerFixture.stubFindSpaceV3();
6364
cloudControllerFixture.stubAppDoesNotExist(APP_NAME_1);
6465
cloudControllerFixture.stubPushApp(APP_NAME_1,
6566
matchingJsonPath("$.environment_json[?(@.SPRING_APPLICATION_JSON =~ /.*ENV_VAR_1.*:.*value1.*/)]"),

spring-cloud-app-broker-integration-tests/src/test/java/org/springframework/cloud/appbroker/integration/CreateInstanceWithExistingServicesComponentTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class CreateInstanceWithExistingServicesComponentTest extends WiremockComponentT
5757

5858
@Test
5959
void pushAppWithServicesWhenServicesExist() {
60+
cloudControllerFixture.stubFindSpaceV3();
6061
cloudControllerFixture.stubAppDoesNotExist(APP_NAME);
6162
cloudControllerFixture.stubPushApp(APP_NAME);
6263

spring-cloud-app-broker-integration-tests/src/test/java/org/springframework/cloud/appbroker/integration/CreateInstanceWithOnlyABackingServiceComponentTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class CreateInstanceWithOnlyABackingServiceComponentTest extends WiremockCompone
5757

5858
@Test
5959
void createsServicesWhenOnlyBackingServiceIsRequested() {
60-
60+
cloudControllerFixture.stubFindSpaceV3();
6161
// given services are available in the marketplace
6262
cloudControllerFixture.stubServiceExists(BACKING_SERVICE_NAME, BACKING_PLAN_NAME);
6363

spring-cloud-app-broker-integration-tests/src/test/java/org/springframework/cloud/appbroker/integration/CreateInstanceWithParametersMappingComponentTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class CreateInstanceWithParametersMappingComponentTest extends WiremockComponent
6060

6161
@Test
6262
void pushAppWithParametersTransformedToEnvironmentVariables() {
63+
cloudControllerFixture.stubFindSpaceV3();
6364
cloudControllerFixture.stubAppDoesNotExist(APP_NAME);
6465
cloudControllerFixture.stubPushApp(APP_NAME,
6566
matchingJsonPath("$.environment_json[?(@.SPRING_APPLICATION_JSON =~ /.*parameter1.*:.*value1.*/)]"),

spring-cloud-app-broker-integration-tests/src/test/java/org/springframework/cloud/appbroker/integration/CreateInstanceWithPropertiesComponentTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class CreateInstanceWithPropertiesComponentTest extends WiremockComponentTest {
5757

5858
@Test
5959
void pushAppWithProperties() {
60+
cloudControllerFixture.stubFindSpaceV3();
6061
cloudControllerFixture.stubAppDoesNotExist(APP_NAME);
6162
cloudControllerFixture.stubPushApp(APP_NAME,
6263
matchingJsonPath("$.[?(@.memory == '2048')]"),

spring-cloud-app-broker-integration-tests/src/test/java/org/springframework/cloud/appbroker/integration/CreateInstanceWithServiceInstanceGuidSuffixTargetComponentTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ void deployAppsWithServiceInstanceGuidSuffixOnCreateServiceWhenCreatingMoreThanO
6868
String applicationName = APP_NAME + "-" + serviceInstanceId;
6969
String backingServiceInstanceName = BACKING_SI_NAME + "-" + serviceInstanceId;
7070

71+
cloudControllerFixture.stubFindSpaceV3();
7172
cloudControllerFixture.stubAppDoesNotExist(applicationName);
7273
cloudControllerFixture.stubPushApp(applicationName);
7374

0 commit comments

Comments
 (0)