diff --git a/spring-cloud-app-broker-sample/build.gradle b/spring-cloud-app-broker-sample/build.gradle index ca348c7..ed97ddd 100644 --- a/spring-cloud-app-broker-sample/build.gradle +++ b/spring-cloud-app-broker-sample/build.gradle @@ -50,4 +50,9 @@ dependencies { testImplementation("org.mockito:mockito-junit-jupiter:${mockitoVersion}") testImplementation("io.rest-assured:rest-assured") testImplementation("com.github.tomakehurst:wiremock:${wiremockVersion}") +} + +test { + // force a new fork for every test to eliminate issues with wiremock state + forkEvery = 1 } \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceComponentTest.java b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceComponentTest.java index 66fdcc4..356e235 100644 --- a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceComponentTest.java +++ b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceComponentTest.java @@ -18,25 +18,24 @@ package org.springframework.cloud.appbroker.sample; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.cloud.appbroker.sample.fixtures.CloudFoundryApiFixture; +import org.springframework.cloud.appbroker.sample.fixtures.CloudControllerStubFixture; import org.springframework.cloud.appbroker.sample.fixtures.OpenServiceBrokerApiFixture; import org.springframework.cloud.servicebroker.model.instance.OperationState; import org.springframework.http.HttpStatus; import org.springframework.test.context.TestPropertySource; - import static io.restassured.RestAssured.given; import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.equalTo; -import static org.hamcrest.Matchers.equalToIgnoringWhiteSpace; import static org.hamcrest.Matchers.is; import static org.springframework.cloud.appbroker.sample.CreateInstanceComponentTest.APP_NAME_1; +import static org.springframework.cloud.appbroker.sample.CreateInstanceComponentTest.APP_NAME_2; @TestPropertySource(properties = { "spring.cloud.appbroker.apps[0].path=classpath:demo.jar", - "spring.cloud.appbroker.apps[0].name=" + APP_NAME_1 -// "spring.cloud.appbroker.apps[1].path=classpath:demo.jar", -// "spring.cloud.appbroker.apps[1].name=" + APP_NAME_2 + "spring.cloud.appbroker.apps[0].name=" + APP_NAME_1, + "spring.cloud.appbroker.apps[1].path=classpath:demo.jar", + "spring.cloud.appbroker.apps[1].name=" + APP_NAME_2 }) class CreateInstanceComponentTest extends WiremockComponentTest { static final String APP_NAME_1 = "first-app"; @@ -46,10 +45,15 @@ class CreateInstanceComponentTest extends WiremockComponentTest { private OpenServiceBrokerApiFixture brokerFixture; @Autowired - private CloudFoundryApiFixture cloudFoundryFixture; + private CloudControllerStubFixture cloudControllerFixture; @Test void shouldPushAppWhenCreateServiceEndpointCalled() { + cloudControllerFixture.stubAppDoesNotExist(APP_NAME_1); + cloudControllerFixture.stubPushApp(APP_NAME_1); + cloudControllerFixture.stubAppDoesNotExist(APP_NAME_2); + cloudControllerFixture.stubPushApp(APP_NAME_2); + // when a service instance is created given(brokerFixture.serviceInstanceRequest()) .when() @@ -67,22 +71,5 @@ class CreateInstanceComponentTest extends WiremockComponentTest { String state = brokerFixture.waitForAsyncOperationComplete("instance-id"); assertThat(state).isEqualTo(OperationState.SUCCEEDED.toString()); - - // then a backing application is deployed - given(cloudFoundryFixture.request()) - .when() - .get(cloudFoundryFixture.findApplicationUrl(APP_NAME_1)) - .then() - .statusCode(HttpStatus.OK.value()) - .body("resources[0].entity.name", is(equalToIgnoringWhiteSpace(APP_NAME_1))); - - // then a backing application is deployed - given(cloudFoundryFixture.request()) - .when() - .get(cloudFoundryFixture.findApplicationUrl(APP_NAME_2)) - .then() - .statusCode(HttpStatus.OK.value()) - .body("resources[0].entity.name", is(equalToIgnoringWhiteSpace(APP_NAME_2))); } - } \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceWithEnvironmentComponentTest.java b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceWithEnvironmentComponentTest.java index 79a1d6d..d468e55 100644 --- a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceWithEnvironmentComponentTest.java +++ b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceWithEnvironmentComponentTest.java @@ -16,19 +16,18 @@ package org.springframework.cloud.appbroker.sample; -import io.restassured.path.json.JsonPath; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.cloud.appbroker.sample.fixtures.CloudFoundryApiFixture; +import org.springframework.cloud.appbroker.sample.fixtures.CloudControllerStubFixture; import org.springframework.cloud.appbroker.sample.fixtures.OpenServiceBrokerApiFixture; import org.springframework.cloud.servicebroker.model.instance.OperationState; import org.springframework.http.HttpStatus; import org.springframework.test.context.TestPropertySource; +import static com.github.tomakehurst.wiremock.client.WireMock.matchingJsonPath; import static io.restassured.RestAssured.given; import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.equalTo; -import static org.hamcrest.Matchers.equalToIgnoringWhiteSpace; import static org.hamcrest.Matchers.is; import static org.springframework.cloud.appbroker.sample.CreateInstanceWithEnvironmentComponentTest.APP_NAME; @@ -45,10 +44,15 @@ class CreateInstanceWithEnvironmentComponentTest extends WiremockComponentTest { private OpenServiceBrokerApiFixture brokerFixture; @Autowired - private CloudFoundryApiFixture cloudFoundryFixture; + private CloudControllerStubFixture cloudControllerFixture; @Test void shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled() { + cloudControllerFixture.stubAppDoesNotExist(APP_NAME); + cloudControllerFixture.stubPushApp(APP_NAME, + matchingJsonPath("$.environment_json[?(@.SPRING_APPLICATION_JSON =~ /.*ENV_VAR_1.*:.*value1.*/)]"), + matchingJsonPath("$.environment_json[?(@.SPRING_APPLICATION_JSON =~ /.*ENV_VAR_2.*:.*true.*/)]")); + // when a service instance is created given(brokerFixture.serviceInstanceRequest()) .when() @@ -66,26 +70,5 @@ class CreateInstanceWithEnvironmentComponentTest extends WiremockComponentTest { String state = brokerFixture.waitForAsyncOperationComplete("instance-id"); assertThat(state).isEqualTo(OperationState.SUCCEEDED.toString()); - - // then a backing application is deployed - String appsUrl = given(cloudFoundryFixture.request()) - .when() - .get(cloudFoundryFixture.findApplicationUrl(APP_NAME)) - .then() - .statusCode(HttpStatus.OK.value()) - .body("resources[0].entity.name", is(equalToIgnoringWhiteSpace(APP_NAME))) - .extract().body().jsonPath().getString("resources[0].metadata.url"); - - // and the backing application has the services bound to it - String springAppJson = given(cloudFoundryFixture.request()) - .when() - .get(appsUrl + "/env") - .then() - .statusCode(HttpStatus.OK.value()) - .extract().body().jsonPath().getString("environment_json.SPRING_APPLICATION_JSON"); - - assertThat(JsonPath.given(springAppJson).getString("ENV_VAR_1")).isEqualTo("value1"); - assertThat(JsonPath.given(springAppJson).getBoolean("ENV_VAR_2")).isEqualTo(true); } - } \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceWithPropertiesComponentTest.java b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceWithPropertiesComponentTest.java index 048499d..a94546b 100644 --- a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceWithPropertiesComponentTest.java +++ b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceWithPropertiesComponentTest.java @@ -18,16 +18,16 @@ package org.springframework.cloud.appbroker.sample; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.cloud.appbroker.sample.fixtures.CloudFoundryApiFixture; +import org.springframework.cloud.appbroker.sample.fixtures.CloudControllerStubFixture; import org.springframework.cloud.appbroker.sample.fixtures.OpenServiceBrokerApiFixture; import org.springframework.cloud.servicebroker.model.instance.OperationState; import org.springframework.http.HttpStatus; import org.springframework.test.context.TestPropertySource; +import static com.github.tomakehurst.wiremock.client.WireMock.matchingJsonPath; import static io.restassured.RestAssured.given; import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.equalTo; -import static org.hamcrest.Matchers.equalToIgnoringWhiteSpace; import static org.hamcrest.Matchers.is; import static org.springframework.cloud.appbroker.sample.CreateInstanceWithPropertiesComponentTest.APP_NAME; @@ -45,10 +45,16 @@ class CreateInstanceWithPropertiesComponentTest extends WiremockComponentTest { private OpenServiceBrokerApiFixture brokerFixture; @Autowired - private CloudFoundryApiFixture cloudFoundryFixture; + private CloudControllerStubFixture cloudControllerFixture; @Test void shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled() { + cloudControllerFixture.stubAppDoesNotExist(APP_NAME); + cloudControllerFixture.stubPushApp(APP_NAME, + matchingJsonPath("$.[?(@.memory == '2048')]"), + matchingJsonPath("$.[?(@.instances == '2')]"), + matchingJsonPath("$.[?(@.health_check_timeout == '180')]")); + // when a service instance is created given(brokerFixture.serviceInstanceRequest()) .when() @@ -66,17 +72,6 @@ class CreateInstanceWithPropertiesComponentTest extends WiremockComponentTest { String state = brokerFixture.waitForAsyncOperationComplete("instance-id"); assertThat(state).isEqualTo(OperationState.SUCCEEDED.toString()); - - // then a backing application is deployed with the specified properties - given(cloudFoundryFixture.request()) - .when() - .get(cloudFoundryFixture.findApplicationUrl(APP_NAME)) - .then() - .statusCode(HttpStatus.OK.value()) - .body("resources[0].entity.name", is(equalToIgnoringWhiteSpace(APP_NAME))) - .body("resources[0].entity.memory", is(2048)) - .body("resources[0].entity.instances", is(2)) - .body("resources[0].entity.health_check_timeout", is(180)); } } \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceWithServicesComponentTest.java b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceWithServicesComponentTest.java index fbc8b36..9da4860 100644 --- a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceWithServicesComponentTest.java +++ b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/CreateInstanceWithServicesComponentTest.java @@ -18,7 +18,7 @@ package org.springframework.cloud.appbroker.sample; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.cloud.appbroker.sample.fixtures.CloudFoundryApiFixture; +import org.springframework.cloud.appbroker.sample.fixtures.CloudControllerStubFixture; import org.springframework.cloud.appbroker.sample.fixtures.OpenServiceBrokerApiFixture; import org.springframework.cloud.servicebroker.model.instance.OperationState; import org.springframework.http.HttpStatus; @@ -27,33 +27,41 @@ import org.springframework.test.context.TestPropertySource; import static io.restassured.RestAssured.given; import static org.assertj.core.api.Assertions.assertThat; -import static org.hamcrest.Matchers.containsInAnyOrder; import static org.hamcrest.Matchers.equalTo; -import static org.hamcrest.Matchers.equalToIgnoringWhiteSpace; import static org.hamcrest.Matchers.is; import static org.springframework.cloud.appbroker.sample.CreateInstanceWithServicesComponentTest.APP_NAME; +import static org.springframework.cloud.appbroker.sample.CreateInstanceWithServicesComponentTest.SERVICE_INSTANCE_1_NAME; +import static org.springframework.cloud.appbroker.sample.CreateInstanceWithServicesComponentTest.SERVICE_INSTANCE_2_NAME; @TestPropertySource(properties = { "spring.cloud.appbroker.apps[0].path=classpath:demo.jar", "spring.cloud.appbroker.apps[0].name=" + APP_NAME, - "spring.cloud.appbroker.apps[0].services[0]=my-db-service", - "spring.cloud.appbroker.apps[0].services[1]=my-rabbit-service" + "spring.cloud.appbroker.apps[0].services[0]=" + SERVICE_INSTANCE_1_NAME, + "spring.cloud.appbroker.apps[0].services[1]=" + SERVICE_INSTANCE_2_NAME }) class CreateInstanceWithServicesComponentTest extends WiremockComponentTest { - static final String APP_NAME = "appwithservices"; + static final String APP_NAME = "app-with-services"; + + static final String SERVICE_INSTANCE_1_NAME = "my-db-service"; + static final String SERVICE_INSTANCE_2_NAME = "my-rabbit-service"; @Autowired private OpenServiceBrokerApiFixture brokerFixture; @Autowired - private CloudFoundryApiFixture cloudFoundryFixture; + private CloudControllerStubFixture cloudControllerFixture; @Test void shouldPushAppWithServiceWhenCreateServiceEndpointCalled() { - // given that a service exists - // TODO automate creation or stub bindings - // cf cups my-db-service -p '{}' - // cf cups my-rabbit-service -p '{}' + cloudControllerFixture.stubAppDoesNotExist(APP_NAME); + cloudControllerFixture.stubPushApp(APP_NAME); + + // given that service instances exist + cloudControllerFixture.stubServiceInstanceExists(SERVICE_INSTANCE_1_NAME); + cloudControllerFixture.stubServiceInstanceExists(SERVICE_INSTANCE_2_NAME); + + cloudControllerFixture.stubCreateServiceBinding(APP_NAME, SERVICE_INSTANCE_1_NAME); + cloudControllerFixture.stubCreateServiceBinding(APP_NAME, SERVICE_INSTANCE_2_NAME); // when a service instance is created given(brokerFixture.serviceInstanceRequest()) @@ -72,24 +80,5 @@ class CreateInstanceWithServicesComponentTest extends WiremockComponentTest { String state = brokerFixture.waitForAsyncOperationComplete("instance-id"); assertThat(state).isEqualTo(OperationState.SUCCEEDED.toString()); - - // then a backing application is deployed - String appsUrl = given(cloudFoundryFixture.request()) - .when() - .get(cloudFoundryFixture.findApplicationUrl(APP_NAME)) - .then() - .statusCode(HttpStatus.OK.value()) - .body("resources[0].entity.name", is(equalToIgnoringWhiteSpace(APP_NAME))) - .extract().body().jsonPath().getString("resources[0].metadata.url"); - - // and the backing application has the services bound to it - given(cloudFoundryFixture.request()) - .when() - .get(appsUrl + "/env") - .then() - .statusCode(HttpStatus.OK.value()) - .body("system_env_json.VCAP_SERVICES.user-provided.name", - containsInAnyOrder("my-db-service", "my-rabbit-service")); } - } \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/DeleteInstanceComponentTest.java b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/DeleteInstanceComponentTest.java index e938301..456932f 100644 --- a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/DeleteInstanceComponentTest.java +++ b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/DeleteInstanceComponentTest.java @@ -18,7 +18,7 @@ package org.springframework.cloud.appbroker.sample; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.cloud.appbroker.sample.fixtures.CloudFoundryApiFixture; +import org.springframework.cloud.appbroker.sample.fixtures.CloudControllerStubFixture; import org.springframework.cloud.appbroker.sample.fixtures.OpenServiceBrokerApiFixture; import org.springframework.cloud.servicebroker.model.instance.OperationState; import org.springframework.http.HttpStatus; @@ -29,40 +29,35 @@ import static io.restassured.RestAssured.given; import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; -import static org.springframework.cloud.appbroker.sample.DeleteInstanceComponentTest.APP_NAME; +import static org.springframework.cloud.appbroker.sample.DeleteInstanceComponentTest.APP_NAME_1; +import static org.springframework.cloud.appbroker.sample.DeleteInstanceComponentTest.APP_NAME_2; @TestPropertySource(properties = { "spring.cloud.appbroker.apps[0].path=classpath:demo.jar", - "spring.cloud.appbroker.apps[0].name=" + APP_NAME, + "spring.cloud.appbroker.apps[0].name=" + APP_NAME_1, + "spring.cloud.appbroker.apps[1].path=classpath:demo.jar", + "spring.cloud.appbroker.apps[1].name=" + APP_NAME_2 }) class DeleteInstanceComponentTest extends WiremockComponentTest { - static final String APP_NAME = "helloworldapp"; + static final String APP_NAME_1 = "first-app"; + static final String APP_NAME_2 = "second-app"; @Autowired private OpenServiceBrokerApiFixture brokerFixture; @Autowired - private CloudFoundryApiFixture cloudFoundryFixture; + private CloudControllerStubFixture cloudControllerFixture; @Test void shouldDeleteAppsWhenDeleteServiceEndpointCalled() { - // when a service instance is created - given(brokerFixture.serviceInstanceRequest()) - .when() - .put(brokerFixture.createServiceInstanceUrl(), "instance-id") - .then() - .statusCode(HttpStatus.ACCEPTED.value()); + cloudControllerFixture.stubAppExists(APP_NAME_1); + cloudControllerFixture.stubAppExists(APP_NAME_2); - // when the "last_operation" API is polled - given(brokerFixture.serviceInstanceRequest()) - .when() - .get(brokerFixture.getLastInstanceOperationUrl(), "instance-id") - .then() - .statusCode(HttpStatus.OK.value()) - .body("state", is(equalTo(OperationState.IN_PROGRESS.toString()))); + cloudControllerFixture.stubServiceBindingDoesNotExist(APP_NAME_1); + cloudControllerFixture.stubServiceBindingDoesNotExist(APP_NAME_2); - String state = brokerFixture.waitForAsyncOperationComplete("instance-id"); - assertThat(state).isEqualTo(OperationState.SUCCEEDED.toString()); + cloudControllerFixture.stubDeleteApp(APP_NAME_1); + cloudControllerFixture.stubDeleteApp(APP_NAME_2); // when the service instance is deleted given(brokerFixture.serviceInstanceRequest()) @@ -79,16 +74,8 @@ class DeleteInstanceComponentTest extends WiremockComponentTest { .statusCode(HttpStatus.OK.value()) .body("state", is(equalTo(OperationState.IN_PROGRESS.toString()))); - state = brokerFixture.waitForAsyncOperationComplete("instance-id"); + String state = brokerFixture.waitForAsyncOperationComplete("instance-id"); assertThat(state).isEqualTo(OperationState.SUCCEEDED.toString()); - - // then the backing application is deleted - given(cloudFoundryFixture.request()) - .when() - .get(cloudFoundryFixture.findApplicationUrl(APP_NAME)) - .then() - .statusCode(HttpStatus.OK.value()) - .body("resources.size", is(equalTo(0))); } } \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/WiremockComponentTest.java b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/WiremockComponentTest.java index 506b277..90f9ac0 100644 --- a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/WiremockComponentTest.java +++ b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/WiremockComponentTest.java @@ -18,12 +18,12 @@ package org.springframework.cloud.appbroker.sample; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.TestInfo; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.cloud.appbroker.sample.fixtures.CloudFoundryApiFixture; +import org.springframework.cloud.appbroker.sample.fixtures.CloudControllerStubFixture; import org.springframework.cloud.appbroker.sample.fixtures.OpenServiceBrokerApiFixture; +import org.springframework.cloud.appbroker.sample.fixtures.UaaStubFixture; import org.springframework.cloud.appbroker.sample.fixtures.WiremockServerFixture; import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.context.ActiveProfiles; @@ -35,7 +35,8 @@ import org.springframework.test.context.junit.jupiter.SpringExtension; classes = {AppBrokerSampleApplication.class, WiremockServerFixture.class, OpenServiceBrokerApiFixture.class, - CloudFoundryApiFixture.class}, + CloudControllerStubFixture.class, + UaaStubFixture.class}, properties = { "spring.cloud.appbroker.deployer.cloudfoundry.api-host=localhost", "spring.cloud.appbroker.deployer.cloudfoundry.api-port=8080", @@ -49,24 +50,28 @@ import org.springframework.test.context.junit.jupiter.SpringExtension; @ActiveProfiles("openservicebroker-catalog") @DirtiesContext class WiremockComponentTest { + @Autowired private WiremockServerFixture wiremockFixture; @Autowired - private CloudFoundryApiFixture cloudFoundryFixture; + private CloudControllerStubFixture cloudFoundryFixture; + + @Autowired + private UaaStubFixture uaaFixture; @BeforeEach - void setUp(TestInfo testInfo) { - wiremockFixture.startWiremock(getTestMappings(testInfo)); - cloudFoundryFixture.init(); + void setUp() { + wiremockFixture.startWiremock(); + + uaaFixture.stubCommonUaaRequests(); + cloudFoundryFixture.stubCommonCloudControllerRequests(); } @AfterEach void tearDown() { + wiremockFixture.verifyAllRequiredStubsUsed(); + wiremockFixture.stopWiremock(); } - - private static String getTestMappings(TestInfo testInfo) { - return "src/test/resources/recordings/" + testInfo.getDisplayName().replace("()", "") + "/"; - } } diff --git a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/CloudControllerStubFixture.java b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/CloudControllerStubFixture.java new file mode 100644 index 0000000..e5059cc --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/CloudControllerStubFixture.java @@ -0,0 +1,280 @@ +/* + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.springframework.cloud.appbroker.sample.fixtures; + +import com.github.tomakehurst.wiremock.client.MappingBuilder; +import com.github.tomakehurst.wiremock.matching.ContentPattern; +import org.springframework.boot.test.context.TestComponent; + +import static com.github.tomakehurst.wiremock.client.WireMock.created; +import static com.github.tomakehurst.wiremock.client.WireMock.delete; +import static com.github.tomakehurst.wiremock.client.WireMock.get; +import static com.github.tomakehurst.wiremock.client.WireMock.matchingJsonPath; +import static com.github.tomakehurst.wiremock.client.WireMock.noContent; +import static com.github.tomakehurst.wiremock.client.WireMock.ok; +import static com.github.tomakehurst.wiremock.client.WireMock.post; +import static com.github.tomakehurst.wiremock.client.WireMock.put; +import static com.github.tomakehurst.wiremock.client.WireMock.stubFor; +import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo; +import static com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo; + +@TestComponent +public class CloudControllerStubFixture extends WiremockStubFixture { + private static final String TEST_SPACE_GUID = "TEST-SPACE-GUID"; + private static final String TEST_ORG_GUID = "TEST-ORG-GUID"; + + public void stubCommonCloudControllerRequests() { + stubGetPlatformInfo(); + stubFindTestOrg(); + stubFindTestSpace(); + stubFindDomains(); + } + + private void stubGetPlatformInfo() { + stubFor(get(urlEqualTo("/")) + .withMetadata(optionalStubMapping()) + .willReturn(ok() + .withBody(cc("get-root")))); + + stubFor(get(urlEqualTo("/v2/info")) + .withMetadata(optionalStubMapping()) + .willReturn(ok() + .withBody(cc("get-info")))); + } + + private void stubFindTestOrg() { + stubFor(get(urlPathEqualTo("/v2/organizations")) + .withMetadata(optionalStubMapping()) + .willReturn(ok() + .withBody(cc("list-organizations", + replace("@org-guid", TEST_ORG_GUID))))); + } + + private void stubFindTestSpace() { + stubFor(get(urlPathEqualTo("/v2/spaces")) + .withMetadata(optionalStubMapping()) + .willReturn(ok() + .withBody(cc("list-spaces", + replace("@org-guid", TEST_ORG_GUID), + replace("@space-guid", TEST_SPACE_GUID))))); + + stubFor(get(urlEqualTo("/v2/spaces/" + TEST_SPACE_GUID)) + .withMetadata(optionalStubMapping()) + .willReturn(ok() + .withBody(cc("get-space", + replace("@org-guid", TEST_ORG_GUID), + replace("@space-guid", TEST_SPACE_GUID))))); + } + + private void stubFindDomains() { + stubFor(get(urlPathEqualTo("/v2/shared_domains")) + .withMetadata(optionalStubMapping()) + .willReturn(ok() + .withBody(cc("list-shared-domains", + replace("@org-guid", TEST_ORG_GUID))))); + + stubFor(get(urlPathEqualTo("/v2/organizations/" + TEST_ORG_GUID + "/private_domains")) + .withMetadata(optionalStubMapping()) + .willReturn(ok() + .withBody(cc("empty-query-results")))); + } + + public void stubAppDoesNotExist(final String appName) { + stubFor(get(urlEqualTo("/v2/spaces/" + TEST_SPACE_GUID + "/apps?q=name:" + appName + "&page=1")) + .willReturn(ok() + .withBody(cc("empty-query-results")))); + } + + public void stubAppExists(final String appName) { + String appGuid = appName + "-GUID"; + String stackGuid = appName + "-STACK-GUID"; + String routeGuid = appName + "-ROUTE-GUID"; + + stubFor(get(urlEqualTo("/v2/spaces/" + TEST_SPACE_GUID + "/apps?q=name:" + appName + "&page=1")) + .willReturn(ok() + .withBody(cc("list-space-apps", + replace("@guid", appGuid), + replace("@space-guid", TEST_SPACE_GUID), + replace("@stack-guid", stackGuid))))); + + stubFor(get(urlPathEqualTo("/v2/apps/" + appGuid + "/instances")) + .willReturn(ok() + .withBody(cc("get-app-instances")))); + + stubFor(get(urlPathEqualTo("/v2/apps/" + appGuid + "/summary")) + .willReturn(ok() + .withBody(cc("get-app-summary", + replace("@name", appName), + replace("@guid", appGuid), + replace("@stack-guid", stackGuid), + replace("@route-guid", routeGuid))))); + + stubFor(get(urlPathEqualTo("/v2/apps/" + appGuid + "/stats")) + .willReturn(ok() + .withBody(cc("get-app-stats", + replace("@name", appName))))); + + stubFor(get(urlPathEqualTo("/v2/stacks/" + stackGuid)) + .willReturn(ok() + .withBody(cc("get-stack", + replace("@guid", stackGuid))))); + } + + public void stubPushApp(final String appName, ContentPattern... appMetadataPatterns) { + String appGuid = appName + "-GUID"; + String routeGuid = appName + "-ROUTE-GUID"; + String uploadBitsJogGuid = appName + "-JOB-GUID"; + + // + // create app metadata + // + MappingBuilder mappingBuilder = post(urlEqualTo("/v2/apps")) + .withRequestBody(matchingJsonPath("$.[?(@.name == '" + appName + "')]")); + for (ContentPattern appMetadataPattern : appMetadataPatterns) { + mappingBuilder.withRequestBody(appMetadataPattern); + } + stubFor(mappingBuilder + .willReturn(ok() + .withBody(cc("get-app-STOPPED", + replace("@name", appName), + replace("@guid", appGuid))))); + + // + // map route to app + // + stubFor(get(urlPathEqualTo("/v2/apps/" + appGuid + "/routes")) + .willReturn(ok() + .withBody(cc("empty-query-results")))); + + stubFor(get(urlEqualTo("/v2/routes?q=domain_guid:" + TEST_ORG_GUID + "&q=host:" + appName + "&page=1")) + .willReturn(ok() + .withBody(cc("empty-query-results")))); + + stubFor(post(urlEqualTo("/v2/routes")) + .withRequestBody(matchingJsonPath("$.[?(@.host == '" + appName + "')]")) + .willReturn(created() + .withBody(cc("list-routes", + replace("@name", appName), + replace("@guid", routeGuid))))); + + stubFor(put(urlEqualTo("/v2/apps/" + appGuid + "/routes/" + routeGuid)) + .willReturn(created() + .withBody(cc("get-app-STOPPED", + replace("@name", appName), + replace("@guid", appGuid))))); + + // + // perform pre-upload resource matching + // + stubFor(put(urlEqualTo("/v2/resource_match")) + .withMetadata(optionalStubMapping()) + .willReturn(ok() + .withBody("[]"))); + + // + // upload app bits + // + stubFor(put(urlEqualTo("/v2/apps/" + appGuid + "/bits?async=true")) + .willReturn(created() + .withBody(cc("put-app-bits", + replace("@guid", uploadBitsJogGuid))))); + + // + // initialize app state + // + stubFor(put(urlEqualTo("/v2/apps/" + appGuid)) + .withRequestBody(matchingJsonPath("$.[?(@.state == 'STOPPED')]")) + .willReturn(created() + .withBody(cc("get-app-STOPPED", + replace("@name", appName), + replace("@guid", appGuid))))); + + stubFor(put(urlEqualTo("/v2/apps/" + appGuid)) + .withRequestBody(matchingJsonPath("$.[?(@.state == 'STARTED')]")) + .willReturn(created() + .withBody(cc("get-app-STARTED", + replace("@name", appName), + replace("@guid", appGuid))))); + + // + // poll for app ready + // + stubFor(get(urlEqualTo("/v2/apps/" + appGuid)) + .willReturn(ok() + .withBody(cc("get-app-STAGED")))); + + stubFor(get(urlEqualTo("/v2/apps/" + appGuid + "/instances")) + .willReturn(ok() + .withBody(cc("get-app-instances")))); + } + + public void stubDeleteApp(String appName) { + String appGuid = appName + "-GUID"; + String routeGuid = appName + "-ROUTE-GUID"; + + stubFor(delete(urlPathEqualTo("/v2/routes/" + appName + "-ROUTE-GUID")) + .willReturn(ok() + .withBody(cc("get-route", + replace("@guid", routeGuid))))); + + stubFor(delete(urlPathEqualTo("/v2/apps/" + appGuid)) + .willReturn(noContent())); + } + + public void stubServiceInstanceExists(String serviceInstanceName) { + stubFor(get(urlEqualTo("/v2/spaces/" + TEST_SPACE_GUID + "/service_instances" + + "?q=name:" + serviceInstanceName + + "&page=1" + + "&return_user_provided_service_instances=true")) + .willReturn(ok() + .withBody(cc("list-space-service_instances", + replace("@space-guid", TEST_SPACE_GUID), + replace("@name", serviceInstanceName), + replace("@guid", serviceInstanceName + "-GUID"))))); + } + + public void stubCreateServiceBinding(String appName, String serviceInstanceName) { + String appGuid = appName + "-GUID"; + String serviceInstanceGuid = serviceInstanceName + "-GUID"; + String serviceBindingGuid = appGuid + "-" + serviceInstanceGuid; + + stubFor(post(urlEqualTo("/v2/service_bindings")) + .withRequestBody(matchingJsonPath("$.[?(@.app_guid == '" + appGuid + "')]")) + .withRequestBody(matchingJsonPath("$.[?(@.service_instance_guid == '" + serviceInstanceGuid + "')]")) + .willReturn(created() + .withBody(cc("list-service-bindings", + replace("@guid", serviceBindingGuid), + replace("@app-guid", appGuid), + replace("@service-instance-guid", serviceInstanceGuid))))); + } + + public void stubServiceBindingDoesNotExist(String appName) { + String appGuid = appName + "-GUID"; + + stubFor(get(urlPathEqualTo("/v2/apps/" + appGuid + "/service_bindings")) + .willReturn(ok() + .withBody(cc("empty-query-results")))); + } + + private String cc(String fileRoot, StringReplacementPair... replacements) { + String response = readResponseFromFile(fileRoot, "cloudcontroller"); + for (StringReplacementPair pair : replacements) { + response = response.replaceAll(pair.getRegex(), pair.getReplacement()); + } + return response; + } +} diff --git a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/CloudFoundryApiFixture.java b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/CloudFoundryApiFixture.java deleted file mode 100644 index 63be9af..0000000 --- a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/CloudFoundryApiFixture.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2016-2018 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.cloud.appbroker.sample.fixtures; - -import io.restassured.http.ContentType; -import io.restassured.http.Header; -import io.restassured.specification.RequestSpecification; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.test.context.TestComponent; -import org.springframework.http.HttpStatus; - -import static io.restassured.RestAssured.given; -import static io.restassured.RestAssured.with; - -@TestComponent -public class CloudFoundryApiFixture { - @Value("${spring.cloud.appbroker.deployer.cloudfoundry.api-host}") - private String cfApiHost; - - @Value("${spring.cloud.appbroker.deployer.cloudfoundry.api-port}") - private int cfApiPort; - - @Value("${spring.cloud.appbroker.deployer.cloudfoundry.default-org}") - private String cfDefaultOrg; - - @Value("${spring.cloud.appbroker.deployer.cloudfoundry.default-space}") - private String cfDefaultSpace; - - @Value("${wiremock.cloudfoundry.access-token:an.access.token}") - private String accessToken; - - private String defaultSpaceGuid; - - public void init() { - String orgGuid = given(request()) - .when() - .get("/v2/organizations?q=name:{orgName}", cfDefaultOrg) - .then() - .statusCode(HttpStatus.OK.value()) - .extract().body().jsonPath().getString("resources[0].metadata.guid"); - - defaultSpaceGuid = given(request()) - .when() - .get("/v2/spaces?q=name:{spaceName}&q=organization_guid:{orgGuid}", cfDefaultSpace, orgGuid) - .then() - .statusCode(HttpStatus.OK.value()) - .extract().body().jsonPath().getString("resources[0].metadata.guid"); - } - - public String findApplicationUrl(String appName) { - return "/v2/spaces/" + defaultSpaceGuid + "/apps?q=name:" + appName + "&page=1"; - } - - public RequestSpecification request() { - return with() - .baseUri("http://" + cfApiHost + ":" + cfApiPort) - .accept(ContentType.JSON) - .contentType(ContentType.JSON) - .header(getAuthorizationHeader()); - } - - private Header getAuthorizationHeader() { - return new Header("Authorization", "bearer " + accessToken); - } -} diff --git a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/UaaStubFixture.java b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/UaaStubFixture.java new file mode 100644 index 0000000..1b26319 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/UaaStubFixture.java @@ -0,0 +1,41 @@ +/* + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.springframework.cloud.appbroker.sample.fixtures; + +import org.springframework.boot.test.context.TestComponent; + +import static com.github.tomakehurst.wiremock.client.WireMock.ok; +import static com.github.tomakehurst.wiremock.client.WireMock.post; +import static com.github.tomakehurst.wiremock.client.WireMock.stubFor; +import static com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo; + +@TestComponent +public class UaaStubFixture extends WiremockStubFixture { + public void stubCommonUaaRequests() { + stubRetrieveAccessToken(); + } + + private void stubRetrieveAccessToken() { + stubFor(post(urlPathEqualTo("/oauth/token")) + .willReturn(ok() + .withBody(uaa("put-oauth-token")))); + } + + private String uaa(String fileRoot) { + return readResponseFromFile(fileRoot, "uaa"); + } +} diff --git a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/WiremockServerFixture.java b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/WiremockServerFixture.java index c601fb6..3d5d01f 100644 --- a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/WiremockServerFixture.java +++ b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/WiremockServerFixture.java @@ -17,19 +17,18 @@ package org.springframework.cloud.appbroker.sample.fixtures; import com.github.tomakehurst.wiremock.WireMockServer; +import com.github.tomakehurst.wiremock.stubbing.StubMapping; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.test.context.TestComponent; -import org.springframework.cloud.appbroker.sample.transformers.URLLocalhostStubResponseTransformer; -import org.springframework.http.HttpStatus; -import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; -import static com.github.tomakehurst.wiremock.client.WireMock.any; +import java.util.List; +import java.util.Set; +import java.util.UUID; +import java.util.stream.Collectors; + import static com.github.tomakehurst.wiremock.client.WireMock.recordSpec; -import static com.github.tomakehurst.wiremock.client.WireMock.stubFor; -import static com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo; import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.wireMockConfig; -import static org.apache.http.HttpHeaders.CONTENT_TYPE; -import static org.apache.http.entity.ContentType.APPLICATION_JSON; +import static org.assertj.core.api.Assertions.assertThat; @TestComponent public class WiremockServerFixture { @@ -47,11 +46,10 @@ public class WiremockServerFixture { private WireMockServer wiremockServer; - public void startWiremock(String recordingDirectoryName) { + public void startWiremock() { wiremockServer = new WireMockServer(wireMockConfig() .port(cfApiPort) - .usingFilesUnderDirectory(recordingDirectoryName) - .extensions(URLLocalhostStubResponseTransformer.class.getName())); + .usingFilesUnderClasspath("recordings")); if (wiremockRecord) { wiremockServer.startRecording( @@ -61,8 +59,6 @@ public class WiremockServerFixture { } wiremockServer.start(); - - stubUAA(); } public void stopWiremock() { @@ -73,26 +69,26 @@ public class WiremockServerFixture { wiremockServer.stop(); } - private void stubUAA() { - String refreshToken = "a.refresh.token"; + public void verifyAllRequiredStubsUsed() { + Set servedStubIds = wiremockServer.getServeEvents().getRequests().stream() + .filter(event -> event.getStubMapping() != null) + .map(event -> event.getStubMapping().getId()) + .collect(Collectors.toSet()); - stubFor(any(urlPathEqualTo("/oauth/token")) - .willReturn(aResponse() - .withStatus(HttpStatus.OK.value()) - .withHeader(CONTENT_TYPE, APPLICATION_JSON.toString()) - .withBody("{" + - "\"access_token\":\"" + accessToken + "\"" + - ",\"token_type\":\"bearer\"" + - ",\"refresh_token\":\"" + refreshToken + "\"" + - ",\"expires_in\":7199" + - ",\"scope\":\"network.write cloud_controller.admin " + - "routing.router_groups.read cloud_controller.write " + - "network.admin doppler.firehose openid routing.router_groups.write " + - "scim.read uaa.user cloud_controller.read password.write scim.write\"" + - ",\"authorization_endpoint\":\"http://localhost\"" + - ",\"jti\":\"287353917d704131a78967c13623a705\"" + - "}") - ) - ); + List unusedStubs = wiremockServer.listAllStubMappings().getMappings().stream() + .filter(stub -> !servedStubIds.contains(stub.getId())) + .filter(this::stubIsOptional) + .collect(Collectors.toList()); + + assertThat(unusedStubs.size()) + .as("%d wiremock stubs were unused. Unused stubs are: %s", unusedStubs.size(), unusedStubs) + .isEqualTo(0); + } + + private boolean stubIsOptional(StubMapping stub) { + if (stub.getMetadata() != null) { + return !stub.getMetadata().getBoolean("optional"); + } + return false; } } diff --git a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/WiremockStubFixture.java b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/WiremockStubFixture.java new file mode 100644 index 0000000..2b44ae4 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/fixtures/WiremockStubFixture.java @@ -0,0 +1,78 @@ +/* + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.springframework.cloud.appbroker.sample.fixtures; + +import com.github.tomakehurst.wiremock.common.Metadata; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.core.io.Resource; +import org.springframework.core.io.ResourceLoader; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.util.stream.Collectors; + +public class WiremockStubFixture { + private static final String RESPONSES_RESOURCE_PATH = "classpath:/responses/"; + + @Autowired + private ResourceLoader resourceLoader; + + CloudControllerStubFixture.StringReplacementPair replace(String regex, String replacement) { + return new CloudControllerStubFixture.StringReplacementPair(regex, replacement); + } + + String readResponseFromFile(String fileRoot, String prefix) { + return readTestDataFile(RESPONSES_RESOURCE_PATH + prefix + "/" + fileRoot + ".json"); + } + + private String readTestDataFile(String filePath) { + try { + Resource resource = resourceLoader.getResource(filePath); + InputStreamReader reader = new InputStreamReader(resource.getInputStream()); + return new BufferedReader(reader) + .lines() + .collect(Collectors.joining("\n")); + } catch (IOException e) { + throw new RuntimeException("Error loading resource from location " + filePath, e); + } + } + + Metadata optionalStubMapping() { + return Metadata.metadata() + .attr("optional", true) + .build(); + } + + class StringReplacementPair { + private final String regex; + private final String replacement; + + private StringReplacementPair(String regex, String replacement) { + this.regex = regex; + this.replacement = replacement; + } + + public String getRegex() { + return regex; + } + + public String getReplacement() { + return replacement; + } + } +} diff --git a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/transformers/URLLocalhostStubResponseTransformer.java b/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/transformers/URLLocalhostStubResponseTransformer.java deleted file mode 100644 index 48020f5..0000000 --- a/spring-cloud-app-broker-sample/src/test/java/org.springframework.cloud.appbroker/sample/transformers/URLLocalhostStubResponseTransformer.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2016-2018. the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.cloud.appbroker.sample.transformers; - -import com.github.tomakehurst.wiremock.common.FileSource; -import com.github.tomakehurst.wiremock.extension.Parameters; -import com.github.tomakehurst.wiremock.extension.ResponseTransformer; -import com.github.tomakehurst.wiremock.http.Request; -import com.github.tomakehurst.wiremock.http.Response; -import org.apache.logging.log4j.util.Strings; - -public class URLLocalhostStubResponseTransformer extends ResponseTransformer { - - @Override - public Response transform(Request request, Response response, FileSource files, Parameters parameters) { - String responseBody = updateUrlsToLocalhost(response); - return Response.Builder.like(response) - .but() - .body(responseBody) - .build(); - } - - private static String updateUrlsToLocalhost(Response response) { - String responseBody = response.getBodyAsString(); - if (Strings.isNotEmpty(responseBody)) { - responseBody = responseBody.replaceAll("\"https://login.cf.*\"", "\"http://localhost\""); - responseBody = responseBody.replaceAll("\"https://uaa.cf.*\"", "\"http://localhost\""); - responseBody = responseBody.replaceAll("\"https://api.cf.*\"", "\"http://localhost\""); - responseBody = responseBody.replaceAll("\"name\": \"apps.*\"", "\"name\": \"localhost\""); - responseBody = responseBody.replaceAll("\"ssh.cf.*\"", "\"localhost\""); - responseBody = responseBody.replaceAll("\"https://credhub.cf.*\"", "\"http://localhost\""); - responseBody = responseBody.replaceAll("\"wss://doppler.cf.*\"", "\"wss://localhost\""); - } - return responseBody; - } - - @Override - public String getName() { - return this.getClass().getSimpleName(); - } -} diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/-ef1e932f-7fd6-4eac-b770-92653a5ec964.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/-ef1e932f-7fd6-4eac-b770-92653a5ec964.json deleted file mode 100644 index 8577c84..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/-ef1e932f-7fd6-4eac-b770-92653a5ec964.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "ef1e932f-7fd6-4eac-b770-92653a5ec964", - "name" : "", - "request" : { - "url" : "/", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"links\": {\n \"self\": {\n \"href\": \"http://localhost\"\n },\n \"cloud_controller_v2\": {\n \"href\": \"http://localhost\",\n \"meta\": {\n \"version\": \"2.103.0\"\n }\n },\n \"cloud_controller_v3\": {\n \"href\": \"http://localhost\",\n \"meta\": {\n \"version\": \"3.38.0\"\n }\n },\n \"network_policy_v0\": {\n \"href\": \"http://localhost\"\n },\n \"network_policy_v1\": {\n \"href\": \"http://localhost\"\n },\n \"uaa\": {\n \"href\": \"http://localhost\"\n },\n \"credhub\": null,\n \"routing\": {\n \"href\": \"http://localhost\"\n },\n \"logging\": {\n \"href\": \"wss://localhost\"\n },\n \"app_ssh\": {\n \"href\": \"localhost\",\n \"meta\": {\n \"host_key_fingerprint\": \"8c:db:69:39:90:e1:93:6a:f8:56:e9:a7:68:fc:52:d2\",\n \"oauth_client\": \"ssh-proxy\"\n }\n }\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "fd9aed67-425e-4a55-5eb5-fcf0e273f658::0d881191-5823-4282-8bf9-cec2b8ea427c", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "ef1e932f-7fd6-4eac-b770-92653a5ec964", - "persistent" : true, - "insertionIndex" : 4 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-0ebfa654-308a-40ad-9a5a-61b3796460ae.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-0ebfa654-308a-40ad-9a5a-61b3796460ae.json deleted file mode 100644 index 42c0c2e..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-0ebfa654-308a-40ad-9a5a-61b3796460ae.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "0ebfa654-308a-40ad-9a5a-61b3796460ae", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:29:56Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"4689920b-c904-4b55-b7ba-5acd488c302f\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"1cb8028d-5b40-46e6-b6de-007a271ebb9b\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:29:53Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:57 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "9d14baa0-6285-4549-55ef-3ebdc3770348::879f6de6-c179-4315-9964-7f9f9ff087d7", - "Keep-Alive" : "timeout=5, max=84", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "0ebfa654-308a-40ad-9a5a-61b3796460ae", - "persistent" : true, - "scenarioName" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452", - "requiredScenarioState" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452-2", - "newScenarioState" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452-3", - "insertionIndex" : 22 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-24ac50d5-181c-4db5-9094-ba324bcfc6ad.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-24ac50d5-181c-4db5-9094-ba324bcfc6ad.json deleted file mode 100644 index 9712f01..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-24ac50d5-181c-4db5-9094-ba324bcfc6ad.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "24ac50d5-181c-4db5-9094-ba324bcfc6ad", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:29:56Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"4689920b-c904-4b55-b7ba-5acd488c302f\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"1cb8028d-5b40-46e6-b6de-007a271ebb9b\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:29:53Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:27 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "c46d7891-eae4-48ae-4529-8e8c56f0e0e9::0565065c-9ffe-4b41-a7b7-8c0515c7fc27", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "24ac50d5-181c-4db5-9094-ba324bcfc6ad", - "persistent" : true, - "scenarioName" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452", - "requiredScenarioState" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452-6", - "newScenarioState" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452-7", - "insertionIndex" : 26 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-24df806c-d84f-4c81-a2d3-4080bcfcbd4f.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-24df806c-d84f-4c81-a2d3-4080bcfcbd4f.json deleted file mode 100644 index 0908c9e..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-24df806c-d84f-4c81-a2d3-4080bcfcbd4f.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "24df806c-d84f-4c81-a2d3-4080bcfcbd4f", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:29:56Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"4689920b-c904-4b55-b7ba-5acd488c302f\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"1cb8028d-5b40-46e6-b6de-007a271ebb9b\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:29:53Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:04 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "02c6e12a-6573-4a24-5b12-45acb7448226::a7880854-c16f-4960-b1fe-9eae294845cf", - "Keep-Alive" : "timeout=5, max=82", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "24df806c-d84f-4c81-a2d3-4080bcfcbd4f", - "persistent" : true, - "scenarioName" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452", - "requiredScenarioState" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452-4", - "newScenarioState" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452-5", - "insertionIndex" : 24 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-331f7536-4fa2-467a-ae50-71ec876d051b.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-331f7536-4fa2-467a-ae50-71ec876d051b.json deleted file mode 100644 index da83341..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-331f7536-4fa2-467a-ae50-71ec876d051b.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "331f7536-4fa2-467a-ae50-71ec876d051b", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"buildpack\":\"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\"disk_quota\":1024,\"environment_json\":{\"SPRING_APPLICATION_INDEX\":\"${vcap.application.instance_index}\",\"SPRING_APPLICATION_JSON\":\"{}\",\"SPRING_CLOUD_APPLICATION_GUID\":\"${vcap.application.name}:${vcap.application.instance_index}\"},\"health_check_http_endpoint\":\"/health\",\"health_check_timeout\":120,\"health_check_type\":\"port\",\"instances\":1,\"memory\":1024,\"name\":\"helloworldapp\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:29:52Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"a8ab0797-0744-4e1f-8cb1-abde36604429\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"610ebd90-fb60-47bc-8a6e-bbce8d0ef4d1\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:27:32Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "1d64f31b-f322-4bb5-7595-9aaeb38fa4c1::4984eb2d-8c47-4173-9ca1-1264de6aee4e", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "331f7536-4fa2-467a-ae50-71ec876d051b", - "persistent" : true, - "insertionIndex" : 12 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-38a4ee5a-ec12-4c67-b9cc-de9ef4b8cb6e.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-38a4ee5a-ec12-4c67-b9cc-de9ef4b8cb6e.json deleted file mode 100644 index 4d40446..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-38a4ee5a-ec12-4c67-b9cc-de9ef4b8cb6e.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "id" : "38a4ee5a-ec12-4c67-b9cc-de9ef4b8cb6e", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452", - "method" : "DELETE" - }, - "response" : { - "status" : 204, - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:49 GMT", - "Server" : "nginx", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "aa1eb970-bdbe-457c-6d54-f5692d77b5e5::087f7c08-0cf3-49c9-802b-83227d084e7c", - "Keep-Alive" : "timeout=5, max=91", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "38a4ee5a-ec12-4c67-b9cc-de9ef4b8cb6e", - "persistent" : true, - "insertionIndex" : 43 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-4521e0c6-024e-4750-8ef2-c191bab61b9f.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-4521e0c6-024e-4750-8ef2-c191bab61b9f.json deleted file mode 100644 index c2f4bcd..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-4521e0c6-024e-4750-8ef2-c191bab61b9f.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "4521e0c6-024e-4750-8ef2-c191bab61b9f", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:29:56Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"4689920b-c904-4b55-b7ba-5acd488c302f\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"1cb8028d-5b40-46e6-b6de-007a271ebb9b\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:29:53Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:12 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "cd840f0d-1ff7-43ec-49c7-448559e06d27::5d20e811-1492-4b01-9f6b-f4865233f618", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "4521e0c6-024e-4750-8ef2-c191bab61b9f", - "persistent" : true, - "scenarioName" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452", - "requiredScenarioState" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452-5", - "newScenarioState" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452-6", - "insertionIndex" : 25 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-5e708ffa-759b-43b9-a205-2b172fb74829.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-5e708ffa-759b-43b9-a205-2b172fb74829.json deleted file mode 100644 index af5d747..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-5e708ffa-759b-43b9-a205-2b172fb74829.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "5e708ffa-759b-43b9-a205-2b172fb74829", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:29:56Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"4689920b-c904-4b55-b7ba-5acd488c302f\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"1cb8028d-5b40-46e6-b6de-007a271ebb9b\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:29:53Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:42 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "f5e308a5-5da2-44de-7bd3-aaea3e703008::ba4e4b34-8d16-4d71-8add-741271c8313e", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "5e708ffa-759b-43b9-a205-2b172fb74829", - "persistent" : true, - "scenarioName" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452", - "requiredScenarioState" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452-7", - "insertionIndex" : 27 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-b6f1471c-89e0-403d-9997-75b5d805f859.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-b6f1471c-89e0-403d-9997-75b5d805f859.json deleted file mode 100644 index 364b51e..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-b6f1471c-89e0-403d-9997-75b5d805f859.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "b6f1471c-89e0-403d-9997-75b5d805f859", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"state\":\"STOPPED\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:29:56Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STOPPED\",\n \"version\": \"a8ab0797-0744-4e1f-8cb1-abde36604429\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"610ebd90-fb60-47bc-8a6e-bbce8d0ef4d1\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:29:53Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:56 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "055f2cb1-9e9a-48f6-62c5-3253f70564b8::2a280204-07d6-4985-aa91-c8900b6bfe99", - "Keep-Alive" : "timeout=5, max=87", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "b6f1471c-89e0-403d-9997-75b5d805f859", - "persistent" : true, - "insertionIndex" : 19 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-c607e760-e787-45c9-980c-f8a82230933c.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-c607e760-e787-45c9-980c-f8a82230933c.json deleted file mode 100644 index aeda7a9..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-c607e760-e787-45c9-980c-f8a82230933c.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "c607e760-e787-45c9-980c-f8a82230933c", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"state\":\"STARTED\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:29:56Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"4689920b-c904-4b55-b7ba-5acd488c302f\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"1cb8028d-5b40-46e6-b6de-007a271ebb9b\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:29:53Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:56 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "7d0c9288-fb1b-4e40-42e5-35b89fcfeaf4::5732573f-042c-470a-9cf7-236d022eed37", - "Keep-Alive" : "timeout=5, max=86", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "c607e760-e787-45c9-980c-f8a82230933c", - "persistent" : true, - "insertionIndex" : 20 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-c81534ca-085d-45c4-a4cb-f68fd46ab003.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-c81534ca-085d-45c4-a4cb-f68fd46ab003.json deleted file mode 100644 index 1b393d2..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-c81534ca-085d-45c4-a4cb-f68fd46ab003.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "c81534ca-085d-45c4-a4cb-f68fd46ab003", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:29:56Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"4689920b-c904-4b55-b7ba-5acd488c302f\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"1cb8028d-5b40-46e6-b6de-007a271ebb9b\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:29:53Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:00 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "b788d875-d04c-4fbd-65b2-5f5f6e360e4a::05165620-ff90-43c4-86bf-6fc1c5e7fc53", - "Keep-Alive" : "timeout=5, max=83", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "c81534ca-085d-45c4-a4cb-f68fd46ab003", - "persistent" : true, - "scenarioName" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452", - "requiredScenarioState" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452-3", - "newScenarioState" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452-4", - "insertionIndex" : 23 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-e016b065-b5eb-4a2a-812b-2649d9b52256.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-e016b065-b5eb-4a2a-812b-2649d9b52256.json deleted file mode 100644 index 2d9c3a8..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452-e016b065-b5eb-4a2a-812b-2649d9b52256.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "e016b065-b5eb-4a2a-812b-2649d9b52256", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:29:56Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"4689920b-c904-4b55-b7ba-5acd488c302f\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"1cb8028d-5b40-46e6-b6de-007a271ebb9b\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:29:53Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:56 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "9ebdc1cb-10f6-44a3-7225-4bd997ef31b9::e38e89a5-ac26-4810-bc77-8bdd1f629e48", - "Keep-Alive" : "timeout=5, max=85", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "e016b065-b5eb-4a2a-812b-2649d9b52256", - "persistent" : true, - "scenarioName" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-apps-e3b0c178-e270-416b-b77c-d75a875c0452-2", - "insertionIndex" : 21 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_bits-33ddaa3d-e56a-4efe-9738-ba1d1d832fc5.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_bits-33ddaa3d-e56a-4efe-9738-ba1d1d832fc5.json deleted file mode 100644 index f8f5f1a..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_bits-33ddaa3d-e56a-4efe-9738-ba1d1d832fc5.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "33ddaa3d-e56a-4efe-9738-ba1d1d832fc5", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_bits", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/bits?async=true", - "method" : "PUT", - "bodyPatterns" : [ { - "anything" : "anything" - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"0c581748-ffb0-443e-b1aa-0a10d9ef97b4\",\n \"created_at\": \"2018-07-19T23:29:53Z\",\n \"url\": \"/v2/jobs/0c581748-ffb0-443e-b1aa-0a10d9ef97b4\"\n },\n \"entity\": {\n \"guid\": \"0c581748-ffb0-443e-b1aa-0a10d9ef97b4\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:53 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "dfb9a770-dced-45d1-6497-3bd620820f19::796d55c0-0944-4df9-bbaa-cdcfb18c0356", - "Keep-Alive" : "timeout=5, max=91", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "33ddaa3d-e56a-4efe-9738-ba1d1d832fc5", - "persistent" : true, - "insertionIndex" : 15 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances-189afded-f9ef-440e-af82-4d2c7c67ed87.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances-189afded-f9ef-440e-af82-4d2c7c67ed87.json deleted file mode 100644 index 2e65479..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances-189afded-f9ef-440e-af82-4d2c7c67ed87.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "189afded-f9ef-440e-af82-4d2c7c67ed87", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"STARTING\",\"uptime\":8,\"since\":1532043033}}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:42 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "602ff9ff-fe98-45b1-6511-3e07dce4555b::e6ae4bb7-ac40-45cf-9939-10fcd6a28863", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "189afded-f9ef-440e-af82-4d2c7c67ed87", - "persistent" : true, - "scenarioName" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-instances", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-instances-2", - "insertionIndex" : 28 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances-6b17c875-6d1f-45f5-a62b-f4272019db06.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances-6b17c875-6d1f-45f5-a62b-f4272019db06.json deleted file mode 100644 index c9ff14b..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances-6b17c875-6d1f-45f5-a62b-f4272019db06.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "6b17c875-6d1f-45f5-a62b-f4272019db06", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"STARTING\",\"uptime\":9,\"since\":1532043033}}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:43 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "bc30a35b-4561-49a9-7a76-9d1bb36ae206::a0ab44e9-3752-4d2f-a57d-3ae0963f7b37", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "6b17c875-6d1f-45f5-a62b-f4272019db06", - "persistent" : true, - "scenarioName" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-instances", - "requiredScenarioState" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-instances-2", - "newScenarioState" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-instances-3", - "insertionIndex" : 29 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances-a7470a9e-ec08-4a76-bd57-83066d667583.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances-a7470a9e-ec08-4a76-bd57-83066d667583.json deleted file mode 100644 index 66ac53c..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances-a7470a9e-ec08-4a76-bd57-83066d667583.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "a7470a9e-ec08-4a76-bd57-83066d667583", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"RUNNING\",\"uptime\":1,\"since\":1532043044}}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "6460c1c8-f90c-4289-6e53-6149167b5773::705baaf7-a334-4b28-9fa0-28deffa373d2", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "a7470a9e-ec08-4a76-bd57-83066d667583", - "persistent" : true, - "scenarioName" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-instances", - "requiredScenarioState" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-instances-4", - "insertionIndex" : 32 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances-b94ea2f5-ec55-4b5f-af63-2c9022ba41b3.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances-b94ea2f5-ec55-4b5f-af63-2c9022ba41b3.json deleted file mode 100644 index 9c68a09..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances-b94ea2f5-ec55-4b5f-af63-2c9022ba41b3.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "b94ea2f5-ec55-4b5f-af63-2c9022ba41b3", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_instances", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"RUNNING\",\"uptime\":1,\"since\":1532043044}}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "909f845e-dfda-46bc-7a3b-a73ddde1d1c3::3a87287e-0011-45ba-bd9f-e05b6d5f914f", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "b94ea2f5-ec55-4b5f-af63-2c9022ba41b3", - "persistent" : true, - "scenarioName" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-instances", - "requiredScenarioState" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-instances-3", - "newScenarioState" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-instances-4", - "insertionIndex" : 30 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_routes-9e8a1efe-2ba1-4e23-96db-78b2b0288950.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_routes-9e8a1efe-2ba1-4e23-96db-78b2b0288950.json deleted file mode 100644 index 6a287b2..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_routes-9e8a1efe-2ba1-4e23-96db-78b2b0288950.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "9e8a1efe-2ba1-4e23-96db-78b2b0288950", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_routes", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"d80f7cdd-876d-4b54-8ca4-4acdfa9247bf\",\n \"url\": \"/v2/routes/d80f7cdd-876d-4b54-8ca4-4acdfa9247bf\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:27:31Z\"\n },\n \"entity\": {\n \"host\": \"helloworldapp\",\n \"path\": \"\",\n \"domain_guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"service_instance_guid\": null,\n \"port\": null,\n \"domain_url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"apps_url\": \"/v2/routes/d80f7cdd-876d-4b54-8ca4-4acdfa9247bf/apps\",\n \"route_mappings_url\": \"/v2/routes/d80f7cdd-876d-4b54-8ca4-4acdfa9247bf/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:53 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "b178b377-d000-4b4f-4ce2-05fa7da8eba7::27f5628c-5555-4a8f-be35-bd7d384cbac9", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "9e8a1efe-2ba1-4e23-96db-78b2b0288950", - "persistent" : true, - "insertionIndex" : 13 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_service_bindings-19c59b3f-2d4e-4db3-9154-4f0c0f51cda0.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_service_bindings-19c59b3f-2d4e-4db3-9154-4f0c0f51cda0.json deleted file mode 100644 index a2abf69..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_service_bindings-19c59b3f-2d4e-4db3-9154-4f0c0f51cda0.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "19c59b3f-2d4e-4db3-9154-4f0c0f51cda0", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_service_bindings", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:48 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "df820c0f-bd70-4f3e-7eaa-2e39a6043c77::a00c0a2d-5557-4d5e-8227-436a59cfa122", - "Keep-Alive" : "timeout=5, max=92", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "19c59b3f-2d4e-4db3-9154-4f0c0f51cda0", - "persistent" : true, - "insertionIndex" : 42 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_stats-7103b19d-4bcd-46b7-9d4c-c3800e02a718.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_stats-7103b19d-4bcd-46b7-9d4c-c3800e02a718.json deleted file mode 100644 index d89b574..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_stats-7103b19d-4bcd-46b7-9d4c-c3800e02a718.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "7103b19d-4bcd-46b7-9d4c-c3800e02a718", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_stats", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/stats", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"RUNNING\",\"isolation_segment\":null,\"stats\":{\"name\":\"helloworldapp\",\"uris\":[\"helloworldapp.apps.scottfrederick.io\"],\"host\":\"192.168.1.106\",\"port\":61012,\"uptime\":1,\"mem_quota\":1073741824,\"disk_quota\":1073741824,\"fds_quota\":16384,\"usage\":{\"time\":\"2018-07-19T23:30:45+00:00\",\"cpu\":0.0,\"mem\":239304704,\"disk\":147185664}}}}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "0b0232cd-b0f6-44dc-4711-9d5e6ee83e7e::cfba620b-ea59-4218-8bac-2573836025f1", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "7103b19d-4bcd-46b7-9d4c-c3800e02a718", - "persistent" : true, - "insertionIndex" : 34 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_summary-9bc74743-c1cf-4011-a6c6-926860cf4c73.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_summary-9bc74743-c1cf-4011-a6c6-926860cf4c73.json deleted file mode 100644 index 45d3307..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_summary-9bc74743-c1cf-4011-a6c6-926860cf4c73.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "9bc74743-c1cf-4011-a6c6-926860cf4c73", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_summary", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/summary", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"guid\":\"e3b0c178-e270-416b-b77c-d75a875c0452\",\"name\":\"helloworldapp\",\"routes\":[{\"guid\":\"d80f7cdd-876d-4b54-8ca4-4acdfa9247bf\",\"host\":\"helloworldapp\",\"port\":null,\"path\":\"\",\"domain\":{\"guid\":\"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\"name\":\"apps.scottfrederick.io\"}}],\"running_instances\":1,\"services\":[],\"available_domains\":[{\"guid\":\"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\"name\":\"apps.scottfrederick.io\",\"router_group_guid\":null,\"router_group_type\":null},{\"guid\":\"552417c3-b176-4e36-84b8-22ff7eeb0b84\",\"name\":\"apps.internal\",\"router_group_guid\":null,\"router_group_type\":null}],\"production\":false,\"space_guid\":\"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\"stack_guid\":\"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\"buildpack\":\"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\"detected_buildpack\":\"\",\"detected_buildpack_guid\":null,\"environment_json\":{\"SPRING_APPLICATION_INDEX\":\"${vcap.application.instance_index}\",\"SPRING_APPLICATION_JSON\":\"{}\",\"SPRING_CLOUD_APPLICATION_GUID\":\"${vcap.application.name}:${vcap.application.instance_index}\"},\"memory\":1024,\"instances\":1,\"disk_quota\":1024,\"state\":\"STARTED\",\"version\":\"4689920b-c904-4b55-b7ba-5acd488c302f\",\"command\":null,\"console\":false,\"debug\":null,\"staging_task_id\":\"1cb8028d-5b40-46e6-b6de-007a271ebb9b\",\"package_state\":\"STAGED\",\"health_check_type\":\"port\",\"health_check_timeout\":120,\"health_check_http_endpoint\":\"/health\",\"staging_failed_reason\":null,\"staging_failed_description\":null,\"diego\":true,\"docker_image\":null,\"package_updated_at\":\"2018-07-19T23:29:53Z\",\"detected_start_command\":\"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\"enable_ssh\":true,\"ports\":null}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "d54956aa-5860-4236-71f9-bdb454236922::15fe093f-52cc-4e74-a232-b97bd80bcada", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "9bc74743-c1cf-4011-a6c6-926860cf4c73", - "persistent" : true, - "scenarioName" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-summary", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-summary-2", - "insertionIndex" : 33 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_summary-c9069ce0-c1de-47ac-b5be-a98e99f3a19e.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_summary-c9069ce0-c1de-47ac-b5be-a98e99f3a19e.json deleted file mode 100644 index 5d11d80..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_summary-c9069ce0-c1de-47ac-b5be-a98e99f3a19e.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "c9069ce0-c1de-47ac-b5be-a98e99f3a19e", - "name" : "v2_apps_e3b0c178-e270-416b-b77c-d75a875c0452_summary", - "request" : { - "url" : "/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/summary", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"guid\":\"e3b0c178-e270-416b-b77c-d75a875c0452\",\"name\":\"helloworldapp\",\"routes\":[{\"guid\":\"d80f7cdd-876d-4b54-8ca4-4acdfa9247bf\",\"host\":\"helloworldapp\",\"port\":null,\"path\":\"\",\"domain\":{\"guid\":\"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\"name\":\"apps.scottfrederick.io\"}}],\"running_instances\":1,\"services\":[],\"available_domains\":[{\"guid\":\"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\"name\":\"apps.scottfrederick.io\",\"router_group_guid\":null,\"router_group_type\":null},{\"guid\":\"552417c3-b176-4e36-84b8-22ff7eeb0b84\",\"name\":\"apps.internal\",\"router_group_guid\":null,\"router_group_type\":null}],\"production\":false,\"space_guid\":\"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\"stack_guid\":\"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\"buildpack\":\"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\"detected_buildpack\":\"\",\"detected_buildpack_guid\":null,\"environment_json\":{\"SPRING_APPLICATION_INDEX\":\"${vcap.application.instance_index}\",\"SPRING_APPLICATION_JSON\":\"{}\",\"SPRING_CLOUD_APPLICATION_GUID\":\"${vcap.application.name}:${vcap.application.instance_index}\"},\"memory\":1024,\"instances\":1,\"disk_quota\":1024,\"state\":\"STARTED\",\"version\":\"4689920b-c904-4b55-b7ba-5acd488c302f\",\"command\":null,\"console\":false,\"debug\":null,\"staging_task_id\":\"1cb8028d-5b40-46e6-b6de-007a271ebb9b\",\"package_state\":\"STAGED\",\"health_check_type\":\"port\",\"health_check_timeout\":120,\"health_check_http_endpoint\":\"/health\",\"staging_failed_reason\":null,\"staging_failed_description\":null,\"diego\":true,\"docker_image\":null,\"package_updated_at\":\"2018-07-19T23:29:53Z\",\"detected_start_command\":\"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\"enable_ssh\":true,\"ports\":null}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "edb82d38-f718-42d9-6dc3-8fe63a8917c0::696ef205-7a72-4a55-b207-ec03592aef85", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "c9069ce0-c1de-47ac-b5be-a98e99f3a19e", - "persistent" : true, - "scenarioName" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-summary", - "requiredScenarioState" : "scenario-e3b0c178-e270-416b-b77c-d75a875c0452-summary-2", - "insertionIndex" : 37 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_info-ab000a12-6b8e-4345-8f4c-e2f3a3f4c555.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_info-ab000a12-6b8e-4345-8f4c-e2f3a3f4c555.json deleted file mode 100644 index 2fb7478..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_info-ab000a12-6b8e-4345-8f4c-e2f3a3f4c555.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "ab000a12-6b8e-4345-8f4c-e2f3a3f4c555", - "name" : "v2_info", - "request" : { - "url" : "/v2/info", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"name\":\"\",\"build\":\"\",\"support\":\"https://support.pivotal.io\",\"version\":0,\"description\":\"\",\"authorization_endpoint\":\"http://localhost\"}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "f30306fb-7d6a-46a7-4550-85c70840b707::4e5f7b24-302c-455c-ab34-d0914b57b1da", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "ab000a12-6b8e-4345-8f4c-e2f3a3f4c555", - "persistent" : true, - "insertionIndex" : 5 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_0c581748-ffb0-443e-b1aa-0a10d9ef97b4-0f274c1b-9362-43cb-b140-6aa9dbdeaba7.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_0c581748-ffb0-443e-b1aa-0a10d9ef97b4-0f274c1b-9362-43cb-b140-6aa9dbdeaba7.json deleted file mode 100644 index 5c24003..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_0c581748-ffb0-443e-b1aa-0a10d9ef97b4-0f274c1b-9362-43cb-b140-6aa9dbdeaba7.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "0f274c1b-9362-43cb-b140-6aa9dbdeaba7", - "name" : "v2_jobs_0c581748-ffb0-443e-b1aa-0a10d9ef97b4", - "request" : { - "url" : "/v2/jobs/0c581748-ffb0-443e-b1aa-0a10d9ef97b4", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"0c581748-ffb0-443e-b1aa-0a10d9ef97b4\",\n \"created_at\": \"2018-07-19T23:29:53Z\",\n \"url\": \"/v2/jobs/0c581748-ffb0-443e-b1aa-0a10d9ef97b4\"\n },\n \"entity\": {\n \"guid\": \"0c581748-ffb0-443e-b1aa-0a10d9ef97b4\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:53 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "6c0bcf09-c347-40e6-52fd-b4269485838f::3f67503a-92e3-454c-b49c-ae475ef20bef", - "Keep-Alive" : "timeout=5, max=90", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "0f274c1b-9362-43cb-b140-6aa9dbdeaba7", - "persistent" : true, - "scenarioName" : "scenario-jobs-0c581748-ffb0-443e-b1aa-0a10d9ef97b4", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-jobs-0c581748-ffb0-443e-b1aa-0a10d9ef97b4-2", - "insertionIndex" : 16 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_0c581748-ffb0-443e-b1aa-0a10d9ef97b4-5d2b9815-05af-455e-8956-c5e971a9c417.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_0c581748-ffb0-443e-b1aa-0a10d9ef97b4-5d2b9815-05af-455e-8956-c5e971a9c417.json deleted file mode 100644 index e55e0d1..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_0c581748-ffb0-443e-b1aa-0a10d9ef97b4-5d2b9815-05af-455e-8956-c5e971a9c417.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "5d2b9815-05af-455e-8956-c5e971a9c417", - "name" : "v2_jobs_0c581748-ffb0-443e-b1aa-0a10d9ef97b4", - "request" : { - "url" : "/v2/jobs/0c581748-ffb0-443e-b1aa-0a10d9ef97b4", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"0c581748-ffb0-443e-b1aa-0a10d9ef97b4\",\n \"created_at\": \"2018-07-19T23:29:53Z\",\n \"url\": \"/v2/jobs/0c581748-ffb0-443e-b1aa-0a10d9ef97b4\"\n },\n \"entity\": {\n \"guid\": \"0c581748-ffb0-443e-b1aa-0a10d9ef97b4\",\n \"status\": \"running\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:54 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "53125aa0-3d8f-40de-5faf-30a964f5efed::0b514dd0-4568-4983-bb7d-9526e9a2c19a", - "Keep-Alive" : "timeout=5, max=89", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "5d2b9815-05af-455e-8956-c5e971a9c417", - "persistent" : true, - "scenarioName" : "scenario-jobs-0c581748-ffb0-443e-b1aa-0a10d9ef97b4", - "requiredScenarioState" : "scenario-jobs-0c581748-ffb0-443e-b1aa-0a10d9ef97b4-2", - "newScenarioState" : "scenario-jobs-0c581748-ffb0-443e-b1aa-0a10d9ef97b4-3", - "insertionIndex" : 17 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_0c581748-ffb0-443e-b1aa-0a10d9ef97b4-f26da7ce-17c8-49a5-8bae-fd603755bbae.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_0c581748-ffb0-443e-b1aa-0a10d9ef97b4-f26da7ce-17c8-49a5-8bae-fd603755bbae.json deleted file mode 100644 index 8534d2c..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_0c581748-ffb0-443e-b1aa-0a10d9ef97b4-f26da7ce-17c8-49a5-8bae-fd603755bbae.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "f26da7ce-17c8-49a5-8bae-fd603755bbae", - "name" : "v2_jobs_0c581748-ffb0-443e-b1aa-0a10d9ef97b4", - "request" : { - "url" : "/v2/jobs/0c581748-ffb0-443e-b1aa-0a10d9ef97b4", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"0\",\n \"created_at\": \"1970-01-01T00:00:00Z\",\n \"url\": \"/v2/jobs/0\"\n },\n \"entity\": {\n \"guid\": \"0\",\n \"status\": \"finished\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:56 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "99884cb1-b9d8-4bd6-49b7-85c0f7bd35a4::aadcd1ce-532b-41ae-b4aa-58aa9b609087", - "Keep-Alive" : "timeout=5, max=88", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "f26da7ce-17c8-49a5-8bae-fd603755bbae", - "persistent" : true, - "scenarioName" : "scenario-jobs-0c581748-ffb0-443e-b1aa-0a10d9ef97b4", - "requiredScenarioState" : "scenario-jobs-0c581748-ffb0-443e-b1aa-0a10d9ef97b4-3", - "insertionIndex" : 18 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_4369e78e-7c95-4822-af0f-431f70ca38d2-3bf808fc-c5a9-4677-b644-90acdd6c0945.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_4369e78e-7c95-4822-af0f-431f70ca38d2-3bf808fc-c5a9-4677-b644-90acdd6c0945.json deleted file mode 100644 index 837ce01..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_4369e78e-7c95-4822-af0f-431f70ca38d2-3bf808fc-c5a9-4677-b644-90acdd6c0945.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "3bf808fc-c5a9-4677-b644-90acdd6c0945", - "name" : "v2_jobs_4369e78e-7c95-4822-af0f-431f70ca38d2", - "request" : { - "url" : "/v2/jobs/4369e78e-7c95-4822-af0f-431f70ca38d2", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"4369e78e-7c95-4822-af0f-431f70ca38d2\",\n \"created_at\": \"2018-07-19T23:30:45Z\",\n \"url\": \"/v2/jobs/4369e78e-7c95-4822-af0f-431f70ca38d2\"\n },\n \"entity\": {\n \"guid\": \"4369e78e-7c95-4822-af0f-431f70ca38d2\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "cb00b5e1-3913-408a-7447-9765f44abd7f::bab371c7-8374-4c71-9766-db16e815533c", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "3bf808fc-c5a9-4677-b644-90acdd6c0945", - "persistent" : true, - "scenarioName" : "scenario-jobs-4369e78e-7c95-4822-af0f-431f70ca38d2", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-jobs-4369e78e-7c95-4822-af0f-431f70ca38d2-2", - "insertionIndex" : 39 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_4369e78e-7c95-4822-af0f-431f70ca38d2-42241b00-bbac-422b-aebe-63114db2926d.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_4369e78e-7c95-4822-af0f-431f70ca38d2-42241b00-bbac-422b-aebe-63114db2926d.json deleted file mode 100644 index e1c1c97..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_4369e78e-7c95-4822-af0f-431f70ca38d2-42241b00-bbac-422b-aebe-63114db2926d.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "42241b00-bbac-422b-aebe-63114db2926d", - "name" : "v2_jobs_4369e78e-7c95-4822-af0f-431f70ca38d2", - "request" : { - "url" : "/v2/jobs/4369e78e-7c95-4822-af0f-431f70ca38d2", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"0\",\n \"created_at\": \"1970-01-01T00:00:00Z\",\n \"url\": \"/v2/jobs/0\"\n },\n \"entity\": {\n \"guid\": \"0\",\n \"status\": \"finished\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:48 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "37a229d3-3cf8-40ed-44c7-10c9ba1b5612::e6ca3a60-00da-4140-9c8f-103a1669897d", - "Keep-Alive" : "timeout=5, max=93", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "42241b00-bbac-422b-aebe-63114db2926d", - "persistent" : true, - "scenarioName" : "scenario-jobs-4369e78e-7c95-4822-af0f-431f70ca38d2", - "requiredScenarioState" : "scenario-jobs-4369e78e-7c95-4822-af0f-431f70ca38d2-3", - "insertionIndex" : 41 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_4369e78e-7c95-4822-af0f-431f70ca38d2-a1ca27a3-62bc-4253-808a-8452c3693c34.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_4369e78e-7c95-4822-af0f-431f70ca38d2-a1ca27a3-62bc-4253-808a-8452c3693c34.json deleted file mode 100644 index 32910e4..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_jobs_4369e78e-7c95-4822-af0f-431f70ca38d2-a1ca27a3-62bc-4253-808a-8452c3693c34.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "a1ca27a3-62bc-4253-808a-8452c3693c34", - "name" : "v2_jobs_4369e78e-7c95-4822-af0f-431f70ca38d2", - "request" : { - "url" : "/v2/jobs/4369e78e-7c95-4822-af0f-431f70ca38d2", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"4369e78e-7c95-4822-af0f-431f70ca38d2\",\n \"created_at\": \"2018-07-19T23:30:45Z\",\n \"url\": \"/v2/jobs/4369e78e-7c95-4822-af0f-431f70ca38d2\"\n },\n \"entity\": {\n \"guid\": \"4369e78e-7c95-4822-af0f-431f70ca38d2\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:46 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "9b71eae6-4123-4601-621c-d987f3fcc15f::6bf9353a-8d48-4684-8f31-d871f4d2b2e0", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "a1ca27a3-62bc-4253-808a-8452c3693c34", - "persistent" : true, - "scenarioName" : "scenario-jobs-4369e78e-7c95-4822-af0f-431f70ca38d2", - "requiredScenarioState" : "scenario-jobs-4369e78e-7c95-4822-af0f-431f70ca38d2-2", - "newScenarioState" : "scenario-jobs-4369e78e-7c95-4822-af0f-431f70ca38d2-3", - "insertionIndex" : 40 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_organizations-57991110-1c9f-4726-90f7-77028bbe26d5.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_organizations-57991110-1c9f-4726-90f7-77028bbe26d5.json deleted file mode 100644 index 90307c3..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_organizations-57991110-1c9f-4726-90f7-77028bbe26d5.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "57991110-1c9f-4726-90f7-77028bbe26d5", - "name" : "v2_organizations", - "request" : { - "url" : "/v2/organizations?q=name%3Atest", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"created_at\": \"2018-07-19T20:33:45Z\",\n \"updated_at\": \"2018-07-19T20:33:45Z\"\n },\n \"entity\": {\n \"name\": \"test\",\n \"billing_enabled\": false,\n \"quota_definition_guid\": \"7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"status\": \"active\",\n \"default_isolation_segment_guid\": null,\n \"quota_definition_url\": \"/v2/quota_definitions/7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"spaces_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/spaces\",\n \"domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/domains\",\n \"private_domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains\",\n \"users_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/users\",\n \"managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/managers\",\n \"billing_managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/billing_managers\",\n \"auditors_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/auditors\",\n \"app_events_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/app_events\",\n \"space_quota_definitions_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/space_quota_definitions\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "7f999ff1-0854-4983-666c-c22bf0952bbe::4c21b991-b70f-4ceb-86da-fb53bf57faef", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "57991110-1c9f-4726-90f7-77028bbe26d5", - "persistent" : true, - "insertionIndex" : 2 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_organizations-6083a924-43de-40e1-8f50-e67ae8b85136.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_organizations-6083a924-43de-40e1-8f50-e67ae8b85136.json deleted file mode 100644 index de01496..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_organizations-6083a924-43de-40e1-8f50-e67ae8b85136.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "6083a924-43de-40e1-8f50-e67ae8b85136", - "name" : "v2_organizations", - "request" : { - "url" : "/v2/organizations?q=name:test&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"created_at\": \"2018-07-19T20:33:45Z\",\n \"updated_at\": \"2018-07-19T20:33:45Z\"\n },\n \"entity\": {\n \"name\": \"test\",\n \"billing_enabled\": false,\n \"quota_definition_guid\": \"7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"status\": \"active\",\n \"default_isolation_segment_guid\": null,\n \"quota_definition_url\": \"/v2/quota_definitions/7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"spaces_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/spaces\",\n \"domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/domains\",\n \"private_domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains\",\n \"users_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/users\",\n \"managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/managers\",\n \"billing_managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/billing_managers\",\n \"auditors_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/auditors\",\n \"app_events_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/app_events\",\n \"space_quota_definitions_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/space_quota_definitions\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "8fa0ec3c-8f39-46ea-693a-bceade9b5d88::e5b99b89-da84-47ee-b0fe-cc51a388c321", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "6083a924-43de-40e1-8f50-e67ae8b85136", - "persistent" : true, - "insertionIndex" : 6 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-4211ed0b-f9b6-48c6-9029-7d47bb95444c.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-4211ed0b-f9b6-48c6-9029-7d47bb95444c.json deleted file mode 100644 index 0dd6682..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-4211ed0b-f9b6-48c6-9029-7d47bb95444c.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "4211ed0b-f9b6-48c6-9029-7d47bb95444c", - "name" : "v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains", - "request" : { - "url" : "/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "e6290edc-657b-4b89-54e1-8c58bf5d6372::0260057b-9521-4865-8e6e-36c6b907dbee", - "Keep-Alive" : "timeout=5, max=93", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "4211ed0b-f9b6-48c6-9029-7d47bb95444c", - "persistent" : true, - "insertionIndex" : 9 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_resource_match-372f1732-7b01-4708-b4c2-d132aae01531.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_resource_match-372f1732-7b01-4708-b4c2-d132aae01531.json deleted file mode 100644 index 11c92d3..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_resource_match-372f1732-7b01-4708-b4c2-d132aae01531.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "372f1732-7b01-4708-b4c2-d132aae01531", - "name" : "v2_resource_match", - "request" : { - "url" : "/v2/resource_match", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "[{\"sha1\":\"5aa239d8ad6d8130b055caebf44467b9c55d422b\",\"mode\":\"100644\",\"size\":461472},{\"sha1\":\"4c2dd0f89549ee38a588808acfa24797c196b7cb\",\"mode\":\"100644\",\"size\":1779},{\"sha1\":\"4e36bfa02cd464e99d82008a787dcf66ddf2dadc\",\"mode\":\"100644\",\"size\":2688},{\"sha1\":\"ff9d64ab3b825c6b8ed7c64694d0521918785ae2\",\"mode\":\"100644\",\"size\":299},{\"sha1\":\"7caad34f01d2688919e15e09a90467963e3d5190\",\"mode\":\"100644\",\"size\":613},{\"sha1\":\"cb855558e6271b1b32e716d24cb85c7f583ce09e\",\"mode\":\"100644\",\"size\":93107},{\"sha1\":\"0af5364cd6679bfffb114f0dec8a157aaa283b76\",\"mode\":\"100644\",\"size\":4596},{\"sha1\":\"d370eeff676d24523ee530f6abc569474d2f9bf9\",\"mode\":\"100644\",\"size\":612},{\"sha1\":\"011bc4cc96b08fabad2b3186755818fa0b32d83f\",\"mode\":\"100644\",\"size\":1162436},{\"sha1\":\"d963a184197107a75952666c831f14cb662933b7\",\"mode\":\"100644\",\"size\":3608},{\"sha1\":\"8664b2431c82e94493723054cbf5ff341c8ecdb7\",\"mode\":\"100644\",\"size\":5203},{\"sha1\":\"414ffd8db5d733bf88256d5fd8ebb9fd2aff3108\",\"mode\":\"100644\",\"size\":1527},{\"sha1\":\"f9170b781caecaa2127d9d8baf9964e599eb605a\",\"mode\":\"100644\",\"size\":733},{\"sha1\":\"d63a2b8de1abe4092e03ada60bb8d5e26aa73562\",\"mode\":\"100644\",\"size\":1721},{\"sha1\":\"152dbb704f32fef5c6841c46488bf1bb57b6ba5b\",\"mode\":\"100644\",\"size\":1374},{\"sha1\":\"41fd4180bea3813de8f3c602b5a126218360315b\",\"mode\":\"100644\",\"size\":588},{\"sha1\":\"3e324efa4aff13f75357a34a71366d1c20a59e88\",\"mode\":\"100644\",\"size\":4015},{\"sha1\":\"2abf786c56d4cd17c289b56c7ae21b30b6ba5ab7\",\"mode\":\"100644\",\"size\":345},{\"sha1\":\"154a9ab94c152458ebf0f314126fa959d712be9c\",\"mode\":\"100644\",\"size\":4624},{\"sha1\":\"9bc041759fd397c07e01f3af486ba70f7d0b14ba\",\"mode\":\"100644\",\"size\":945},{\"sha1\":\"934c04d3cfef185a8008e7bf34331b79730a9d43\",\"mode\":\"100644\",\"size\":26586},{\"sha1\":\"9e1ac84eed220281841b75e72fb9de5a297fbf04\",\"mode\":\"100644\",\"size\":117910},{\"sha1\":\"1c7dee76e2a1eb2b3f4600b89a4398d8f93a2874\",\"mode\":\"100644\",\"size\":129},{\"sha1\":\"01295d86ab56891a989cd6a9fe84fa169f287e6f\",\"mode\":\"100644\",\"size\":4976},{\"sha1\":\"3dacf0841881da8fe564bc58a6c22227b7dcab71\",\"mode\":\"100644\",\"size\":1585},{\"sha1\":\"b2a3686010af53ce71da04880a704ac957c7a47e\",\"mode\":\"100644\",\"size\":3555},{\"sha1\":\"58709490fb98f037070be9387d97abbf62dcd684\",\"mode\":\"100644\",\"size\":3837},{\"sha1\":\"0da88b36af193860ba6d007c1af3ce5b589b923b\",\"mode\":\"100644\",\"size\":5243},{\"sha1\":\"2d998d3d674b172a588e54ab619854d073f555b5\",\"mode\":\"100644\",\"size\":297518},{\"sha1\":\"2e389a8727588c549c28bb277f0f573f65554850\",\"mode\":\"100644\",\"size\":645},{\"sha1\":\"ea54f6193d224e5e5732bbd4262327eb465397c2\",\"mode\":\"100644\",\"size\":99987},{\"sha1\":\"699016ddf454c2c167d9f84ae5777eccadf54728\",\"mode\":\"100644\",\"size\":21703},{\"sha1\":\"2ed9db8f21cf1c5d65f0f4fd734078cc255998e7\",\"mode\":\"100644\",\"size\":437},{\"sha1\":\"03d5f48f10bbe4eb7bd862f10c0583be2e0053c6\",\"mode\":\"100644\",\"size\":65100},{\"sha1\":\"da39a3ee5e6b4b0d3255bfef95601890afd80709\",\"mode\":\"100644\",\"size\":0},{\"sha1\":\"fe111141e88286b0e243e4cb8dc583dbad789bc7\",\"mode\":\"100644\",\"size\":282},{\"sha1\":\"38f0748e222b21ef6f9913b054c7ed1a818eb42d\",\"mode\":\"100644\",\"size\":266},{\"sha1\":\"9a29444393acc68bee96bc82adda9607dbe1d0a0\",\"mode\":\"100644\",\"size\":1593},{\"sha1\":\"cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\",\"mode\":\"100644\",\"size\":1349339},{\"sha1\":\"7c4f3c474fb2c041d8028740440937705ebb473a\",\"mode\":\"100644\",\"size\":290339},{\"sha1\":\"da76ca59f6a57ee3102f8f9bd9cee742973efa8a\",\"mode\":\"100644\",\"size\":41203},{\"sha1\":\"ffaa050dbd36b0441645598f1a7ddaf67fd5e678\",\"mode\":\"100644\",\"size\":592},{\"sha1\":\"c5eaa23f5bb1f0f4b7eb44824093874d0d9165f5\",\"mode\":\"100644\",\"size\":352776},{\"sha1\":\"47c87d1e377678c051ec1e5225333ba4d7d9d05a\",\"mode\":\"100644\",\"size\":702},{\"sha1\":\"e0f3ab697ceccda84083488dc98e638148934520\",\"mode\":\"100644\",\"size\":1081},{\"sha1\":\"72bb957e4e0a2e42056230c683238b1b783da10d\",\"mode\":\"100644\",\"size\":616},{\"sha1\":\"25a51a75bfb997b7b95d6760178ee3303863ec4b\",\"mode\":\"100644\",\"size\":591},{\"sha1\":\"b86c3da72f30bd20dd82988ab6f370c13c616022\",\"mode\":\"100644\",\"size\":10728},{\"sha1\":\"e7d522eb60e66a2d9a0aa7edfcaf8ce287f25752\",\"mode\":\"100644\",\"size\":2062},{\"sha1\":\"0546460176b54aeeca93080900aece6f7229f680\",\"mode\":\"100644\",\"size\":302},{\"sha1\":\"73b260df53aa71535bab27e4971796954958b5d5\",\"mode\":\"100644\",\"size\":1997},{\"sha1\":\"54b731178d81e66eca9623df772ff32718208137\",\"mode\":\"100644\",\"size\":1226075},{\"sha1\":\"38b942875b91697c636c94b2c846c0e074ef1a07\",\"mode\":\"100644\",\"size\":9852},{\"sha1\":\"7049e9e927d6bbeb1463e76452e290f92661ec1d\",\"mode\":\"100644\",\"size\":3116},{\"sha1\":\"07c10d545325e3a6e72e06381afe469fd40eb701\",\"mode\":\"100644\",\"size\":66519},{\"sha1\":\"4e393793c37c77e042ccc7be5a914ae39251b365\",\"mode\":\"100644\",\"size\":323848},{\"sha1\":\"fec5797a55b786184a537abd39c3fa1449d752d6\",\"mode\":\"100644\",\"size\":255485},{\"sha1\":\"c4c8204bdde87f3e93a21d741cc5358f70e57829\",\"mode\":\"100644\",\"size\":5687},{\"sha1\":\"864344400c3d4d92dfeb0a305dc87d953677c03c\",\"mode\":\"100644\",\"size\":471901},{\"sha1\":\"2e04c6c2922fbfa06b5948be14a5782db168b6ec\",\"mode\":\"100644\",\"size\":1254656},{\"sha1\":\"8b2c25bd7d759b111d0753b8dfbdecac952c495e\",\"mode\":\"100644\",\"size\":14915},{\"sha1\":\"7b962117a6f8c03809104d47533c131e3218e174\",\"mode\":\"100644\",\"size\":540},{\"sha1\":\"b874870d915adbc3dd932e19077d3d45c8e54aa0\",\"mode\":\"100644\",\"size\":930680},{\"sha1\":\"06e73803e03b47891d5aeb1f24ca2cfd3940a923\",\"mode\":\"100644\",\"size\":4684},{\"sha1\":\"cd4bb73ce7e6d08086cb9b88e6ff8734372999d3\",\"mode\":\"100644\",\"size\":4306},{\"sha1\":\"751c871527ec7ff335ffc76f2e737e297c0a8d30\",\"mode\":\"100644\",\"size\":789866},{\"sha1\":\"fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef\",\"mode\":\"100644\",\"size\":366340},{\"sha1\":\"a068327cb0a1439c99c0b36d504c488f4e80483f\",\"mode\":\"100644\",\"size\":1502},{\"sha1\":\"187248459a73eaf34e8264db20a33961e35426df\",\"mode\":\"100644\",\"size\":19737},{\"sha1\":\"3a536e1ac71b82627c3a7408eb38fa0704cb9034\",\"mode\":\"100644\",\"size\":240244},{\"sha1\":\"af324ebf4e72e10fcac6c5ac008636a4d41a5cf2\",\"mode\":\"100644\",\"size\":7336},{\"sha1\":\"ca01fb473f53dd0ee3c85663b26d5dc325602057\",\"mode\":\"100644\",\"size\":280032},{\"sha1\":\"82ec0aa4d240f7eb17788fcf6e5d32b012abebf4\",\"mode\":\"100644\",\"size\":273},{\"sha1\":\"dfe3be1a15b150f2eb7f5f27ee6645ced87d8f6e\",\"mode\":\"100644\",\"size\":5267},{\"sha1\":\"84af6fc0cb1f57fcf8fffac62c4df1b632af0efb\",\"mode\":\"100644\",\"size\":3263},{\"sha1\":\"28a84685bb9c1b63218221e60a3112b014e5eb57\",\"mode\":\"100644\",\"size\":485},{\"sha1\":\"769c0b82cb2421c8256300e907298a9410a2a3d3\",\"mode\":\"100644\",\"size\":29779},{\"sha1\":\"8313c1e792bc063978d8da9351f3b3f7e2c62d3e\",\"mode\":\"100644\",\"size\":3414},{\"sha1\":\"06564e716b89de5eaa0dd234ae7989576503ddf3\",\"mode\":\"100644\",\"size\":256776},{\"sha1\":\"243a23f8968de8754d8199d669780d683ab177bd\",\"mode\":\"100644\",\"size\":1090739},{\"sha1\":\"3789d00e859632e6c6206adc0c71625559e6e3b0\",\"mode\":\"100644\",\"size\":66469},{\"sha1\":\"242c7585b8c5007ddc8637c8e8d1eabe9b35ab42\",\"mode\":\"100644\",\"size\":1487},{\"sha1\":\"f7e631ccf49cfc0aefa4a2a728da7d374c05bd3c\",\"mode\":\"100644\",\"size\":17519},{\"sha1\":\"11d4aec9dfcec2e04622ce3078aedc68b2f98278\",\"mode\":\"100644\",\"size\":1484},{\"sha1\":\"4236051a8d209c00f85e70918d5e26d9f3e5201e\",\"mode\":\"100644\",\"size\":1133563},{\"sha1\":\"92871c480d939d240c4acac88913a383094fe1c3\",\"mode\":\"100644\",\"size\":1233},{\"sha1\":\"9dd235da986d0c06739c0e42d527343b3d8a447c\",\"mode\":\"100644\",\"size\":1102},{\"sha1\":\"f3e3392c3e8e2714fc05bbf0f3ee496ad19eedc7\",\"mode\":\"100644\",\"size\":379277},{\"sha1\":\"f5adf7ed8c34aa005b22b6a2dc7b6796e10e9c79\",\"mode\":\"100644\",\"size\":3115994},{\"sha1\":\"45a5ec14da7bc166fc73c52fd091f5a01bd66e56\",\"mode\":\"100644\",\"size\":11509},{\"sha1\":\"456895fc91bf7180b216fead220373e6278230c9\",\"mode\":\"100644\",\"size\":33395},{\"sha1\":\"df8fdb927c0e035487031c9b33e33c15b0df5f8a\",\"mode\":\"100644\",\"size\":1693},{\"sha1\":\"c1196cb3e56da83e3c3a02ef323699f4b05feedc\",\"mode\":\"100644\",\"size\":660545},{\"sha1\":\"129acd77a4b6ee30d62d3a0899b1344c8ec2bff8\",\"mode\":\"100644\",\"size\":8645},{\"sha1\":\"daa252ffd6a1f363b51de18cb0adab39711006a9\",\"mode\":\"100644\",\"size\":1953}]", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "[{\"sha1\":\"5aa239d8ad6d8130b055caebf44467b9c55d422b\",\"mode\":\"100644\",\"size\":461472},{\"sha1\":\"cb855558e6271b1b32e716d24cb85c7f583ce09e\",\"mode\":\"100644\",\"size\":93107},{\"sha1\":\"011bc4cc96b08fabad2b3186755818fa0b32d83f\",\"mode\":\"100644\",\"size\":1162436},{\"sha1\":\"9e1ac84eed220281841b75e72fb9de5a297fbf04\",\"mode\":\"100644\",\"size\":117910},{\"sha1\":\"2d998d3d674b172a588e54ab619854d073f555b5\",\"mode\":\"100644\",\"size\":297518},{\"sha1\":\"ea54f6193d224e5e5732bbd4262327eb465397c2\",\"mode\":\"100644\",\"size\":99987},{\"sha1\":\"cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\",\"mode\":\"100644\",\"size\":1349339},{\"sha1\":\"7c4f3c474fb2c041d8028740440937705ebb473a\",\"mode\":\"100644\",\"size\":290339},{\"sha1\":\"c5eaa23f5bb1f0f4b7eb44824093874d0d9165f5\",\"mode\":\"100644\",\"size\":352776},{\"sha1\":\"54b731178d81e66eca9623df772ff32718208137\",\"mode\":\"100644\",\"size\":1226075},{\"sha1\":\"07c10d545325e3a6e72e06381afe469fd40eb701\",\"mode\":\"100644\",\"size\":66519},{\"sha1\":\"4e393793c37c77e042ccc7be5a914ae39251b365\",\"mode\":\"100644\",\"size\":323848},{\"sha1\":\"fec5797a55b786184a537abd39c3fa1449d752d6\",\"mode\":\"100644\",\"size\":255485},{\"sha1\":\"864344400c3d4d92dfeb0a305dc87d953677c03c\",\"mode\":\"100644\",\"size\":471901},{\"sha1\":\"2e04c6c2922fbfa06b5948be14a5782db168b6ec\",\"mode\":\"100644\",\"size\":1254656},{\"sha1\":\"b874870d915adbc3dd932e19077d3d45c8e54aa0\",\"mode\":\"100644\",\"size\":930680},{\"sha1\":\"751c871527ec7ff335ffc76f2e737e297c0a8d30\",\"mode\":\"100644\",\"size\":789866},{\"sha1\":\"fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef\",\"mode\":\"100644\",\"size\":366340},{\"sha1\":\"3a536e1ac71b82627c3a7408eb38fa0704cb9034\",\"mode\":\"100644\",\"size\":240244},{\"sha1\":\"ca01fb473f53dd0ee3c85663b26d5dc325602057\",\"mode\":\"100644\",\"size\":280032},{\"sha1\":\"06564e716b89de5eaa0dd234ae7989576503ddf3\",\"mode\":\"100644\",\"size\":256776},{\"sha1\":\"243a23f8968de8754d8199d669780d683ab177bd\",\"mode\":\"100644\",\"size\":1090739},{\"sha1\":\"3789d00e859632e6c6206adc0c71625559e6e3b0\",\"mode\":\"100644\",\"size\":66469},{\"sha1\":\"4236051a8d209c00f85e70918d5e26d9f3e5201e\",\"mode\":\"100644\",\"size\":1133563},{\"sha1\":\"f3e3392c3e8e2714fc05bbf0f3ee496ad19eedc7\",\"mode\":\"100644\",\"size\":379277},{\"sha1\":\"f5adf7ed8c34aa005b22b6a2dc7b6796e10e9c79\",\"mode\":\"100644\",\"size\":3115994},{\"sha1\":\"c1196cb3e56da83e3c3a02ef323699f4b05feedc\",\"mode\":\"100644\",\"size\":660545}]", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:53 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "ffdbab1c-a371-4ff5-682c-ba6dbafa97ab::a203c9dc-04ce-4288-97db-e95ee3d6ba43", - "Keep-Alive" : "timeout=5, max=92", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "372f1732-7b01-4708-b4c2-d132aae01531", - "persistent" : true, - "insertionIndex" : 14 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_routes_d80f7cdd-876d-4b54-8ca4-4acdfa9247bf-bd2ca0cd-daf9-49ab-8e97-3a5c8b5e0cfd.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_routes_d80f7cdd-876d-4b54-8ca4-4acdfa9247bf-bd2ca0cd-daf9-49ab-8e97-3a5c8b5e0cfd.json deleted file mode 100644 index fac5b2e..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_routes_d80f7cdd-876d-4b54-8ca4-4acdfa9247bf-bd2ca0cd-daf9-49ab-8e97-3a5c8b5e0cfd.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "bd2ca0cd-daf9-49ab-8e97-3a5c8b5e0cfd", - "name" : "v2_routes_d80f7cdd-876d-4b54-8ca4-4acdfa9247bf", - "request" : { - "url" : "/v2/routes/d80f7cdd-876d-4b54-8ca4-4acdfa9247bf?async=true", - "method" : "DELETE" - }, - "response" : { - "status" : 202, - "body" : "{\n \"metadata\": {\n \"guid\": \"4369e78e-7c95-4822-af0f-431f70ca38d2\",\n \"created_at\": \"2018-07-19T23:30:45Z\",\n \"url\": \"/v2/jobs/4369e78e-7c95-4822-af0f-431f70ca38d2\"\n },\n \"entity\": {\n \"guid\": \"4369e78e-7c95-4822-af0f-431f70ca38d2\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "feebc93a-c391-4687-64a2-8a554c46b45e::6e44a800-a6e6-4874-860f-83bca20ccec4", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "bd2ca0cd-daf9-49ab-8e97-3a5c8b5e0cfd", - "persistent" : true, - "insertionIndex" : 38 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_shared_domains-f6f3a899-fcb7-415a-9dd4-1bc45b892c63.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_shared_domains-f6f3a899-fcb7-415a-9dd4-1bc45b892c63.json deleted file mode 100644 index 57fc6a4..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_shared_domains-f6f3a899-fcb7-415a-9dd4-1bc45b892c63.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "f6f3a899-fcb7-415a-9dd4-1bc45b892c63", - "name" : "v2_shared_domains", - "request" : { - "url" : "/v2/shared_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 2,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"created_at\": \"2018-03-28T22:15:03Z\",\n \"updated_at\": \"2018-04-13T20:33:21Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n },\n {\n \"metadata\": {\n \"guid\": \"552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"url\": \"/v2/shared_domains/552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"created_at\": \"2018-04-05T18:31:55Z\",\n \"updated_at\": \"2018-04-05T18:31:55Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "2ee9b335-8217-472b-69bf-5212abf5fb5d::80ca224e-9028-49ea-9250-cdf4b2264dd7", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "f6f3a899-fcb7-415a-9dd4-1bc45b892c63", - "persistent" : true, - "insertionIndex" : 10 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces-3ec83680-d43c-4aec-bf4d-098a136900d4.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces-3ec83680-d43c-4aec-bf4d-098a136900d4.json deleted file mode 100644 index 0aa92b5..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces-3ec83680-d43c-4aec-bf4d-098a136900d4.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "3ec83680-d43c-4aec-bf4d-098a136900d4", - "name" : "v2_spaces", - "request" : { - "url" : "/v2/spaces?q=name%3Adevelopment&q=organization_guid%3Ab3e001e9-4956-40e3-9695-79325199355f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "64326483-8121-4ff0-6b90-b1abe4049060::c0c8a224-3b1d-42a7-8089-597d709c23cc", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "3ec83680-d43c-4aec-bf4d-098a136900d4", - "persistent" : true, - "insertionIndex" : 3 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces-b6f30018-aef1-4b59-b9d7-8c1d63e4ea69.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces-b6f30018-aef1-4b59-b9d7-8c1d63e4ea69.json deleted file mode 100644 index eb735a9..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces-b6f30018-aef1-4b59-b9d7-8c1d63e4ea69.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "b6f30018-aef1-4b59-b9d7-8c1d63e4ea69", - "name" : "v2_spaces", - "request" : { - "url" : "/v2/spaces?q=name:development&q=organization_guid:b3e001e9-4956-40e3-9695-79325199355f&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "046b029c-6384-481b-784b-28333d6d2c1c::cc640d78-c147-4b5c-8309-72197593016d", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "b6f30018-aef1-4b59-b9d7-8c1d63e4ea69", - "persistent" : true, - "insertionIndex" : 7 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-ac055f97-9cf0-4821-bc88-a4710c453f50.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-ac055f97-9cf0-4821-bc88-a4710c453f50.json deleted file mode 100644 index 9115823..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-ac055f97-9cf0-4821-bc88-a4710c453f50.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "ac055f97-9cf0-4821-bc88-a4710c453f50", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "cecce2ae-6278-472d-6d74-df13c842eb24::48376e65-fce6-40d7-9030-85ead445398e", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "ac055f97-9cf0-4821-bc88-a4710c453f50", - "persistent" : true, - "insertionIndex" : 8 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-032b96b5-fdb4-433f-bd33-f342aea26cda.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-032b96b5-fdb4-433f-bd33-f342aea26cda.json deleted file mode 100644 index e93d905..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-032b96b5-fdb4-433f-bd33-f342aea26cda.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "032b96b5-fdb4-433f-bd33-f342aea26cda", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name%3Ahelloworldapp&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:49 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "ed1a2161-fab9-4939-6575-a21b97e2570b::aa68f4b1-ccdb-4a7c-a597-f99ae97e4ace", - "Keep-Alive" : "timeout=5, max=90", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "032b96b5-fdb4-433f-bd33-f342aea26cda", - "persistent" : true, - "insertionIndex" : 44 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-bdfabf30-dcd7-45c7-ac0b-8fbf3a1b4083.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-bdfabf30-dcd7-45c7-ac0b-8fbf3a1b4083.json deleted file mode 100644 index e7e69b6..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-bdfabf30-dcd7-45c7-ac0b-8fbf3a1b4083.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "bdfabf30-dcd7-45c7-ac0b-8fbf3a1b4083", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name:helloworldapp&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:27:40Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"a8ab0797-0744-4e1f-8cb1-abde36604429\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"610ebd90-fb60-47bc-8a6e-bbce8d0ef4d1\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:27:32Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "cfe2240e-942c-44cf-5d17-cd5adfedb124::22e3fc52-2951-4dde-8bbe-5d3603c12ccc", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "bdfabf30-dcd7-45c7-ac0b-8fbf3a1b4083", - "persistent" : true, - "scenarioName" : "scenario-c32f8285-5127-42dc-a9b9-6d22bb99fa9d-apps", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-c32f8285-5127-42dc-a9b9-6d22bb99fa9d-apps-2", - "insertionIndex" : 11 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-c2ce289e-bf74-40d2-a65e-a6748b6a3cb5.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-c2ce289e-bf74-40d2-a65e-a6748b6a3cb5.json deleted file mode 100644 index 14275e6..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-c2ce289e-bf74-40d2-a65e-a6748b6a3cb5.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "c2ce289e-bf74-40d2-a65e-a6748b6a3cb5", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name:helloworldapp&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:29:56Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"4689920b-c904-4b55-b7ba-5acd488c302f\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"1cb8028d-5b40-46e6-b6de-007a271ebb9b\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:29:53Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "c064c4a2-7347-49a5-74b8-401104ac793b::90b9caa7-c893-4706-8b28-9c78832cf273", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "c2ce289e-bf74-40d2-a65e-a6748b6a3cb5", - "persistent" : true, - "scenarioName" : "scenario-c32f8285-5127-42dc-a9b9-6d22bb99fa9d-apps", - "requiredScenarioState" : "scenario-c32f8285-5127-42dc-a9b9-6d22bb99fa9d-apps-2", - "newScenarioState" : "scenario-c32f8285-5127-42dc-a9b9-6d22bb99fa9d-apps-3", - "insertionIndex" : 31 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-f50dbb5e-2ed2-4ea4-a057-53c25b44511d.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-f50dbb5e-2ed2-4ea4-a057-53c25b44511d.json deleted file mode 100644 index b3b0fb1..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-f50dbb5e-2ed2-4ea4-a057-53c25b44511d.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "f50dbb5e-2ed2-4ea4-a057-53c25b44511d", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name:helloworldapp&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452\",\n \"created_at\": \"2018-07-19T23:27:31Z\",\n \"updated_at\": \"2018-07-19T23:29:56Z\"\n },\n \"entity\": {\n \"name\": \"helloworldapp\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"4689920b-c904-4b55-b7ba-5acd488c302f\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"1cb8028d-5b40-46e6-b6de-007a271ebb9b\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:29:53Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/routes\",\n \"events_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/events\",\n \"service_bindings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/e3b0c178-e270-416b-b77c-d75a875c0452/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "cd183aa0-dc61-46c7-4d9f-49b20be4a3fb::2ee7eb20-2f9f-4745-9f81-2583bad899ec", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "f50dbb5e-2ed2-4ea4-a057-53c25b44511d", - "persistent" : true, - "scenarioName" : "scenario-c32f8285-5127-42dc-a9b9-6d22bb99fa9d-apps", - "requiredScenarioState" : "scenario-c32f8285-5127-42dc-a9b9-6d22bb99fa9d-apps-3", - "insertionIndex" : 36 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_stacks_8e0c91f4-1144-41d7-828b-6da5f66cf24f-1a5f74ac-9ada-446a-8847-b2b63b9c3b2b.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_stacks_8e0c91f4-1144-41d7-828b-6da5f66cf24f-1a5f74ac-9ada-446a-8847-b2b63b9c3b2b.json deleted file mode 100644 index a4abfdf..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldDeleteAppsWhenDeleteServiceEndpointCalled/mappings/v2_stacks_8e0c91f4-1144-41d7-828b-6da5f66cf24f-1a5f74ac-9ada-446a-8847-b2b63b9c3b2b.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "1a5f74ac-9ada-446a-8847-b2b63b9c3b2b", - "name" : "v2_stacks_8e0c91f4-1144-41d7-828b-6da5f66cf24f", - "request" : { - "url" : "/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"created_at\": \"2018-03-28T22:15:03Z\",\n \"updated_at\": \"2018-03-28T22:15:03Z\"\n },\n \"entity\": {\n \"name\": \"cflinuxfs2\",\n \"description\": \"Cloud Foundry Linux-based filesystem\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:30:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "2a475dce-4c00-4046-4a91-6ad26c3f9a27::e3793561-c18d-46ba-b483-313efab7608b", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "1a5f74ac-9ada-446a-8847-b2b63b9c3b2b", - "persistent" : true, - "insertionIndex" : 35 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/-41ec21bc-4e3c-4dea-adb8-4722257d5223.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/-41ec21bc-4e3c-4dea-adb8-4722257d5223.json deleted file mode 100644 index 78f2db2..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/-41ec21bc-4e3c-4dea-adb8-4722257d5223.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "41ec21bc-4e3c-4dea-adb8-4722257d5223", - "name" : "", - "request" : { - "url" : "/", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"links\": {\n \"self\": {\n \"href\": \"http://localhost\"\n },\n \"cloud_controller_v2\": {\n \"href\": \"http://localhost\",\n \"meta\": {\n \"version\": \"2.103.0\"\n }\n },\n \"cloud_controller_v3\": {\n \"href\": \"http://localhost\",\n \"meta\": {\n \"version\": \"3.38.0\"\n }\n },\n \"network_policy_v0\": {\n \"href\": \"http://localhost\"\n },\n \"network_policy_v1\": {\n \"href\": \"http://localhost\"\n },\n \"uaa\": {\n \"href\": \"http://localhost\"\n },\n \"credhub\": null,\n \"routing\": {\n \"href\": \"http://localhost\"\n },\n \"logging\": {\n \"href\": \"wss://localhost\"\n },\n \"app_ssh\": {\n \"href\": \"localhost\",\n \"meta\": {\n \"host_key_fingerprint\": \"8c:db:69:39:90:e1:93:6a:f8:56:e9:a7:68:fc:52:d2\",\n \"oauth_client\": \"ssh-proxy\"\n }\n }\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:25 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "9f2c8079-5cb5-4752-7f10-f866b42cdd5e::5f1847dd-cf4a-43d9-bfaa-38585827b89e", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "41ec21bc-4e3c-4dea-adb8-4722257d5223", - "persistent" : true, - "insertionIndex" : 4 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps-5e6bc53f-6e69-46ed-b224-1a5c8f555b9d.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps-5e6bc53f-6e69-46ed-b224-1a5c8f555b9d.json deleted file mode 100644 index 1d02a56..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps-5e6bc53f-6e69-46ed-b224-1a5c8f555b9d.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "id" : "5e6bc53f-6e69-46ed-b224-1a5c8f555b9d", - "name" : "v2_apps", - "request" : { - "url" : "/v2/apps", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"buildpack\":\"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\"disk_quota\":1024,\"environment_json\":{\"SPRING_APPLICATION_INDEX\":\"${vcap.application.instance_index}\",\"SPRING_CLOUD_APPLICATION_GUID\":\"${vcap.application.name}:${vcap.application.instance_index}\",\"SPRING_APPLICATION_JSON\":\"{}\"},\"health_check_http_endpoint\":\"/health\",\"health_check_timeout\":120,\"health_check_type\":\"port\",\"instances\":1,\"memory\":1024,\"name\":\"first-app\",\"space_guid\":\"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:26Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STOPPED\",\n \"version\": \"60d9f82f-9350-4687-9455-696e05154185\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": null,\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": null,\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:26 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "Location" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "e92a741c-dc02-48f2-5522-b6a472d56bab::a4e3f0cd-d47d-4ec7-981a-9bca592eb083", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "5e6bc53f-6e69-46ed-b224-1a5c8f555b9d", - "persistent" : true, - "insertionIndex" : 12 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-15d2f857-3f1b-4b48-b80d-066a102e5556.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-15d2f857-3f1b-4b48-b80d-066a102e5556.json deleted file mode 100644 index a5841aa..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-15d2f857-3f1b-4b48-b80d-066a102e5556.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "15d2f857-3f1b-4b48-b80d-066a102e5556", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:40:39Z\"\n },\n \"entity\": {\n \"name\": \"second-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1652ee5b-680e-403c-a44b-04dc5c928f41\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"05cbf15b-f855-48df-ad98-b37546895326\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:40:32Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes\",\n \"events_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/events\",\n \"service_bindings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:41:09 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "3e9da550-32be-4868-612c-a94cc588fb52::95558b0e-5e73-4d87-8198-a92288c10009", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "15d2f857-3f1b-4b48-b80d-066a102e5556", - "persistent" : true, - "scenarioName" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f", - "requiredScenarioState" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f-6", - "newScenarioState" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f-7", - "insertionIndex" : 53 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-238c2d2a-2ac7-4794-ad9a-2ef0cbfea2f5.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-238c2d2a-2ac7-4794-ad9a-2ef0cbfea2f5.json deleted file mode 100644 index 02f6373..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-238c2d2a-2ac7-4794-ad9a-2ef0cbfea2f5.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "238c2d2a-2ac7-4794-ad9a-2ef0cbfea2f5", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:40:39Z\"\n },\n \"entity\": {\n \"name\": \"second-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1652ee5b-680e-403c-a44b-04dc5c928f41\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"05cbf15b-f855-48df-ad98-b37546895326\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:40:32Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes\",\n \"events_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/events\",\n \"service_bindings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:54 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "c4023431-761c-4495-43c0-96fb97e76ed3::c74cafd4-5466-4b4e-b198-b4f6aa0c7dfb", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "238c2d2a-2ac7-4794-ad9a-2ef0cbfea2f5", - "persistent" : true, - "scenarioName" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f", - "requiredScenarioState" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f-5", - "newScenarioState" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f-6", - "insertionIndex" : 52 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-26123ec5-63d1-4c59-a09a-0393246354be.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-26123ec5-63d1-4c59-a09a-0393246354be.json deleted file mode 100644 index fea737b..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-26123ec5-63d1-4c59-a09a-0393246354be.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "26123ec5-63d1-4c59-a09a-0393246354be", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"state\":\"STOPPED\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:40:39Z\"\n },\n \"entity\": {\n \"name\": \"second-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STOPPED\",\n \"version\": \"332a43ef-5d5d-4873-8d4c-833272d4f595\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"fe0efc19-2829-4925-b84b-b5747648c5e1\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:40:32Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes\",\n \"events_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/events\",\n \"service_bindings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:39 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "3f8dcc13-a2ea-47ce-57e2-09cb7d89cc8c::0565ee1f-c260-4348-b3df-554ba025aaf9", - "Keep-Alive" : "timeout=5, max=90", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "26123ec5-63d1-4c59-a09a-0393246354be", - "persistent" : true, - "insertionIndex" : 46 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-61fbca6a-0f03-493d-b084-52e5aad3e721.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-61fbca6a-0f03-493d-b084-52e5aad3e721.json deleted file mode 100644 index 2d96bb6..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-61fbca6a-0f03-493d-b084-52e5aad3e721.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "61fbca6a-0f03-493d-b084-52e5aad3e721", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:40:39Z\"\n },\n \"entity\": {\n \"name\": \"second-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1652ee5b-680e-403c-a44b-04dc5c928f41\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"05cbf15b-f855-48df-ad98-b37546895326\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:40:32Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes\",\n \"events_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/events\",\n \"service_bindings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:40 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "172f1e1c-dda4-4cc9-531c-ffbe5d16c50d::a4b3474a-3f07-43a0-a684-6b593320f3e0", - "Keep-Alive" : "timeout=5, max=87", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "61fbca6a-0f03-493d-b084-52e5aad3e721", - "persistent" : true, - "scenarioName" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f", - "requiredScenarioState" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f-2", - "newScenarioState" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f-3", - "insertionIndex" : 49 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-77a0e984-7406-4b02-b46e-2b8170bb30e0.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-77a0e984-7406-4b02-b46e-2b8170bb30e0.json deleted file mode 100644 index edaf84d..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-77a0e984-7406-4b02-b46e-2b8170bb30e0.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "77a0e984-7406-4b02-b46e-2b8170bb30e0", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:40:39Z\"\n },\n \"entity\": {\n \"name\": \"second-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1652ee5b-680e-403c-a44b-04dc5c928f41\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"05cbf15b-f855-48df-ad98-b37546895326\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:40:32Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes\",\n \"events_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/events\",\n \"service_bindings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:42 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "a717a60f-d852-4f22-6ccc-068a5611ffd1::b3866d7a-7587-4c05-a6d6-e8b96625122b", - "Keep-Alive" : "timeout=5, max=86", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "77a0e984-7406-4b02-b46e-2b8170bb30e0", - "persistent" : true, - "scenarioName" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f", - "requiredScenarioState" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f-3", - "newScenarioState" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f-4", - "insertionIndex" : 50 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-8284c593-94ec-4030-b64b-3f79977ec28d.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-8284c593-94ec-4030-b64b-3f79977ec28d.json deleted file mode 100644 index 18161d0..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-8284c593-94ec-4030-b64b-3f79977ec28d.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "8284c593-94ec-4030-b64b-3f79977ec28d", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:40:39Z\"\n },\n \"entity\": {\n \"name\": \"second-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1652ee5b-680e-403c-a44b-04dc5c928f41\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"05cbf15b-f855-48df-ad98-b37546895326\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:40:32Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes\",\n \"events_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/events\",\n \"service_bindings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:46 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "dbe3bd54-d538-43f6-59e6-40acef8a0774::4c279bef-707d-4d65-a90c-2470860a7186", - "Keep-Alive" : "timeout=5, max=85", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "8284c593-94ec-4030-b64b-3f79977ec28d", - "persistent" : true, - "scenarioName" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f", - "requiredScenarioState" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f-4", - "newScenarioState" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f-5", - "insertionIndex" : 51 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-952fea1e-5563-48b2-8e76-d7adc3ae3646.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-952fea1e-5563-48b2-8e76-d7adc3ae3646.json deleted file mode 100644 index 3c2340a..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-952fea1e-5563-48b2-8e76-d7adc3ae3646.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "952fea1e-5563-48b2-8e76-d7adc3ae3646", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"buildpack\":\"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\"disk_quota\":1024,\"environment_json\":{\"SPRING_APPLICATION_INDEX\":\"${vcap.application.instance_index}\",\"SPRING_APPLICATION_JSON\":\"{}\",\"SPRING_CLOUD_APPLICATION_GUID\":\"${vcap.application.name}:${vcap.application.instance_index}\"},\"health_check_http_endpoint\":\"/health\",\"health_check_timeout\":120,\"health_check_type\":\"port\",\"instances\":1,\"memory\":1024,\"name\":\"second-app\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:40:31Z\"\n },\n \"entity\": {\n \"name\": \"second-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"332a43ef-5d5d-4873-8d4c-833272d4f595\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"fe0efc19-2829-4925-b84b-b5747648c5e1\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:37:21Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes\",\n \"events_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/events\",\n \"service_bindings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:31 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "9faab0c9-a2d0-4c6f-6041-6df8a9459e21::fcc5c1ec-4419-4c59-8d81-87d88cec52d3", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "952fea1e-5563-48b2-8e76-d7adc3ae3646", - "persistent" : true, - "insertionIndex" : 38 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-b0e8c432-224c-44dc-b100-aa4eebd56b8b.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-b0e8c432-224c-44dc-b100-aa4eebd56b8b.json deleted file mode 100644 index bd92b1e..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-b0e8c432-224c-44dc-b100-aa4eebd56b8b.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "b0e8c432-224c-44dc-b100-aa4eebd56b8b", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:40:39Z\"\n },\n \"entity\": {\n \"name\": \"second-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1652ee5b-680e-403c-a44b-04dc5c928f41\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"05cbf15b-f855-48df-ad98-b37546895326\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:40:32Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes\",\n \"events_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/events\",\n \"service_bindings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:41:25 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "b83e2ba2-eb89-4521-778c-9e9a5f4526d4::d641d9f0-394f-4128-a422-0d03a91292e8", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "b0e8c432-224c-44dc-b100-aa4eebd56b8b", - "persistent" : true, - "scenarioName" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f", - "requiredScenarioState" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f-7", - "insertionIndex" : 54 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-f8b089db-c2af-4157-9180-69b990b24efb.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-f8b089db-c2af-4157-9180-69b990b24efb.json deleted file mode 100644 index 7f88093..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-f8b089db-c2af-4157-9180-69b990b24efb.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "f8b089db-c2af-4157-9180-69b990b24efb", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"state\":\"STARTED\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:40:39Z\"\n },\n \"entity\": {\n \"name\": \"second-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1652ee5b-680e-403c-a44b-04dc5c928f41\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"05cbf15b-f855-48df-ad98-b37546895326\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:40:32Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes\",\n \"events_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/events\",\n \"service_bindings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:39 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "16e65f1a-7105-4f75-5a14-45f37e0cd759::50aab121-c6f1-4889-a8af-65a8b2348150", - "Keep-Alive" : "timeout=5, max=89", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "f8b089db-c2af-4157-9180-69b990b24efb", - "persistent" : true, - "insertionIndex" : 47 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-fe922015-fe79-4cfb-a107-e3bc43ce394f.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-fe922015-fe79-4cfb-a107-e3bc43ce394f.json deleted file mode 100644 index b341f67..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f-fe922015-fe79-4cfb-a107-e3bc43ce394f.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "fe922015-fe79-4cfb-a107-e3bc43ce394f", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:40:39Z\"\n },\n \"entity\": {\n \"name\": \"second-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1652ee5b-680e-403c-a44b-04dc5c928f41\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"05cbf15b-f855-48df-ad98-b37546895326\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:40:32Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes\",\n \"events_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/events\",\n \"service_bindings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:39 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "d139ae15-e708-4706-5c8c-05c896edf485::4977364d-60ce-48d2-b50d-7aec44637e2d", - "Keep-Alive" : "timeout=5, max=88", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "fe922015-fe79-4cfb-a107-e3bc43ce394f", - "persistent" : true, - "scenarioName" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-apps-36628f49-84b2-4323-98ca-20205ee3ef1f-2", - "insertionIndex" : 48 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_bits-e86f2dce-a352-4295-9f61-fb0251b21d6f.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_bits-e86f2dce-a352-4295-9f61-fb0251b21d6f.json deleted file mode 100644 index 6d4bd78..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_bits-e86f2dce-a352-4295-9f61-fb0251b21d6f.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "e86f2dce-a352-4295-9f61-fb0251b21d6f", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_bits", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/bits?async=true", - "method" : "PUT", - "bodyPatterns" : [ { - "anything" : "anything" - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"75b79221-e09c-4849-a99d-56e27009e94f\",\n \"created_at\": \"2018-07-20T18:40:32Z\",\n \"url\": \"/v2/jobs/75b79221-e09c-4849-a99d-56e27009e94f\"\n },\n \"entity\": {\n \"guid\": \"75b79221-e09c-4849-a99d-56e27009e94f\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:32 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "7764108d-0688-41a5-5517-8bfbdfdade7e::4ace9c5a-f71b-4c52-be7c-5b58ca9a9179", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "e86f2dce-a352-4295-9f61-fb0251b21d6f", - "persistent" : true, - "insertionIndex" : 41 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances-3d5cd12f-9813-4150-8f58-084e9d6b735b.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances-3d5cd12f-9813-4150-8f58-084e9d6b735b.json deleted file mode 100644 index 42363d8..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances-3d5cd12f-9813-4150-8f58-084e9d6b735b.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "3d5cd12f-9813-4150-8f58-084e9d6b735b", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"RUNNING\",\"uptime\":1,\"since\":1532112090}}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:41:32 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "daa23a97-5f6e-4ee6-6e74-fa2c51c475cf::a719e393-4266-4743-90a4-2513f2e3cfb7", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "3d5cd12f-9813-4150-8f58-084e9d6b735b", - "persistent" : true, - "scenarioName" : "scenario-36628f49-84b2-4323-98ca-20205ee3ef1f-instances", - "requiredScenarioState" : "scenario-36628f49-84b2-4323-98ca-20205ee3ef1f-instances-4", - "insertionIndex" : 58 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances-631d0ab9-809d-42ef-8c9e-adf357819339.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances-631d0ab9-809d-42ef-8c9e-adf357819339.json deleted file mode 100644 index 2b9489c..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances-631d0ab9-809d-42ef-8c9e-adf357819339.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "631d0ab9-809d-42ef-8c9e-adf357819339", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"STARTING\",\"uptime\":7,\"since\":1532112078}}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:41:26 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "7afb2511-38b6-4979-54a2-22acaf8e39d1::feea400f-3d07-46ab-bef5-40a939630727", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "631d0ab9-809d-42ef-8c9e-adf357819339", - "persistent" : true, - "scenarioName" : "scenario-36628f49-84b2-4323-98ca-20205ee3ef1f-instances", - "requiredScenarioState" : "scenario-36628f49-84b2-4323-98ca-20205ee3ef1f-instances-2", - "newScenarioState" : "scenario-36628f49-84b2-4323-98ca-20205ee3ef1f-instances-3", - "insertionIndex" : 56 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances-84e4288a-6448-40dd-87c8-6ea5dc85acf5.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances-84e4288a-6448-40dd-87c8-6ea5dc85acf5.json deleted file mode 100644 index 3995b82..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances-84e4288a-6448-40dd-87c8-6ea5dc85acf5.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "84e4288a-6448-40dd-87c8-6ea5dc85acf5", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"STARTING\",\"uptime\":9,\"since\":1532112078}}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:41:28 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "fe9f97ad-2ab4-4540-64ee-397076ff09c0::b7caba80-f0ed-4850-8eca-2cce23857577", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "84e4288a-6448-40dd-87c8-6ea5dc85acf5", - "persistent" : true, - "scenarioName" : "scenario-36628f49-84b2-4323-98ca-20205ee3ef1f-instances", - "requiredScenarioState" : "scenario-36628f49-84b2-4323-98ca-20205ee3ef1f-instances-3", - "newScenarioState" : "scenario-36628f49-84b2-4323-98ca-20205ee3ef1f-instances-4", - "insertionIndex" : 57 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances-f7bf7fb9-445f-4995-a0f5-d2c55eaf3f78.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances-f7bf7fb9-445f-4995-a0f5-d2c55eaf3f78.json deleted file mode 100644 index 4384d6f..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances-f7bf7fb9-445f-4995-a0f5-d2c55eaf3f78.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "f7bf7fb9-445f-4995-a0f5-d2c55eaf3f78", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_instances", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"STARTING\",\"uptime\":6,\"since\":1532112078}}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:41:25 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "71d79aad-dd0e-4b0e-53f3-c508261e4717::0a66b778-1f7e-47a0-bcb3-af95c4b25587", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "f7bf7fb9-445f-4995-a0f5-d2c55eaf3f78", - "persistent" : true, - "scenarioName" : "scenario-36628f49-84b2-4323-98ca-20205ee3ef1f-instances", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-36628f49-84b2-4323-98ca-20205ee3ef1f-instances-2", - "insertionIndex" : 55 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_routes-9ed1096b-7aa8-4905-ac59-a4377ba162b5.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_routes-9ed1096b-7aa8-4905-ac59-a4377ba162b5.json deleted file mode 100644 index ee6b327..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_routes-9ed1096b-7aa8-4905-ac59-a4377ba162b5.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "9ed1096b-7aa8-4905-ac59-a4377ba162b5", - "name" : "v2_apps_36628f49-84b2-4323-98ca-20205ee3ef1f_routes", - "request" : { - "url" : "/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"328d4251-5d59-4389-9b0e-b9d5d4f90047\",\n \"url\": \"/v2/routes/328d4251-5d59-4389-9b0e-b9d5d4f90047\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:37:20Z\"\n },\n \"entity\": {\n \"host\": \"second-app\",\n \"path\": \"\",\n \"domain_guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"service_instance_guid\": null,\n \"port\": null,\n \"domain_url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"apps_url\": \"/v2/routes/328d4251-5d59-4389-9b0e-b9d5d4f90047/apps\",\n \"route_mappings_url\": \"/v2/routes/328d4251-5d59-4389-9b0e-b9d5d4f90047/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:31 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "baa50585-7bf9-4988-5e85-b8dcb7427659::a6cd3707-df81-44e7-8f56-3d59386d1a9f", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "9ed1096b-7aa8-4905-ac59-a4377ba162b5", - "persistent" : true, - "insertionIndex" : 39 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-0992ece6-6d8d-4f6d-93da-ce024e4e68b5.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-0992ece6-6d8d-4f6d-93da-ce024e4e68b5.json deleted file mode 100644 index a07c9ba..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-0992ece6-6d8d-4f6d-93da-ce024e4e68b5.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "0992ece6-6d8d-4f6d-93da-ce024e4e68b5", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:30Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"05833bef-5aea-425f-98e8-7ea3a598fe8e\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:39:27Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:34 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "e60ef6f5-cc02-44a1-6087-577c23002946::19e39bd3-f910-491d-9500-f51e2278e10f", - "Keep-Alive" : "timeout=5, max=83", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "0992ece6-6d8d-4f6d-93da-ce024e4e68b5", - "persistent" : true, - "scenarioName" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401", - "requiredScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-3", - "newScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-4", - "insertionIndex" : 27 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-129bb1af-509f-4617-bef8-f401e0163cf4.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-129bb1af-509f-4617-bef8-f401e0163cf4.json deleted file mode 100644 index c56e8ad..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-129bb1af-509f-4617-bef8-f401e0163cf4.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "129bb1af-509f-4617-bef8-f401e0163cf4", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:30Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"05833bef-5aea-425f-98e8-7ea3a598fe8e\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:39:27Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:38 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "3b01ec70-5d22-4bc5-69d1-6c8ba7ea9729::3058a0d6-70b8-4123-ba92-91cbd924fdfe", - "Keep-Alive" : "timeout=5, max=82", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "129bb1af-509f-4617-bef8-f401e0163cf4", - "persistent" : true, - "scenarioName" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401", - "requiredScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-4", - "newScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-5", - "insertionIndex" : 28 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-1c3ba914-e813-497b-9f18-4bbe2b03e561.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-1c3ba914-e813-497b-9f18-4bbe2b03e561.json deleted file mode 100644 index b1993f2..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-1c3ba914-e813-497b-9f18-4bbe2b03e561.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "1c3ba914-e813-497b-9f18-4bbe2b03e561", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"state\":\"STARTED\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:30Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"05833bef-5aea-425f-98e8-7ea3a598fe8e\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:39:27Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:30 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "4a3e20e1-a736-40d9-6fef-61ae19916b3a::be839f25-8d2a-41bb-9987-c60e8d5f10c7", - "Keep-Alive" : "timeout=5, max=86", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "1c3ba914-e813-497b-9f18-4bbe2b03e561", - "persistent" : true, - "insertionIndex" : 24 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-8debaf84-2089-4a32-b788-d60ba0f2d266.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-8debaf84-2089-4a32-b788-d60ba0f2d266.json deleted file mode 100644 index ce318ba..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-8debaf84-2089-4a32-b788-d60ba0f2d266.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "8debaf84-2089-4a32-b788-d60ba0f2d266", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:30Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"05833bef-5aea-425f-98e8-7ea3a598fe8e\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:39:27Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:46 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "d2534c39-3fa2-452f-5b95-06cb44fb1f8d::0e8c5ba4-29e1-41bf-b8c7-df423b6ee1e7", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "8debaf84-2089-4a32-b788-d60ba0f2d266", - "persistent" : true, - "scenarioName" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401", - "requiredScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-5", - "newScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-6", - "insertionIndex" : 29 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-a5dfbe39-20bc-473b-8b50-1385877d08bd.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-a5dfbe39-20bc-473b-8b50-1385877d08bd.json deleted file mode 100644 index 49a7313..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-a5dfbe39-20bc-473b-8b50-1385877d08bd.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "a5dfbe39-20bc-473b-8b50-1385877d08bd", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:30Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"05833bef-5aea-425f-98e8-7ea3a598fe8e\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:39:27Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:31 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "50ffa41f-0260-4a67-5945-d9b9dcf1fdc1::a262319b-4a1a-4abf-9d9a-5f3dc76b6fe5", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "a5dfbe39-20bc-473b-8b50-1385877d08bd", - "persistent" : true, - "scenarioName" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401", - "requiredScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-8", - "insertionIndex" : 32 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-a702e410-93eb-4582-ae8d-1d251992ae62.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-a702e410-93eb-4582-ae8d-1d251992ae62.json deleted file mode 100644 index 46b304a..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-a702e410-93eb-4582-ae8d-1d251992ae62.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "a702e410-93eb-4582-ae8d-1d251992ae62", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:30Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"05833bef-5aea-425f-98e8-7ea3a598fe8e\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:39:27Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:01 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "0bc68576-adfc-4f22-64d8-0e692d84571b::61bf841e-3bbf-437f-ae56-235f1924dd9c", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "a702e410-93eb-4582-ae8d-1d251992ae62", - "persistent" : true, - "scenarioName" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401", - "requiredScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-6", - "newScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-7", - "insertionIndex" : 30 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-b41cdd0f-cbea-40b2-b8f6-cb569c12a7e5.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-b41cdd0f-cbea-40b2-b8f6-cb569c12a7e5.json deleted file mode 100644 index 1ab2c8b..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-b41cdd0f-cbea-40b2-b8f6-cb569c12a7e5.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "b41cdd0f-cbea-40b2-b8f6-cb569c12a7e5", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:30Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"05833bef-5aea-425f-98e8-7ea3a598fe8e\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:39:27Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:30 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "70c7cc04-8e36-4485-52d2-ce1ee3490b40::82ca63bf-a28f-4188-acb1-3c36a9aa3790", - "Keep-Alive" : "timeout=5, max=85", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "b41cdd0f-cbea-40b2-b8f6-cb569c12a7e5", - "persistent" : true, - "scenarioName" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-2", - "insertionIndex" : 25 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-ba575403-3305-4cf8-80a6-393b68ee7536.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-ba575403-3305-4cf8-80a6-393b68ee7536.json deleted file mode 100644 index 94b85a6..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-ba575403-3305-4cf8-80a6-393b68ee7536.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "ba575403-3305-4cf8-80a6-393b68ee7536", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"state\":\"STOPPED\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:30Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STOPPED\",\n \"version\": \"60d9f82f-9350-4687-9455-696e05154185\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": null,\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:39:27Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:30 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "9a0ccc85-3583-4d13-55d9-3358ef553999::e6fc0a0c-6d45-4b0f-9fbb-8114a5e063e0", - "Keep-Alive" : "timeout=5, max=87", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "ba575403-3305-4cf8-80a6-393b68ee7536", - "persistent" : true, - "insertionIndex" : 23 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-ca00c723-cd55-4f2e-9fd5-044c98660150.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-ca00c723-cd55-4f2e-9fd5-044c98660150.json deleted file mode 100644 index 3d70cb5..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-ca00c723-cd55-4f2e-9fd5-044c98660150.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "ca00c723-cd55-4f2e-9fd5-044c98660150", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:30Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"05833bef-5aea-425f-98e8-7ea3a598fe8e\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:39:27Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:16 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "e8990ecf-bc27-4a5d-493b-a938f87e3067::86319216-fd8b-401c-a59c-34f560b60e73", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "ca00c723-cd55-4f2e-9fd5-044c98660150", - "persistent" : true, - "scenarioName" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401", - "requiredScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-7", - "newScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-8", - "insertionIndex" : 31 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-d7f6b240-6681-4e3b-bd14-87e276261afc.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-d7f6b240-6681-4e3b-bd14-87e276261afc.json deleted file mode 100644 index 04a6420..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401-d7f6b240-6681-4e3b-bd14-87e276261afc.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "d7f6b240-6681-4e3b-bd14-87e276261afc", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:30Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"05833bef-5aea-425f-98e8-7ea3a598fe8e\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:39:27Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:32 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "ace43562-672f-41e7-7d34-dec1200fbcb8::be16337f-2108-49a5-9011-bb037a0418c2", - "Keep-Alive" : "timeout=5, max=84", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "d7f6b240-6681-4e3b-bd14-87e276261afc", - "persistent" : true, - "scenarioName" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401", - "requiredScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-2", - "newScenarioState" : "scenario-apps-cae5e4ca-d856-4473-80fd-6f58f9099401-3", - "insertionIndex" : 26 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_bits-9073bd4b-dd88-46b8-b20c-9048fc446be2.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_bits-9073bd4b-dd88-46b8-b20c-9048fc446be2.json deleted file mode 100644 index a947121..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_bits-9073bd4b-dd88-46b8-b20c-9048fc446be2.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "9073bd4b-dd88-46b8-b20c-9048fc446be2", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_bits", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/bits?async=true", - "method" : "PUT", - "bodyPatterns" : [ { - "anything" : "anything" - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"edcd7839-4959-493a-a35a-39ff376e8af9\",\n \"created_at\": \"2018-07-20T18:39:27Z\",\n \"url\": \"/v2/jobs/edcd7839-4959-493a-a35a-39ff376e8af9\"\n },\n \"entity\": {\n \"guid\": \"edcd7839-4959-493a-a35a-39ff376e8af9\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:27 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "b7c5a5a2-e37b-4235-42db-3ecf8c16d32b::2c0d3931-b853-4e80-9a86-dc91a8c9982a", - "Keep-Alive" : "timeout=5, max=91", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "9073bd4b-dd88-46b8-b20c-9048fc446be2", - "persistent" : true, - "insertionIndex" : 19 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_instances-c5c94532-fdb1-40f1-a4da-f97093414c12.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_instances-c5c94532-fdb1-40f1-a4da-f97093414c12.json deleted file mode 100644 index ec25059..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_instances-c5c94532-fdb1-40f1-a4da-f97093414c12.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "c5c94532-fdb1-40f1-a4da-f97093414c12", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_instances", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"RUNNING\",\"uptime\":3,\"since\":1532112027}}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:31 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "c0fd0ab3-868c-430b-6dea-7dcf9877dccd::2c7406b6-9dfc-4c4e-91bd-b531d326e30c", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "c5c94532-fdb1-40f1-a4da-f97093414c12", - "persistent" : true, - "insertionIndex" : 33 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_routes-28af31c6-e362-4fd5-95f1-ada3dd342c13.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_routes-28af31c6-e362-4fd5-95f1-ada3dd342c13.json deleted file mode 100644 index 4b97cfd..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_routes-28af31c6-e362-4fd5-95f1-ada3dd342c13.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "28af31c6-e362-4fd5-95f1-ada3dd342c13", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_routes", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:26 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "402d055a-3caf-4768-44c6-5de1f64cc2cb::393e1b0c-cc08-43ca-a134-aaec7385476e", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "28af31c6-e362-4fd5-95f1-ada3dd342c13", - "persistent" : true, - "insertionIndex" : 13 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_routes_a05c44e1-5c73-4535-a8d0-3dfc9dcf8b36-f57a60c7-f862-4fdf-bc44-601e06f1958e.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_routes_a05c44e1-5c73-4535-a8d0-3dfc9dcf8b36-f57a60c7-f862-4fdf-bc44-601e06f1958e.json deleted file mode 100644 index fcb9cc5..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_routes_a05c44e1-5c73-4535-a8d0-3dfc9dcf8b36-f57a60c7-f862-4fdf-bc44-601e06f1958e.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "f57a60c7-f862-4fdf-bc44-601e06f1958e", - "name" : "v2_apps_cae5e4ca-d856-4473-80fd-6f58f9099401_routes_a05c44e1-5c73-4535-a8d0-3dfc9dcf8b36", - "request" : { - "url" : "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes/a05c44e1-5c73-4535-a8d0-3dfc9dcf8b36", - "method" : "PUT" - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:26Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STOPPED\",\n \"version\": \"60d9f82f-9350-4687-9455-696e05154185\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": null,\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": null,\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:26 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "8f54e895-0056-468a-474a-4b398f3e1a7f::093d7c0a-1f13-4dd1-aa05-991a90c6635e", - "Keep-Alive" : "timeout=5, max=92", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "f57a60c7-f862-4fdf-bc44-601e06f1958e", - "persistent" : true, - "insertionIndex" : 18 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_info-5013f012-32e6-4533-87b1-d9433d3eb750.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_info-5013f012-32e6-4533-87b1-d9433d3eb750.json deleted file mode 100644 index 8f4cdda..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_info-5013f012-32e6-4533-87b1-d9433d3eb750.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "5013f012-32e6-4533-87b1-d9433d3eb750", - "name" : "v2_info", - "request" : { - "url" : "/v2/info", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"name\":\"\",\"build\":\"\",\"support\":\"https://support.pivotal.io\",\"version\":0,\"description\":\"\",\"authorization_endpoint\":\"http://localhost\"}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:25 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "6a18f0d9-0761-4fe5-532a-8e1341158d94::179f7ccd-410a-49c0-8b4a-a5d8dcab900b", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "5013f012-32e6-4533-87b1-d9433d3eb750", - "persistent" : true, - "insertionIndex" : 5 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f-77d221b0-c09b-4132-b3f2-7b7d08ad5083.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f-77d221b0-c09b-4132-b3f2-7b7d08ad5083.json deleted file mode 100644 index 7cba422..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f-77d221b0-c09b-4132-b3f2-7b7d08ad5083.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "77d221b0-c09b-4132-b3f2-7b7d08ad5083", - "name" : "v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f", - "request" : { - "url" : "/v2/jobs/75b79221-e09c-4849-a99d-56e27009e94f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"0\",\n \"created_at\": \"1970-01-01T00:00:00Z\",\n \"url\": \"/v2/jobs/0\"\n },\n \"entity\": {\n \"guid\": \"0\",\n \"status\": \"finished\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:39 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "75da7b58-09fe-42f6-61d7-4f6b2624d65b::9e249d15-d894-439e-9835-f9677124bcc9", - "Keep-Alive" : "timeout=5, max=91", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "77d221b0-c09b-4132-b3f2-7b7d08ad5083", - "persistent" : true, - "scenarioName" : "scenario-jobs-75b79221-e09c-4849-a99d-56e27009e94f", - "requiredScenarioState" : "scenario-jobs-75b79221-e09c-4849-a99d-56e27009e94f-4", - "insertionIndex" : 45 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f-94a6725d-3acb-4a83-bf78-43c32978e596.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f-94a6725d-3acb-4a83-bf78-43c32978e596.json deleted file mode 100644 index eb268d3..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f-94a6725d-3acb-4a83-bf78-43c32978e596.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "94a6725d-3acb-4a83-bf78-43c32978e596", - "name" : "v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f", - "request" : { - "url" : "/v2/jobs/75b79221-e09c-4849-a99d-56e27009e94f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"75b79221-e09c-4849-a99d-56e27009e94f\",\n \"created_at\": \"2018-07-20T18:40:32Z\",\n \"url\": \"/v2/jobs/75b79221-e09c-4849-a99d-56e27009e94f\"\n },\n \"entity\": {\n \"guid\": \"75b79221-e09c-4849-a99d-56e27009e94f\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:32 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "97c57495-394c-4f52-6e18-5186e5104e9b::c01aa3b4-eafe-4c60-91eb-310a9a3532cd", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "94a6725d-3acb-4a83-bf78-43c32978e596", - "persistent" : true, - "scenarioName" : "scenario-jobs-75b79221-e09c-4849-a99d-56e27009e94f", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-jobs-75b79221-e09c-4849-a99d-56e27009e94f-2", - "insertionIndex" : 42 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f-a57eda3b-7809-46dc-a0a4-ff68b7e034c3.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f-a57eda3b-7809-46dc-a0a4-ff68b7e034c3.json deleted file mode 100644 index 51d7ed8..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f-a57eda3b-7809-46dc-a0a4-ff68b7e034c3.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "a57eda3b-7809-46dc-a0a4-ff68b7e034c3", - "name" : "v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f", - "request" : { - "url" : "/v2/jobs/75b79221-e09c-4849-a99d-56e27009e94f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"75b79221-e09c-4849-a99d-56e27009e94f\",\n \"created_at\": \"2018-07-20T18:40:32Z\",\n \"url\": \"/v2/jobs/75b79221-e09c-4849-a99d-56e27009e94f\"\n },\n \"entity\": {\n \"guid\": \"75b79221-e09c-4849-a99d-56e27009e94f\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:33 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "8fdeac0a-6f7b-4516-47f7-a58d50e627b0::d5b3d287-f562-4847-a217-f708d26172cd", - "Keep-Alive" : "timeout=5, max=93", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "a57eda3b-7809-46dc-a0a4-ff68b7e034c3", - "persistent" : true, - "scenarioName" : "scenario-jobs-75b79221-e09c-4849-a99d-56e27009e94f", - "requiredScenarioState" : "scenario-jobs-75b79221-e09c-4849-a99d-56e27009e94f-2", - "newScenarioState" : "scenario-jobs-75b79221-e09c-4849-a99d-56e27009e94f-3", - "insertionIndex" : 43 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f-f1001e42-9734-4b43-9268-b6c932d852a3.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f-f1001e42-9734-4b43-9268-b6c932d852a3.json deleted file mode 100644 index 139da6f..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f-f1001e42-9734-4b43-9268-b6c932d852a3.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "f1001e42-9734-4b43-9268-b6c932d852a3", - "name" : "v2_jobs_75b79221-e09c-4849-a99d-56e27009e94f", - "request" : { - "url" : "/v2/jobs/75b79221-e09c-4849-a99d-56e27009e94f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"75b79221-e09c-4849-a99d-56e27009e94f\",\n \"created_at\": \"2018-07-20T18:40:32Z\",\n \"url\": \"/v2/jobs/75b79221-e09c-4849-a99d-56e27009e94f\"\n },\n \"entity\": {\n \"guid\": \"75b79221-e09c-4849-a99d-56e27009e94f\",\n \"status\": \"running\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:35 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "791a4279-3fe1-4a76-562f-935a6bf5adf4::92049f41-5e0a-413e-af0c-becb4d7279f1", - "Keep-Alive" : "timeout=5, max=92", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "f1001e42-9734-4b43-9268-b6c932d852a3", - "persistent" : true, - "scenarioName" : "scenario-jobs-75b79221-e09c-4849-a99d-56e27009e94f", - "requiredScenarioState" : "scenario-jobs-75b79221-e09c-4849-a99d-56e27009e94f-3", - "newScenarioState" : "scenario-jobs-75b79221-e09c-4849-a99d-56e27009e94f-4", - "insertionIndex" : 44 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_edcd7839-4959-493a-a35a-39ff376e8af9-2661a32c-4bfc-4cba-8ed1-bac50e3b4146.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_edcd7839-4959-493a-a35a-39ff376e8af9-2661a32c-4bfc-4cba-8ed1-bac50e3b4146.json deleted file mode 100644 index 9f11324..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_edcd7839-4959-493a-a35a-39ff376e8af9-2661a32c-4bfc-4cba-8ed1-bac50e3b4146.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "2661a32c-4bfc-4cba-8ed1-bac50e3b4146", - "name" : "v2_jobs_edcd7839-4959-493a-a35a-39ff376e8af9", - "request" : { - "url" : "/v2/jobs/edcd7839-4959-493a-a35a-39ff376e8af9", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"edcd7839-4959-493a-a35a-39ff376e8af9\",\n \"created_at\": \"2018-07-20T18:39:27Z\",\n \"url\": \"/v2/jobs/edcd7839-4959-493a-a35a-39ff376e8af9\"\n },\n \"entity\": {\n \"guid\": \"edcd7839-4959-493a-a35a-39ff376e8af9\",\n \"status\": \"running\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:28 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "8f8c0a01-b5d0-4816-48ab-32ca03b3014b::391762bc-4388-47d2-8b63-bef01dac16de", - "Keep-Alive" : "timeout=5, max=89", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "2661a32c-4bfc-4cba-8ed1-bac50e3b4146", - "persistent" : true, - "scenarioName" : "scenario-jobs-edcd7839-4959-493a-a35a-39ff376e8af9", - "requiredScenarioState" : "scenario-jobs-edcd7839-4959-493a-a35a-39ff376e8af9-2", - "newScenarioState" : "scenario-jobs-edcd7839-4959-493a-a35a-39ff376e8af9-3", - "insertionIndex" : 21 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_edcd7839-4959-493a-a35a-39ff376e8af9-839b64b1-e863-42f0-af95-1ea4f88667d5.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_edcd7839-4959-493a-a35a-39ff376e8af9-839b64b1-e863-42f0-af95-1ea4f88667d5.json deleted file mode 100644 index 23794c0..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_edcd7839-4959-493a-a35a-39ff376e8af9-839b64b1-e863-42f0-af95-1ea4f88667d5.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "839b64b1-e863-42f0-af95-1ea4f88667d5", - "name" : "v2_jobs_edcd7839-4959-493a-a35a-39ff376e8af9", - "request" : { - "url" : "/v2/jobs/edcd7839-4959-493a-a35a-39ff376e8af9", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"0\",\n \"created_at\": \"1970-01-01T00:00:00Z\",\n \"url\": \"/v2/jobs/0\"\n },\n \"entity\": {\n \"guid\": \"0\",\n \"status\": \"finished\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:30 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "9eea4a87-b5a8-4dae-794f-434248d13eb8::481c7510-7c05-4019-96fe-53d1e308c818", - "Keep-Alive" : "timeout=5, max=88", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "839b64b1-e863-42f0-af95-1ea4f88667d5", - "persistent" : true, - "scenarioName" : "scenario-jobs-edcd7839-4959-493a-a35a-39ff376e8af9", - "requiredScenarioState" : "scenario-jobs-edcd7839-4959-493a-a35a-39ff376e8af9-3", - "insertionIndex" : 22 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_edcd7839-4959-493a-a35a-39ff376e8af9-e3ffed92-c6b8-4b08-ab47-2460d68e2c5a.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_edcd7839-4959-493a-a35a-39ff376e8af9-e3ffed92-c6b8-4b08-ab47-2460d68e2c5a.json deleted file mode 100644 index c11818e..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_jobs_edcd7839-4959-493a-a35a-39ff376e8af9-e3ffed92-c6b8-4b08-ab47-2460d68e2c5a.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "e3ffed92-c6b8-4b08-ab47-2460d68e2c5a", - "name" : "v2_jobs_edcd7839-4959-493a-a35a-39ff376e8af9", - "request" : { - "url" : "/v2/jobs/edcd7839-4959-493a-a35a-39ff376e8af9", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"edcd7839-4959-493a-a35a-39ff376e8af9\",\n \"created_at\": \"2018-07-20T18:39:27Z\",\n \"url\": \"/v2/jobs/edcd7839-4959-493a-a35a-39ff376e8af9\"\n },\n \"entity\": {\n \"guid\": \"edcd7839-4959-493a-a35a-39ff376e8af9\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:27 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "36afbfa8-267a-4cf0-6b3d-bbe7b4373ee9::faa35269-62de-40ee-aff9-bfe208b2127d", - "Keep-Alive" : "timeout=5, max=90", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "e3ffed92-c6b8-4b08-ab47-2460d68e2c5a", - "persistent" : true, - "scenarioName" : "scenario-jobs-edcd7839-4959-493a-a35a-39ff376e8af9", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-jobs-edcd7839-4959-493a-a35a-39ff376e8af9-2", - "insertionIndex" : 20 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_organizations-de852538-9b32-4a53-8d98-17f61870a280.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_organizations-de852538-9b32-4a53-8d98-17f61870a280.json deleted file mode 100644 index 9368b5c..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_organizations-de852538-9b32-4a53-8d98-17f61870a280.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "de852538-9b32-4a53-8d98-17f61870a280", - "name" : "v2_organizations", - "request" : { - "url" : "/v2/organizations?q=name%3Atest", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"created_at\": \"2018-07-19T20:33:45Z\",\n \"updated_at\": \"2018-07-19T20:33:45Z\"\n },\n \"entity\": {\n \"name\": \"test\",\n \"billing_enabled\": false,\n \"quota_definition_guid\": \"7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"status\": \"active\",\n \"default_isolation_segment_guid\": null,\n \"quota_definition_url\": \"/v2/quota_definitions/7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"spaces_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/spaces\",\n \"domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/domains\",\n \"private_domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains\",\n \"users_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/users\",\n \"managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/managers\",\n \"billing_managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/billing_managers\",\n \"auditors_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/auditors\",\n \"app_events_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/app_events\",\n \"space_quota_definitions_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/space_quota_definitions\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:22 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "fb158cfb-a6c3-4b87-4bd4-c85e883dd52d::9fe0ef38-87c8-4f43-9bd6-c6319e527b96", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "de852538-9b32-4a53-8d98-17f61870a280", - "persistent" : true, - "insertionIndex" : 2 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_organizations-e22b32d3-1732-4c39-bbc0-423c90640d9d.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_organizations-e22b32d3-1732-4c39-bbc0-423c90640d9d.json deleted file mode 100644 index ffdd5c0..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_organizations-e22b32d3-1732-4c39-bbc0-423c90640d9d.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "e22b32d3-1732-4c39-bbc0-423c90640d9d", - "name" : "v2_organizations", - "request" : { - "url" : "/v2/organizations?q=name:test&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"created_at\": \"2018-07-19T20:33:45Z\",\n \"updated_at\": \"2018-07-19T20:33:45Z\"\n },\n \"entity\": {\n \"name\": \"test\",\n \"billing_enabled\": false,\n \"quota_definition_guid\": \"7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"status\": \"active\",\n \"default_isolation_segment_guid\": null,\n \"quota_definition_url\": \"/v2/quota_definitions/7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"spaces_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/spaces\",\n \"domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/domains\",\n \"private_domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains\",\n \"users_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/users\",\n \"managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/managers\",\n \"billing_managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/billing_managers\",\n \"auditors_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/auditors\",\n \"app_events_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/app_events\",\n \"space_quota_definitions_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/space_quota_definitions\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:25 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "2180643c-d058-4c4d-7468-bdc7d9698585::cda821fa-151d-42f4-b60b-768e88871475", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "e22b32d3-1732-4c39-bbc0-423c90640d9d", - "persistent" : true, - "insertionIndex" : 6 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-2c4cf73c-5d36-48ba-b698-3e08228d36c1.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-2c4cf73c-5d36-48ba-b698-3e08228d36c1.json deleted file mode 100644 index 9462fcb..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-2c4cf73c-5d36-48ba-b698-3e08228d36c1.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "2c4cf73c-5d36-48ba-b698-3e08228d36c1", - "name" : "v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains", - "request" : { - "url" : "/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:31 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "407e29fc-ae9a-43e2-48f2-687188605aa8::238f3565-9633-4a1e-ab97-9e1bce269a9b", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "2c4cf73c-5d36-48ba-b698-3e08228d36c1", - "persistent" : true, - "scenarioName" : "scenario-b3e001e9-4956-40e3-9695-79325199355f-private_domains", - "requiredScenarioState" : "scenario-b3e001e9-4956-40e3-9695-79325199355f-private_domains-2", - "insertionIndex" : 35 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-7df15d24-715b-45c0-b2b9-1ecef97dcb21.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-7df15d24-715b-45c0-b2b9-1ecef97dcb21.json deleted file mode 100644 index 7b28db3..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-7df15d24-715b-45c0-b2b9-1ecef97dcb21.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "7df15d24-715b-45c0-b2b9-1ecef97dcb21", - "name" : "v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains", - "request" : { - "url" : "/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:26 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "bdba4973-931f-43c7-6b9b-9d694d2b04e2::4563e5fc-01f0-4ad1-ac8a-8eddebaa06c8", - "Keep-Alive" : "timeout=5, max=93", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "7df15d24-715b-45c0-b2b9-1ecef97dcb21", - "persistent" : true, - "scenarioName" : "scenario-b3e001e9-4956-40e3-9695-79325199355f-private_domains", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-b3e001e9-4956-40e3-9695-79325199355f-private_domains-2", - "insertionIndex" : 9 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_resource_match-77df1c14-1cdc-4d15-b4c4-fd10ecad4bfd.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_resource_match-77df1c14-1cdc-4d15-b4c4-fd10ecad4bfd.json deleted file mode 100644 index 72ab05b..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_resource_match-77df1c14-1cdc-4d15-b4c4-fd10ecad4bfd.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "id" : "77df1c14-1cdc-4d15-b4c4-fd10ecad4bfd", - "name" : "v2_resource_match", - "request" : { - "url" : "/v2/resource_match", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "[{\"sha1\":\"5aa239d8ad6d8130b055caebf44467b9c55d422b\",\"mode\":\"100644\",\"size\":461472},{\"sha1\":\"4c2dd0f89549ee38a588808acfa24797c196b7cb\",\"mode\":\"100644\",\"size\":1779},{\"sha1\":\"4e36bfa02cd464e99d82008a787dcf66ddf2dadc\",\"mode\":\"100644\",\"size\":2688},{\"sha1\":\"ff9d64ab3b825c6b8ed7c64694d0521918785ae2\",\"mode\":\"100644\",\"size\":299},{\"sha1\":\"7caad34f01d2688919e15e09a90467963e3d5190\",\"mode\":\"100644\",\"size\":613},{\"sha1\":\"cb855558e6271b1b32e716d24cb85c7f583ce09e\",\"mode\":\"100644\",\"size\":93107},{\"sha1\":\"0af5364cd6679bfffb114f0dec8a157aaa283b76\",\"mode\":\"100644\",\"size\":4596},{\"sha1\":\"d370eeff676d24523ee530f6abc569474d2f9bf9\",\"mode\":\"100644\",\"size\":612},{\"sha1\":\"011bc4cc96b08fabad2b3186755818fa0b32d83f\",\"mode\":\"100644\",\"size\":1162436},{\"sha1\":\"d963a184197107a75952666c831f14cb662933b7\",\"mode\":\"100644\",\"size\":3608},{\"sha1\":\"8664b2431c82e94493723054cbf5ff341c8ecdb7\",\"mode\":\"100644\",\"size\":5203},{\"sha1\":\"414ffd8db5d733bf88256d5fd8ebb9fd2aff3108\",\"mode\":\"100644\",\"size\":1527},{\"sha1\":\"f9170b781caecaa2127d9d8baf9964e599eb605a\",\"mode\":\"100644\",\"size\":733},{\"sha1\":\"d63a2b8de1abe4092e03ada60bb8d5e26aa73562\",\"mode\":\"100644\",\"size\":1721},{\"sha1\":\"152dbb704f32fef5c6841c46488bf1bb57b6ba5b\",\"mode\":\"100644\",\"size\":1374},{\"sha1\":\"41fd4180bea3813de8f3c602b5a126218360315b\",\"mode\":\"100644\",\"size\":588},{\"sha1\":\"3e324efa4aff13f75357a34a71366d1c20a59e88\",\"mode\":\"100644\",\"size\":4015},{\"sha1\":\"2abf786c56d4cd17c289b56c7ae21b30b6ba5ab7\",\"mode\":\"100644\",\"size\":345},{\"sha1\":\"154a9ab94c152458ebf0f314126fa959d712be9c\",\"mode\":\"100644\",\"size\":4624},{\"sha1\":\"9bc041759fd397c07e01f3af486ba70f7d0b14ba\",\"mode\":\"100644\",\"size\":945},{\"sha1\":\"934c04d3cfef185a8008e7bf34331b79730a9d43\",\"mode\":\"100644\",\"size\":26586},{\"sha1\":\"9e1ac84eed220281841b75e72fb9de5a297fbf04\",\"mode\":\"100644\",\"size\":117910},{\"sha1\":\"1c7dee76e2a1eb2b3f4600b89a4398d8f93a2874\",\"mode\":\"100644\",\"size\":129},{\"sha1\":\"01295d86ab56891a989cd6a9fe84fa169f287e6f\",\"mode\":\"100644\",\"size\":4976},{\"sha1\":\"3dacf0841881da8fe564bc58a6c22227b7dcab71\",\"mode\":\"100644\",\"size\":1585},{\"sha1\":\"b2a3686010af53ce71da04880a704ac957c7a47e\",\"mode\":\"100644\",\"size\":3555},{\"sha1\":\"58709490fb98f037070be9387d97abbf62dcd684\",\"mode\":\"100644\",\"size\":3837},{\"sha1\":\"0da88b36af193860ba6d007c1af3ce5b589b923b\",\"mode\":\"100644\",\"size\":5243},{\"sha1\":\"2d998d3d674b172a588e54ab619854d073f555b5\",\"mode\":\"100644\",\"size\":297518},{\"sha1\":\"2e389a8727588c549c28bb277f0f573f65554850\",\"mode\":\"100644\",\"size\":645},{\"sha1\":\"ea54f6193d224e5e5732bbd4262327eb465397c2\",\"mode\":\"100644\",\"size\":99987},{\"sha1\":\"699016ddf454c2c167d9f84ae5777eccadf54728\",\"mode\":\"100644\",\"size\":21703},{\"sha1\":\"2ed9db8f21cf1c5d65f0f4fd734078cc255998e7\",\"mode\":\"100644\",\"size\":437},{\"sha1\":\"03d5f48f10bbe4eb7bd862f10c0583be2e0053c6\",\"mode\":\"100644\",\"size\":65100},{\"sha1\":\"da39a3ee5e6b4b0d3255bfef95601890afd80709\",\"mode\":\"100644\",\"size\":0},{\"sha1\":\"fe111141e88286b0e243e4cb8dc583dbad789bc7\",\"mode\":\"100644\",\"size\":282},{\"sha1\":\"38f0748e222b21ef6f9913b054c7ed1a818eb42d\",\"mode\":\"100644\",\"size\":266},{\"sha1\":\"9a29444393acc68bee96bc82adda9607dbe1d0a0\",\"mode\":\"100644\",\"size\":1593},{\"sha1\":\"cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\",\"mode\":\"100644\",\"size\":1349339},{\"sha1\":\"7c4f3c474fb2c041d8028740440937705ebb473a\",\"mode\":\"100644\",\"size\":290339},{\"sha1\":\"da76ca59f6a57ee3102f8f9bd9cee742973efa8a\",\"mode\":\"100644\",\"size\":41203},{\"sha1\":\"ffaa050dbd36b0441645598f1a7ddaf67fd5e678\",\"mode\":\"100644\",\"size\":592},{\"sha1\":\"c5eaa23f5bb1f0f4b7eb44824093874d0d9165f5\",\"mode\":\"100644\",\"size\":352776},{\"sha1\":\"47c87d1e377678c051ec1e5225333ba4d7d9d05a\",\"mode\":\"100644\",\"size\":702},{\"sha1\":\"e0f3ab697ceccda84083488dc98e638148934520\",\"mode\":\"100644\",\"size\":1081},{\"sha1\":\"72bb957e4e0a2e42056230c683238b1b783da10d\",\"mode\":\"100644\",\"size\":616},{\"sha1\":\"25a51a75bfb997b7b95d6760178ee3303863ec4b\",\"mode\":\"100644\",\"size\":591},{\"sha1\":\"b86c3da72f30bd20dd82988ab6f370c13c616022\",\"mode\":\"100644\",\"size\":10728},{\"sha1\":\"e7d522eb60e66a2d9a0aa7edfcaf8ce287f25752\",\"mode\":\"100644\",\"size\":2062},{\"sha1\":\"0546460176b54aeeca93080900aece6f7229f680\",\"mode\":\"100644\",\"size\":302},{\"sha1\":\"73b260df53aa71535bab27e4971796954958b5d5\",\"mode\":\"100644\",\"size\":1997},{\"sha1\":\"54b731178d81e66eca9623df772ff32718208137\",\"mode\":\"100644\",\"size\":1226075},{\"sha1\":\"38b942875b91697c636c94b2c846c0e074ef1a07\",\"mode\":\"100644\",\"size\":9852},{\"sha1\":\"7049e9e927d6bbeb1463e76452e290f92661ec1d\",\"mode\":\"100644\",\"size\":3116},{\"sha1\":\"07c10d545325e3a6e72e06381afe469fd40eb701\",\"mode\":\"100644\",\"size\":66519},{\"sha1\":\"4e393793c37c77e042ccc7be5a914ae39251b365\",\"mode\":\"100644\",\"size\":323848},{\"sha1\":\"fec5797a55b786184a537abd39c3fa1449d752d6\",\"mode\":\"100644\",\"size\":255485},{\"sha1\":\"c4c8204bdde87f3e93a21d741cc5358f70e57829\",\"mode\":\"100644\",\"size\":5687},{\"sha1\":\"864344400c3d4d92dfeb0a305dc87d953677c03c\",\"mode\":\"100644\",\"size\":471901},{\"sha1\":\"2e04c6c2922fbfa06b5948be14a5782db168b6ec\",\"mode\":\"100644\",\"size\":1254656},{\"sha1\":\"8b2c25bd7d759b111d0753b8dfbdecac952c495e\",\"mode\":\"100644\",\"size\":14915},{\"sha1\":\"7b962117a6f8c03809104d47533c131e3218e174\",\"mode\":\"100644\",\"size\":540},{\"sha1\":\"b874870d915adbc3dd932e19077d3d45c8e54aa0\",\"mode\":\"100644\",\"size\":930680},{\"sha1\":\"06e73803e03b47891d5aeb1f24ca2cfd3940a923\",\"mode\":\"100644\",\"size\":4684},{\"sha1\":\"cd4bb73ce7e6d08086cb9b88e6ff8734372999d3\",\"mode\":\"100644\",\"size\":4306},{\"sha1\":\"751c871527ec7ff335ffc76f2e737e297c0a8d30\",\"mode\":\"100644\",\"size\":789866},{\"sha1\":\"fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef\",\"mode\":\"100644\",\"size\":366340},{\"sha1\":\"a068327cb0a1439c99c0b36d504c488f4e80483f\",\"mode\":\"100644\",\"size\":1502},{\"sha1\":\"187248459a73eaf34e8264db20a33961e35426df\",\"mode\":\"100644\",\"size\":19737},{\"sha1\":\"3a536e1ac71b82627c3a7408eb38fa0704cb9034\",\"mode\":\"100644\",\"size\":240244},{\"sha1\":\"af324ebf4e72e10fcac6c5ac008636a4d41a5cf2\",\"mode\":\"100644\",\"size\":7336},{\"sha1\":\"ca01fb473f53dd0ee3c85663b26d5dc325602057\",\"mode\":\"100644\",\"size\":280032},{\"sha1\":\"82ec0aa4d240f7eb17788fcf6e5d32b012abebf4\",\"mode\":\"100644\",\"size\":273},{\"sha1\":\"dfe3be1a15b150f2eb7f5f27ee6645ced87d8f6e\",\"mode\":\"100644\",\"size\":5267},{\"sha1\":\"84af6fc0cb1f57fcf8fffac62c4df1b632af0efb\",\"mode\":\"100644\",\"size\":3263},{\"sha1\":\"28a84685bb9c1b63218221e60a3112b014e5eb57\",\"mode\":\"100644\",\"size\":485},{\"sha1\":\"769c0b82cb2421c8256300e907298a9410a2a3d3\",\"mode\":\"100644\",\"size\":29779},{\"sha1\":\"8313c1e792bc063978d8da9351f3b3f7e2c62d3e\",\"mode\":\"100644\",\"size\":3414},{\"sha1\":\"06564e716b89de5eaa0dd234ae7989576503ddf3\",\"mode\":\"100644\",\"size\":256776},{\"sha1\":\"243a23f8968de8754d8199d669780d683ab177bd\",\"mode\":\"100644\",\"size\":1090739},{\"sha1\":\"3789d00e859632e6c6206adc0c71625559e6e3b0\",\"mode\":\"100644\",\"size\":66469},{\"sha1\":\"242c7585b8c5007ddc8637c8e8d1eabe9b35ab42\",\"mode\":\"100644\",\"size\":1487},{\"sha1\":\"f7e631ccf49cfc0aefa4a2a728da7d374c05bd3c\",\"mode\":\"100644\",\"size\":17519},{\"sha1\":\"11d4aec9dfcec2e04622ce3078aedc68b2f98278\",\"mode\":\"100644\",\"size\":1484},{\"sha1\":\"4236051a8d209c00f85e70918d5e26d9f3e5201e\",\"mode\":\"100644\",\"size\":1133563},{\"sha1\":\"92871c480d939d240c4acac88913a383094fe1c3\",\"mode\":\"100644\",\"size\":1233},{\"sha1\":\"9dd235da986d0c06739c0e42d527343b3d8a447c\",\"mode\":\"100644\",\"size\":1102},{\"sha1\":\"f3e3392c3e8e2714fc05bbf0f3ee496ad19eedc7\",\"mode\":\"100644\",\"size\":379277},{\"sha1\":\"f5adf7ed8c34aa005b22b6a2dc7b6796e10e9c79\",\"mode\":\"100644\",\"size\":3115994},{\"sha1\":\"45a5ec14da7bc166fc73c52fd091f5a01bd66e56\",\"mode\":\"100644\",\"size\":11509},{\"sha1\":\"456895fc91bf7180b216fead220373e6278230c9\",\"mode\":\"100644\",\"size\":33395},{\"sha1\":\"df8fdb927c0e035487031c9b33e33c15b0df5f8a\",\"mode\":\"100644\",\"size\":1693},{\"sha1\":\"c1196cb3e56da83e3c3a02ef323699f4b05feedc\",\"mode\":\"100644\",\"size\":660545},{\"sha1\":\"129acd77a4b6ee30d62d3a0899b1344c8ec2bff8\",\"mode\":\"100644\",\"size\":8645},{\"sha1\":\"daa252ffd6a1f363b51de18cb0adab39711006a9\",\"mode\":\"100644\",\"size\":1953}]", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "[{\"sha1\":\"5aa239d8ad6d8130b055caebf44467b9c55d422b\",\"mode\":\"100644\",\"size\":461472},{\"sha1\":\"cb855558e6271b1b32e716d24cb85c7f583ce09e\",\"mode\":\"100644\",\"size\":93107},{\"sha1\":\"011bc4cc96b08fabad2b3186755818fa0b32d83f\",\"mode\":\"100644\",\"size\":1162436},{\"sha1\":\"9e1ac84eed220281841b75e72fb9de5a297fbf04\",\"mode\":\"100644\",\"size\":117910},{\"sha1\":\"2d998d3d674b172a588e54ab619854d073f555b5\",\"mode\":\"100644\",\"size\":297518},{\"sha1\":\"ea54f6193d224e5e5732bbd4262327eb465397c2\",\"mode\":\"100644\",\"size\":99987},{\"sha1\":\"cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\",\"mode\":\"100644\",\"size\":1349339},{\"sha1\":\"7c4f3c474fb2c041d8028740440937705ebb473a\",\"mode\":\"100644\",\"size\":290339},{\"sha1\":\"c5eaa23f5bb1f0f4b7eb44824093874d0d9165f5\",\"mode\":\"100644\",\"size\":352776},{\"sha1\":\"54b731178d81e66eca9623df772ff32718208137\",\"mode\":\"100644\",\"size\":1226075},{\"sha1\":\"07c10d545325e3a6e72e06381afe469fd40eb701\",\"mode\":\"100644\",\"size\":66519},{\"sha1\":\"4e393793c37c77e042ccc7be5a914ae39251b365\",\"mode\":\"100644\",\"size\":323848},{\"sha1\":\"fec5797a55b786184a537abd39c3fa1449d752d6\",\"mode\":\"100644\",\"size\":255485},{\"sha1\":\"864344400c3d4d92dfeb0a305dc87d953677c03c\",\"mode\":\"100644\",\"size\":471901},{\"sha1\":\"2e04c6c2922fbfa06b5948be14a5782db168b6ec\",\"mode\":\"100644\",\"size\":1254656},{\"sha1\":\"b874870d915adbc3dd932e19077d3d45c8e54aa0\",\"mode\":\"100644\",\"size\":930680},{\"sha1\":\"751c871527ec7ff335ffc76f2e737e297c0a8d30\",\"mode\":\"100644\",\"size\":789866},{\"sha1\":\"fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef\",\"mode\":\"100644\",\"size\":366340},{\"sha1\":\"3a536e1ac71b82627c3a7408eb38fa0704cb9034\",\"mode\":\"100644\",\"size\":240244},{\"sha1\":\"ca01fb473f53dd0ee3c85663b26d5dc325602057\",\"mode\":\"100644\",\"size\":280032},{\"sha1\":\"06564e716b89de5eaa0dd234ae7989576503ddf3\",\"mode\":\"100644\",\"size\":256776},{\"sha1\":\"243a23f8968de8754d8199d669780d683ab177bd\",\"mode\":\"100644\",\"size\":1090739},{\"sha1\":\"3789d00e859632e6c6206adc0c71625559e6e3b0\",\"mode\":\"100644\",\"size\":66469},{\"sha1\":\"4236051a8d209c00f85e70918d5e26d9f3e5201e\",\"mode\":\"100644\",\"size\":1133563},{\"sha1\":\"f3e3392c3e8e2714fc05bbf0f3ee496ad19eedc7\",\"mode\":\"100644\",\"size\":379277},{\"sha1\":\"f5adf7ed8c34aa005b22b6a2dc7b6796e10e9c79\",\"mode\":\"100644\",\"size\":3115994},{\"sha1\":\"c1196cb3e56da83e3c3a02ef323699f4b05feedc\",\"mode\":\"100644\",\"size\":660545}]", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:31 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "8c7b5531-a1f0-45bf-76df-7a039be12100::98a75ef6-d73b-4900-96d5-551c8e117ed6", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "77df1c14-1cdc-4d15-b4c4-fd10ecad4bfd", - "persistent" : true, - "scenarioName" : "scenario-v2-resource_match", - "requiredScenarioState" : "scenario-v2-resource_match-2", - "insertionIndex" : 40 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_resource_match-ef3afeb8-4b25-46c7-b572-77c9e72c5003.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_resource_match-ef3afeb8-4b25-46c7-b572-77c9e72c5003.json deleted file mode 100644 index f958dae..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_resource_match-ef3afeb8-4b25-46c7-b572-77c9e72c5003.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "id" : "ef3afeb8-4b25-46c7-b572-77c9e72c5003", - "name" : "v2_resource_match", - "request" : { - "url" : "/v2/resource_match", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "[{\"sha1\":\"5aa239d8ad6d8130b055caebf44467b9c55d422b\",\"mode\":\"100644\",\"size\":461472},{\"sha1\":\"4c2dd0f89549ee38a588808acfa24797c196b7cb\",\"mode\":\"100644\",\"size\":1779},{\"sha1\":\"4e36bfa02cd464e99d82008a787dcf66ddf2dadc\",\"mode\":\"100644\",\"size\":2688},{\"sha1\":\"ff9d64ab3b825c6b8ed7c64694d0521918785ae2\",\"mode\":\"100644\",\"size\":299},{\"sha1\":\"7caad34f01d2688919e15e09a90467963e3d5190\",\"mode\":\"100644\",\"size\":613},{\"sha1\":\"cb855558e6271b1b32e716d24cb85c7f583ce09e\",\"mode\":\"100644\",\"size\":93107},{\"sha1\":\"0af5364cd6679bfffb114f0dec8a157aaa283b76\",\"mode\":\"100644\",\"size\":4596},{\"sha1\":\"d370eeff676d24523ee530f6abc569474d2f9bf9\",\"mode\":\"100644\",\"size\":612},{\"sha1\":\"011bc4cc96b08fabad2b3186755818fa0b32d83f\",\"mode\":\"100644\",\"size\":1162436},{\"sha1\":\"d963a184197107a75952666c831f14cb662933b7\",\"mode\":\"100644\",\"size\":3608},{\"sha1\":\"8664b2431c82e94493723054cbf5ff341c8ecdb7\",\"mode\":\"100644\",\"size\":5203},{\"sha1\":\"414ffd8db5d733bf88256d5fd8ebb9fd2aff3108\",\"mode\":\"100644\",\"size\":1527},{\"sha1\":\"f9170b781caecaa2127d9d8baf9964e599eb605a\",\"mode\":\"100644\",\"size\":733},{\"sha1\":\"d63a2b8de1abe4092e03ada60bb8d5e26aa73562\",\"mode\":\"100644\",\"size\":1721},{\"sha1\":\"152dbb704f32fef5c6841c46488bf1bb57b6ba5b\",\"mode\":\"100644\",\"size\":1374},{\"sha1\":\"41fd4180bea3813de8f3c602b5a126218360315b\",\"mode\":\"100644\",\"size\":588},{\"sha1\":\"3e324efa4aff13f75357a34a71366d1c20a59e88\",\"mode\":\"100644\",\"size\":4015},{\"sha1\":\"2abf786c56d4cd17c289b56c7ae21b30b6ba5ab7\",\"mode\":\"100644\",\"size\":345},{\"sha1\":\"154a9ab94c152458ebf0f314126fa959d712be9c\",\"mode\":\"100644\",\"size\":4624},{\"sha1\":\"9bc041759fd397c07e01f3af486ba70f7d0b14ba\",\"mode\":\"100644\",\"size\":945},{\"sha1\":\"934c04d3cfef185a8008e7bf34331b79730a9d43\",\"mode\":\"100644\",\"size\":26586},{\"sha1\":\"9e1ac84eed220281841b75e72fb9de5a297fbf04\",\"mode\":\"100644\",\"size\":117910},{\"sha1\":\"1c7dee76e2a1eb2b3f4600b89a4398d8f93a2874\",\"mode\":\"100644\",\"size\":129},{\"sha1\":\"01295d86ab56891a989cd6a9fe84fa169f287e6f\",\"mode\":\"100644\",\"size\":4976},{\"sha1\":\"3dacf0841881da8fe564bc58a6c22227b7dcab71\",\"mode\":\"100644\",\"size\":1585},{\"sha1\":\"b2a3686010af53ce71da04880a704ac957c7a47e\",\"mode\":\"100644\",\"size\":3555},{\"sha1\":\"58709490fb98f037070be9387d97abbf62dcd684\",\"mode\":\"100644\",\"size\":3837},{\"sha1\":\"0da88b36af193860ba6d007c1af3ce5b589b923b\",\"mode\":\"100644\",\"size\":5243},{\"sha1\":\"2d998d3d674b172a588e54ab619854d073f555b5\",\"mode\":\"100644\",\"size\":297518},{\"sha1\":\"2e389a8727588c549c28bb277f0f573f65554850\",\"mode\":\"100644\",\"size\":645},{\"sha1\":\"ea54f6193d224e5e5732bbd4262327eb465397c2\",\"mode\":\"100644\",\"size\":99987},{\"sha1\":\"699016ddf454c2c167d9f84ae5777eccadf54728\",\"mode\":\"100644\",\"size\":21703},{\"sha1\":\"2ed9db8f21cf1c5d65f0f4fd734078cc255998e7\",\"mode\":\"100644\",\"size\":437},{\"sha1\":\"03d5f48f10bbe4eb7bd862f10c0583be2e0053c6\",\"mode\":\"100644\",\"size\":65100},{\"sha1\":\"da39a3ee5e6b4b0d3255bfef95601890afd80709\",\"mode\":\"100644\",\"size\":0},{\"sha1\":\"fe111141e88286b0e243e4cb8dc583dbad789bc7\",\"mode\":\"100644\",\"size\":282},{\"sha1\":\"38f0748e222b21ef6f9913b054c7ed1a818eb42d\",\"mode\":\"100644\",\"size\":266},{\"sha1\":\"9a29444393acc68bee96bc82adda9607dbe1d0a0\",\"mode\":\"100644\",\"size\":1593},{\"sha1\":\"cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\",\"mode\":\"100644\",\"size\":1349339},{\"sha1\":\"7c4f3c474fb2c041d8028740440937705ebb473a\",\"mode\":\"100644\",\"size\":290339},{\"sha1\":\"da76ca59f6a57ee3102f8f9bd9cee742973efa8a\",\"mode\":\"100644\",\"size\":41203},{\"sha1\":\"ffaa050dbd36b0441645598f1a7ddaf67fd5e678\",\"mode\":\"100644\",\"size\":592},{\"sha1\":\"c5eaa23f5bb1f0f4b7eb44824093874d0d9165f5\",\"mode\":\"100644\",\"size\":352776},{\"sha1\":\"47c87d1e377678c051ec1e5225333ba4d7d9d05a\",\"mode\":\"100644\",\"size\":702},{\"sha1\":\"e0f3ab697ceccda84083488dc98e638148934520\",\"mode\":\"100644\",\"size\":1081},{\"sha1\":\"72bb957e4e0a2e42056230c683238b1b783da10d\",\"mode\":\"100644\",\"size\":616},{\"sha1\":\"25a51a75bfb997b7b95d6760178ee3303863ec4b\",\"mode\":\"100644\",\"size\":591},{\"sha1\":\"b86c3da72f30bd20dd82988ab6f370c13c616022\",\"mode\":\"100644\",\"size\":10728},{\"sha1\":\"e7d522eb60e66a2d9a0aa7edfcaf8ce287f25752\",\"mode\":\"100644\",\"size\":2062},{\"sha1\":\"0546460176b54aeeca93080900aece6f7229f680\",\"mode\":\"100644\",\"size\":302},{\"sha1\":\"73b260df53aa71535bab27e4971796954958b5d5\",\"mode\":\"100644\",\"size\":1997},{\"sha1\":\"54b731178d81e66eca9623df772ff32718208137\",\"mode\":\"100644\",\"size\":1226075},{\"sha1\":\"38b942875b91697c636c94b2c846c0e074ef1a07\",\"mode\":\"100644\",\"size\":9852},{\"sha1\":\"7049e9e927d6bbeb1463e76452e290f92661ec1d\",\"mode\":\"100644\",\"size\":3116},{\"sha1\":\"07c10d545325e3a6e72e06381afe469fd40eb701\",\"mode\":\"100644\",\"size\":66519},{\"sha1\":\"4e393793c37c77e042ccc7be5a914ae39251b365\",\"mode\":\"100644\",\"size\":323848},{\"sha1\":\"fec5797a55b786184a537abd39c3fa1449d752d6\",\"mode\":\"100644\",\"size\":255485},{\"sha1\":\"c4c8204bdde87f3e93a21d741cc5358f70e57829\",\"mode\":\"100644\",\"size\":5687},{\"sha1\":\"864344400c3d4d92dfeb0a305dc87d953677c03c\",\"mode\":\"100644\",\"size\":471901},{\"sha1\":\"2e04c6c2922fbfa06b5948be14a5782db168b6ec\",\"mode\":\"100644\",\"size\":1254656},{\"sha1\":\"8b2c25bd7d759b111d0753b8dfbdecac952c495e\",\"mode\":\"100644\",\"size\":14915},{\"sha1\":\"7b962117a6f8c03809104d47533c131e3218e174\",\"mode\":\"100644\",\"size\":540},{\"sha1\":\"b874870d915adbc3dd932e19077d3d45c8e54aa0\",\"mode\":\"100644\",\"size\":930680},{\"sha1\":\"06e73803e03b47891d5aeb1f24ca2cfd3940a923\",\"mode\":\"100644\",\"size\":4684},{\"sha1\":\"cd4bb73ce7e6d08086cb9b88e6ff8734372999d3\",\"mode\":\"100644\",\"size\":4306},{\"sha1\":\"751c871527ec7ff335ffc76f2e737e297c0a8d30\",\"mode\":\"100644\",\"size\":789866},{\"sha1\":\"fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef\",\"mode\":\"100644\",\"size\":366340},{\"sha1\":\"a068327cb0a1439c99c0b36d504c488f4e80483f\",\"mode\":\"100644\",\"size\":1502},{\"sha1\":\"187248459a73eaf34e8264db20a33961e35426df\",\"mode\":\"100644\",\"size\":19737},{\"sha1\":\"3a536e1ac71b82627c3a7408eb38fa0704cb9034\",\"mode\":\"100644\",\"size\":240244},{\"sha1\":\"af324ebf4e72e10fcac6c5ac008636a4d41a5cf2\",\"mode\":\"100644\",\"size\":7336},{\"sha1\":\"ca01fb473f53dd0ee3c85663b26d5dc325602057\",\"mode\":\"100644\",\"size\":280032},{\"sha1\":\"82ec0aa4d240f7eb17788fcf6e5d32b012abebf4\",\"mode\":\"100644\",\"size\":273},{\"sha1\":\"dfe3be1a15b150f2eb7f5f27ee6645ced87d8f6e\",\"mode\":\"100644\",\"size\":5267},{\"sha1\":\"84af6fc0cb1f57fcf8fffac62c4df1b632af0efb\",\"mode\":\"100644\",\"size\":3263},{\"sha1\":\"28a84685bb9c1b63218221e60a3112b014e5eb57\",\"mode\":\"100644\",\"size\":485},{\"sha1\":\"769c0b82cb2421c8256300e907298a9410a2a3d3\",\"mode\":\"100644\",\"size\":29779},{\"sha1\":\"8313c1e792bc063978d8da9351f3b3f7e2c62d3e\",\"mode\":\"100644\",\"size\":3414},{\"sha1\":\"06564e716b89de5eaa0dd234ae7989576503ddf3\",\"mode\":\"100644\",\"size\":256776},{\"sha1\":\"243a23f8968de8754d8199d669780d683ab177bd\",\"mode\":\"100644\",\"size\":1090739},{\"sha1\":\"3789d00e859632e6c6206adc0c71625559e6e3b0\",\"mode\":\"100644\",\"size\":66469},{\"sha1\":\"242c7585b8c5007ddc8637c8e8d1eabe9b35ab42\",\"mode\":\"100644\",\"size\":1487},{\"sha1\":\"f7e631ccf49cfc0aefa4a2a728da7d374c05bd3c\",\"mode\":\"100644\",\"size\":17519},{\"sha1\":\"11d4aec9dfcec2e04622ce3078aedc68b2f98278\",\"mode\":\"100644\",\"size\":1484},{\"sha1\":\"4236051a8d209c00f85e70918d5e26d9f3e5201e\",\"mode\":\"100644\",\"size\":1133563},{\"sha1\":\"92871c480d939d240c4acac88913a383094fe1c3\",\"mode\":\"100644\",\"size\":1233},{\"sha1\":\"9dd235da986d0c06739c0e42d527343b3d8a447c\",\"mode\":\"100644\",\"size\":1102},{\"sha1\":\"f3e3392c3e8e2714fc05bbf0f3ee496ad19eedc7\",\"mode\":\"100644\",\"size\":379277},{\"sha1\":\"f5adf7ed8c34aa005b22b6a2dc7b6796e10e9c79\",\"mode\":\"100644\",\"size\":3115994},{\"sha1\":\"45a5ec14da7bc166fc73c52fd091f5a01bd66e56\",\"mode\":\"100644\",\"size\":11509},{\"sha1\":\"456895fc91bf7180b216fead220373e6278230c9\",\"mode\":\"100644\",\"size\":33395},{\"sha1\":\"df8fdb927c0e035487031c9b33e33c15b0df5f8a\",\"mode\":\"100644\",\"size\":1693},{\"sha1\":\"c1196cb3e56da83e3c3a02ef323699f4b05feedc\",\"mode\":\"100644\",\"size\":660545},{\"sha1\":\"129acd77a4b6ee30d62d3a0899b1344c8ec2bff8\",\"mode\":\"100644\",\"size\":8645},{\"sha1\":\"daa252ffd6a1f363b51de18cb0adab39711006a9\",\"mode\":\"100644\",\"size\":1953}]", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "[{\"sha1\":\"5aa239d8ad6d8130b055caebf44467b9c55d422b\",\"mode\":\"100644\",\"size\":461472},{\"sha1\":\"cb855558e6271b1b32e716d24cb85c7f583ce09e\",\"mode\":\"100644\",\"size\":93107},{\"sha1\":\"011bc4cc96b08fabad2b3186755818fa0b32d83f\",\"mode\":\"100644\",\"size\":1162436},{\"sha1\":\"9e1ac84eed220281841b75e72fb9de5a297fbf04\",\"mode\":\"100644\",\"size\":117910},{\"sha1\":\"2d998d3d674b172a588e54ab619854d073f555b5\",\"mode\":\"100644\",\"size\":297518},{\"sha1\":\"ea54f6193d224e5e5732bbd4262327eb465397c2\",\"mode\":\"100644\",\"size\":99987},{\"sha1\":\"cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\",\"mode\":\"100644\",\"size\":1349339},{\"sha1\":\"7c4f3c474fb2c041d8028740440937705ebb473a\",\"mode\":\"100644\",\"size\":290339},{\"sha1\":\"c5eaa23f5bb1f0f4b7eb44824093874d0d9165f5\",\"mode\":\"100644\",\"size\":352776},{\"sha1\":\"54b731178d81e66eca9623df772ff32718208137\",\"mode\":\"100644\",\"size\":1226075},{\"sha1\":\"07c10d545325e3a6e72e06381afe469fd40eb701\",\"mode\":\"100644\",\"size\":66519},{\"sha1\":\"4e393793c37c77e042ccc7be5a914ae39251b365\",\"mode\":\"100644\",\"size\":323848},{\"sha1\":\"fec5797a55b786184a537abd39c3fa1449d752d6\",\"mode\":\"100644\",\"size\":255485},{\"sha1\":\"864344400c3d4d92dfeb0a305dc87d953677c03c\",\"mode\":\"100644\",\"size\":471901},{\"sha1\":\"2e04c6c2922fbfa06b5948be14a5782db168b6ec\",\"mode\":\"100644\",\"size\":1254656},{\"sha1\":\"b874870d915adbc3dd932e19077d3d45c8e54aa0\",\"mode\":\"100644\",\"size\":930680},{\"sha1\":\"751c871527ec7ff335ffc76f2e737e297c0a8d30\",\"mode\":\"100644\",\"size\":789866},{\"sha1\":\"fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef\",\"mode\":\"100644\",\"size\":366340},{\"sha1\":\"3a536e1ac71b82627c3a7408eb38fa0704cb9034\",\"mode\":\"100644\",\"size\":240244},{\"sha1\":\"ca01fb473f53dd0ee3c85663b26d5dc325602057\",\"mode\":\"100644\",\"size\":280032},{\"sha1\":\"06564e716b89de5eaa0dd234ae7989576503ddf3\",\"mode\":\"100644\",\"size\":256776},{\"sha1\":\"243a23f8968de8754d8199d669780d683ab177bd\",\"mode\":\"100644\",\"size\":1090739},{\"sha1\":\"3789d00e859632e6c6206adc0c71625559e6e3b0\",\"mode\":\"100644\",\"size\":66469},{\"sha1\":\"4236051a8d209c00f85e70918d5e26d9f3e5201e\",\"mode\":\"100644\",\"size\":1133563},{\"sha1\":\"f3e3392c3e8e2714fc05bbf0f3ee496ad19eedc7\",\"mode\":\"100644\",\"size\":379277},{\"sha1\":\"f5adf7ed8c34aa005b22b6a2dc7b6796e10e9c79\",\"mode\":\"100644\",\"size\":3115994},{\"sha1\":\"c1196cb3e56da83e3c3a02ef323699f4b05feedc\",\"mode\":\"100644\",\"size\":660545}]", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:26 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "58225010-02a1-493c-527c-1a994d87c5d6::acb34e36-58dc-444c-a28f-d6ab22b8a299", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "ef3afeb8-4b25-46c7-b572-77c9e72c5003", - "persistent" : true, - "scenarioName" : "scenario-v2-resource_match", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-v2-resource_match-2", - "insertionIndex" : 14 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_routes-5401da59-ddaf-4e06-96f3-0c121c35cd54.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_routes-5401da59-ddaf-4e06-96f3-0c121c35cd54.json deleted file mode 100644 index 438f6ac..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_routes-5401da59-ddaf-4e06-96f3-0c121c35cd54.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "id" : "5401da59-ddaf-4e06-96f3-0c121c35cd54", - "name" : "v2_routes", - "request" : { - "url" : "/v2/routes", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"domain_guid\":\"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\"host\":\"first-app\",\"space_guid\":\"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"a05c44e1-5c73-4535-a8d0-3dfc9dcf8b36\",\n \"url\": \"/v2/routes/a05c44e1-5c73-4535-a8d0-3dfc9dcf8b36\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:26Z\"\n },\n \"entity\": {\n \"host\": \"first-app\",\n \"path\": \"\",\n \"domain_guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"service_instance_guid\": null,\n \"port\": null,\n \"domain_url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"apps_url\": \"/v2/routes/a05c44e1-5c73-4535-a8d0-3dfc9dcf8b36/apps\",\n \"route_mappings_url\": \"/v2/routes/a05c44e1-5c73-4535-a8d0-3dfc9dcf8b36/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:26 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "Location" : "/v2/routes/a05c44e1-5c73-4535-a8d0-3dfc9dcf8b36", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "4bd6b12c-3247-4342-66ad-a2f7126c80bf::8ad66134-936b-4c3d-9b59-83fcee2fa0a3", - "Keep-Alive" : "timeout=5, max=93", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "5401da59-ddaf-4e06-96f3-0c121c35cd54", - "persistent" : true, - "insertionIndex" : 17 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_routes-9dfa0d0a-7007-42cc-9992-11daa534abe6.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_routes-9dfa0d0a-7007-42cc-9992-11daa534abe6.json deleted file mode 100644 index 51c2c66..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_routes-9dfa0d0a-7007-42cc-9992-11daa534abe6.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "9dfa0d0a-7007-42cc-9992-11daa534abe6", - "name" : "v2_routes", - "request" : { - "url" : "/v2/routes?q=domain_guid:28e83b6f-3cb4-4df4-a056-4e4ae5d0efad&q=host:first-app&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:26 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "8738d6df-4390-4e9b-73f6-6f14c42f8d1b::535fdf4b-2c09-428a-a8c3-cb451000df66", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "9dfa0d0a-7007-42cc-9992-11daa534abe6", - "persistent" : true, - "insertionIndex" : 16 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-034e9260-717b-45fd-acb6-b2d7e53b8be8.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-034e9260-717b-45fd-acb6-b2d7e53b8be8.json deleted file mode 100644 index c822cc4..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-034e9260-717b-45fd-acb6-b2d7e53b8be8.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "034e9260-717b-45fd-acb6-b2d7e53b8be8", - "name" : "v2_shared_domains", - "request" : { - "url" : "/v2/shared_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 2,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"created_at\": \"2018-03-28T22:15:03Z\",\n \"updated_at\": \"2018-04-13T20:33:21Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n },\n {\n \"metadata\": {\n \"guid\": \"552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"url\": \"/v2/shared_domains/552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"created_at\": \"2018-04-05T18:31:55Z\",\n \"updated_at\": \"2018-04-05T18:31:55Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:26 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "1742fe03-6120-4147-5027-01b9bb04b6cf::4e5df0c9-5df3-4fbc-81ec-d0dd52ab2534", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "034e9260-717b-45fd-acb6-b2d7e53b8be8", - "persistent" : true, - "scenarioName" : "scenario-v2-shared_domains", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-v2-shared_domains-2", - "insertionIndex" : 10 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-3046042b-1a97-4dcd-a6e3-7b4df1304859.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-3046042b-1a97-4dcd-a6e3-7b4df1304859.json deleted file mode 100644 index 7c4ef93..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-3046042b-1a97-4dcd-a6e3-7b4df1304859.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "3046042b-1a97-4dcd-a6e3-7b4df1304859", - "name" : "v2_shared_domains", - "request" : { - "url" : "/v2/shared_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 2,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"created_at\": \"2018-03-28T22:15:03Z\",\n \"updated_at\": \"2018-04-13T20:33:21Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n },\n {\n \"metadata\": {\n \"guid\": \"552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"url\": \"/v2/shared_domains/552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"created_at\": \"2018-04-05T18:31:55Z\",\n \"updated_at\": \"2018-04-05T18:31:55Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:26 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "784348d0-0560-4a75-4589-024c261a4d84::afd06a26-0949-46c5-a43a-3c03ca543573", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "3046042b-1a97-4dcd-a6e3-7b4df1304859", - "persistent" : true, - "scenarioName" : "scenario-v2-shared_domains", - "requiredScenarioState" : "scenario-v2-shared_domains-2", - "newScenarioState" : "scenario-v2-shared_domains-3", - "insertionIndex" : 15 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-4939f81a-b857-429e-aa64-79b745f141a4.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-4939f81a-b857-429e-aa64-79b745f141a4.json deleted file mode 100644 index dadfbb3..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-4939f81a-b857-429e-aa64-79b745f141a4.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "4939f81a-b857-429e-aa64-79b745f141a4", - "name" : "v2_shared_domains", - "request" : { - "url" : "/v2/shared_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 2,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"created_at\": \"2018-03-28T22:15:03Z\",\n \"updated_at\": \"2018-04-13T20:33:21Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n },\n {\n \"metadata\": {\n \"guid\": \"552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"url\": \"/v2/shared_domains/552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"created_at\": \"2018-04-05T18:31:55Z\",\n \"updated_at\": \"2018-04-05T18:31:55Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:31 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "08476649-3438-442b-5434-82926ea4fba4::2b8bc5d9-524a-4654-beaa-39738abb8a68", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "4939f81a-b857-429e-aa64-79b745f141a4", - "persistent" : true, - "scenarioName" : "scenario-v2-shared_domains", - "requiredScenarioState" : "scenario-v2-shared_domains-3", - "insertionIndex" : 36 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces-06e48408-c660-4c0c-bff7-2f9869985962.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces-06e48408-c660-4c0c-bff7-2f9869985962.json deleted file mode 100644 index 2d592c7..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces-06e48408-c660-4c0c-bff7-2f9869985962.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "06e48408-c660-4c0c-bff7-2f9869985962", - "name" : "v2_spaces", - "request" : { - "url" : "/v2/spaces?q=name:development&q=organization_guid:b3e001e9-4956-40e3-9695-79325199355f&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:25 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "dbd9e2ad-4873-4e53-5fa2-24f98f308229::5febaade-65f2-4343-9f37-fe6d300eff1e", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "06e48408-c660-4c0c-bff7-2f9869985962", - "persistent" : true, - "insertionIndex" : 7 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces-d891b200-3361-4080-8f7c-761b732711c1.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces-d891b200-3361-4080-8f7c-761b732711c1.json deleted file mode 100644 index b84b471..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces-d891b200-3361-4080-8f7c-761b732711c1.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "d891b200-3361-4080-8f7c-761b732711c1", - "name" : "v2_spaces", - "request" : { - "url" : "/v2/spaces?q=name%3Adevelopment&q=organization_guid%3Ab3e001e9-4956-40e3-9695-79325199355f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:24 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "b352b5d2-5b12-495f-57d4-3de44841418d::ff42be3b-a5bd-4b4e-b16b-59dfbb0e1360", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "d891b200-3361-4080-8f7c-761b732711c1", - "persistent" : true, - "insertionIndex" : 3 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-625e5fc8-5c91-4f58-8c17-0c0a09a70666.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-625e5fc8-5c91-4f58-8c17-0c0a09a70666.json deleted file mode 100644 index 085813e..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-625e5fc8-5c91-4f58-8c17-0c0a09a70666.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "625e5fc8-5c91-4f58-8c17-0c0a09a70666", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:25 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "0f9edb3a-b638-41b9-5a77-9fd7cb3e8ace::6d7c8ca7-40ff-46f2-ab23-2214f431cc5c", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "625e5fc8-5c91-4f58-8c17-0c0a09a70666", - "persistent" : true, - "scenarioName" : "scenario-spaces-c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-spaces-c32f8285-5127-42dc-a9b9-6d22bb99fa9d-2", - "insertionIndex" : 8 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-d718977a-1869-431d-a2ad-f495961d59e0.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-d718977a-1869-431d-a2ad-f495961d59e0.json deleted file mode 100644 index 1de2743..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-d718977a-1869-431d-a2ad-f495961d59e0.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "d718977a-1869-431d-a2ad-f495961d59e0", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:31 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "35a1de2d-5080-4c4a-4d68-222ea61f116d::44858300-7cf9-4c02-9796-39f192a3a4b0", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "d718977a-1869-431d-a2ad-f495961d59e0", - "persistent" : true, - "scenarioName" : "scenario-spaces-c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "requiredScenarioState" : "scenario-spaces-c32f8285-5127-42dc-a9b9-6d22bb99fa9d-2", - "insertionIndex" : 34 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-26a2481f-de0e-4f7b-a34d-e2ede58f0180.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-26a2481f-de0e-4f7b-a34d-e2ede58f0180.json deleted file mode 100644 index aedc812..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-26a2481f-de0e-4f7b-a34d-e2ede58f0180.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "26a2481f-de0e-4f7b-a34d-e2ede58f0180", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name:second-app&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:37:24Z\"\n },\n \"entity\": {\n \"name\": \"second-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"332a43ef-5d5d-4873-8d4c-833272d4f595\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"fe0efc19-2829-4925-b84b-b5747648c5e1\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:37:21Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes\",\n \"events_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/events\",\n \"service_bindings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:40:31 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "8a225e0f-4c9d-4a05-4b54-42bb67c237ad::db8f673f-4761-4056-ae2b-73b6fae15016", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "26a2481f-de0e-4f7b-a34d-e2ede58f0180", - "persistent" : true, - "insertionIndex" : 37 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-2b0293a0-e4f0-48bc-b4d6-96a3956e6565.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-2b0293a0-e4f0-48bc-b4d6-96a3956e6565.json deleted file mode 100644 index 6d7d243..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-2b0293a0-e4f0-48bc-b4d6-96a3956e6565.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "2b0293a0-e4f0-48bc-b4d6-96a3956e6565", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name%3Asecond-app&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f\",\n \"created_at\": \"2018-07-20T18:37:20Z\",\n \"updated_at\": \"2018-07-20T18:40:39Z\"\n },\n \"entity\": {\n \"name\": \"second-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1652ee5b-680e-403c-a44b-04dc5c928f41\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"05cbf15b-f855-48df-ad98-b37546895326\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:40:32Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/routes\",\n \"events_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/events\",\n \"service_bindings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/36628f49-84b2-4323-98ca-20205ee3ef1f/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:41:32 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "a41cf1a4-7767-43e2-4711-ce5ae62396e5::ef2ae371-0a81-4bbb-81d6-f95d431c89fe", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "2b0293a0-e4f0-48bc-b4d6-96a3956e6565", - "persistent" : true, - "insertionIndex" : 60 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-9e194d7d-9823-4c62-88e8-29ebfd4d7120.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-9e194d7d-9823-4c62-88e8-29ebfd4d7120.json deleted file mode 100644 index fd88f0e..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-9e194d7d-9823-4c62-88e8-29ebfd4d7120.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "9e194d7d-9823-4c62-88e8-29ebfd4d7120", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name:first-app&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:39:26 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "5dd2d4f1-0da0-481a-63a8-c840761ebf50::c5904a09-b231-44d7-9fbb-71a35040a9f2", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "9e194d7d-9823-4c62-88e8-29ebfd4d7120", - "persistent" : true, - "insertionIndex" : 11 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-cb332ca8-869b-46aa-818a-6b4c033aeb3a.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-cb332ca8-869b-46aa-818a-6b4c033aeb3a.json deleted file mode 100644 index 30c88f9..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-cb332ca8-869b-46aa-818a-6b4c033aeb3a.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "cb332ca8-869b-46aa-818a-6b4c033aeb3a", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name%3Afirst-app&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401\",\n \"created_at\": \"2018-07-20T18:39:26Z\",\n \"updated_at\": \"2018-07-20T18:39:30Z\"\n },\n \"entity\": {\n \"name\": \"first-app\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"05833bef-5aea-425f-98e8-7ea3a598fe8e\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T18:39:27Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes\",\n \"events_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events\",\n \"service_bindings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 18:41:32 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "1d057066-35e7-4167-7391-ccdd8915b351::7e5d2235-ea2e-4087-a633-6c48f2283c75", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "cb332ca8-869b-46aa-818a-6b4c033aeb3a", - "persistent" : true, - "insertionIndex" : 59 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/-fedb95cd-c766-48c3-b08b-6e3dba29c6ed.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/-fedb95cd-c766-48c3-b08b-6e3dba29c6ed.json deleted file mode 100644 index 5e11792..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/-fedb95cd-c766-48c3-b08b-6e3dba29c6ed.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "fedb95cd-c766-48c3-b08b-6e3dba29c6ed", - "name" : "", - "request" : { - "url" : "/", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"links\": {\n \"self\": {\n \"href\": \"http://localhost\"\n },\n \"cloud_controller_v2\": {\n \"href\": \"http://localhost\",\n \"meta\": {\n \"version\": \"2.103.0\"\n }\n },\n \"cloud_controller_v3\": {\n \"href\": \"http://localhost\",\n \"meta\": {\n \"version\": \"3.38.0\"\n }\n },\n \"network_policy_v0\": {\n \"href\": \"http://localhost\"\n },\n \"network_policy_v1\": {\n \"href\": \"http://localhost\"\n },\n \"uaa\": {\n \"href\": \"http://localhost\"\n },\n \"credhub\": null,\n \"routing\": {\n \"href\": \"http://localhost\"\n },\n \"logging\": {\n \"href\": \"wss://localhost\"\n },\n \"app_ssh\": {\n \"href\": \"localhost\",\n \"meta\": {\n \"host_key_fingerprint\": \"8c:db:69:39:90:e1:93:6a:f8:56:e9:a7:68:fc:52:d2\",\n \"oauth_client\": \"ssh-proxy\"\n }\n }\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:54 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "f319134a-a9b3-4ffc-6075-5428b2de7be2::06c9ea42-351a-4e4e-a6cb-335d3fa38962", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "fedb95cd-c766-48c3-b08b-6e3dba29c6ed", - "persistent" : true, - "insertionIndex" : 4 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-029a9270-b176-42c2-8d19-f0e1e62daf49.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-029a9270-b176-42c2-8d19-f0e1e62daf49.json deleted file mode 100644 index 97f63ce..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-029a9270-b176-42c2-8d19-f0e1e62daf49.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "029a9270-b176-42c2-8d19-f0e1e62daf49", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"buildpack\":\"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\"disk_quota\":1024,\"environment_json\":{\"SPRING_APPLICATION_INDEX\":\"${vcap.application.instance_index}\",\"SPRING_APPLICATION_JSON\":\"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\"SPRING_CLOUD_APPLICATION_GUID\":\"${vcap.application.name}:${vcap.application.instance_index}\"},\"health_check_http_endpoint\":\"/health\",\"health_check_timeout\":120,\"health_check_type\":\"port\",\"instances\":1,\"memory\":1024,\"name\":\"app-with-env\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:47:55Z\"\n },\n \"entity\": {\n \"name\": \"app-with-env\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"369e5c0c-5e10-464a-b1d3-d9a5d16ac9aa\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"ec5d8bcb-fedf-4843-9d1a-762868bbc5e3\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:45:10Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes\",\n \"events_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/events\",\n \"service_bindings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:55 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "80417225-a9a4-4a7f-51cc-5baeea109261::55b48601-77ff-402e-a61c-6a71f75e72d6", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "029a9270-b176-42c2-8d19-f0e1e62daf49", - "persistent" : true, - "insertionIndex" : 12 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-0cb5d37f-1de2-4084-afc7-5a0200774f66.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-0cb5d37f-1de2-4084-afc7-5a0200774f66.json deleted file mode 100644 index e1c3bce..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-0cb5d37f-1de2-4084-afc7-5a0200774f66.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "0cb5d37f-1de2-4084-afc7-5a0200774f66", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"state\":\"STOPPED\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:47:59Z\"\n },\n \"entity\": {\n \"name\": \"app-with-env\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STOPPED\",\n \"version\": \"369e5c0c-5e10-464a-b1d3-d9a5d16ac9aa\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"ec5d8bcb-fedf-4843-9d1a-762868bbc5e3\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:47:56Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes\",\n \"events_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/events\",\n \"service_bindings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:59 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "d0e6876a-37a4-4c97-670c-c790db2b4102::353cdd3a-c6be-4669-bb7a-29af39ec1040", - "Keep-Alive" : "timeout=5, max=87", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "0cb5d37f-1de2-4084-afc7-5a0200774f66", - "persistent" : true, - "insertionIndex" : 19 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-2b3663f1-33c3-4bbc-9519-82166cc6aea8.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-2b3663f1-33c3-4bbc-9519-82166cc6aea8.json deleted file mode 100644 index 6b0fa95..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-2b3663f1-33c3-4bbc-9519-82166cc6aea8.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "2b3663f1-33c3-4bbc-9519-82166cc6aea8", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:47:59Z\"\n },\n \"entity\": {\n \"name\": \"app-with-env\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"29ad4b3b-2b9c-42d5-bf2d-c1983a1bc29d\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4231db8f-91ff-4559-92d9-fa7b0120b050\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:47:56Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes\",\n \"events_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/events\",\n \"service_bindings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:48:03 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "c2bbf095-0ce1-4b7f-764b-c027432abcc7::82231c47-33e1-4803-8f49-50e12856b917", - "Keep-Alive" : "timeout=5, max=83", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "2b3663f1-33c3-4bbc-9519-82166cc6aea8", - "persistent" : true, - "scenarioName" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b", - "requiredScenarioState" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b-3", - "newScenarioState" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b-4", - "insertionIndex" : 23 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-334fa879-c3f0-48a2-8e04-681571e9b62d.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-334fa879-c3f0-48a2-8e04-681571e9b62d.json deleted file mode 100644 index 9fc610a..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-334fa879-c3f0-48a2-8e04-681571e9b62d.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "334fa879-c3f0-48a2-8e04-681571e9b62d", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:47:59Z\"\n },\n \"entity\": {\n \"name\": \"app-with-env\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"29ad4b3b-2b9c-42d5-bf2d-c1983a1bc29d\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4231db8f-91ff-4559-92d9-fa7b0120b050\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:47:56Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes\",\n \"events_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/events\",\n \"service_bindings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:48:00 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "2ea363f0-4c15-40e8-5afb-91c808d8b82e::15dd1845-494d-47e9-8b8f-53636a258313", - "Keep-Alive" : "timeout=5, max=84", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "334fa879-c3f0-48a2-8e04-681571e9b62d", - "persistent" : true, - "scenarioName" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b", - "requiredScenarioState" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b-2", - "newScenarioState" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b-3", - "insertionIndex" : 22 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-49aeb364-ae19-497b-aed0-5a50d96fd651.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-49aeb364-ae19-497b-aed0-5a50d96fd651.json deleted file mode 100644 index 26d3f09..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-49aeb364-ae19-497b-aed0-5a50d96fd651.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "49aeb364-ae19-497b-aed0-5a50d96fd651", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"state\":\"STARTED\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:47:59Z\"\n },\n \"entity\": {\n \"name\": \"app-with-env\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"29ad4b3b-2b9c-42d5-bf2d-c1983a1bc29d\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4231db8f-91ff-4559-92d9-fa7b0120b050\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:47:56Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes\",\n \"events_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/events\",\n \"service_bindings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:59 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "ebe53992-dcce-4b6f-615c-219df96e6818::ef9259a0-3a7b-4f6c-93a9-aa9079388133", - "Keep-Alive" : "timeout=5, max=86", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "49aeb364-ae19-497b-aed0-5a50d96fd651", - "persistent" : true, - "insertionIndex" : 20 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-544e8296-c91b-4645-ab0b-4e6330cda341.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-544e8296-c91b-4645-ab0b-4e6330cda341.json deleted file mode 100644 index 4c55fde..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-544e8296-c91b-4645-ab0b-4e6330cda341.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "544e8296-c91b-4645-ab0b-4e6330cda341", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:47:59Z\"\n },\n \"entity\": {\n \"name\": \"app-with-env\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"29ad4b3b-2b9c-42d5-bf2d-c1983a1bc29d\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4231db8f-91ff-4559-92d9-fa7b0120b050\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:47:56Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes\",\n \"events_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/events\",\n \"service_bindings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:59 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "ba26f667-c3a3-49d3-55bd-6f93f0b0f7b0::6fc08376-d67a-4a6c-a3cd-975368339b0d", - "Keep-Alive" : "timeout=5, max=85", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "544e8296-c91b-4645-ab0b-4e6330cda341", - "persistent" : true, - "scenarioName" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b-2", - "insertionIndex" : 21 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-64dc3459-adbd-474b-bcdb-d1507338b992.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-64dc3459-adbd-474b-bcdb-d1507338b992.json deleted file mode 100644 index 668e342..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-64dc3459-adbd-474b-bcdb-d1507338b992.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "64dc3459-adbd-474b-bcdb-d1507338b992", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:47:59Z\"\n },\n \"entity\": {\n \"name\": \"app-with-env\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"29ad4b3b-2b9c-42d5-bf2d-c1983a1bc29d\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4231db8f-91ff-4559-92d9-fa7b0120b050\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:47:56Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes\",\n \"events_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/events\",\n \"service_bindings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:48:30 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "da2f9f75-169b-4417-5632-0003d028c108::a37158e1-2635-4727-b24e-5adae2142845", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "64dc3459-adbd-474b-bcdb-d1507338b992", - "persistent" : true, - "scenarioName" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b", - "requiredScenarioState" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b-6", - "newScenarioState" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b-7", - "insertionIndex" : 26 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-92db4402-c859-44b6-9730-0757f11da439.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-92db4402-c859-44b6-9730-0757f11da439.json deleted file mode 100644 index 70286bc..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-92db4402-c859-44b6-9730-0757f11da439.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "92db4402-c859-44b6-9730-0757f11da439", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:47:59Z\"\n },\n \"entity\": {\n \"name\": \"app-with-env\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"29ad4b3b-2b9c-42d5-bf2d-c1983a1bc29d\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4231db8f-91ff-4559-92d9-fa7b0120b050\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:47:56Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes\",\n \"events_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/events\",\n \"service_bindings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:48:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "bf5c09b6-e23c-481e-7842-a006d9c6e949::f63caabb-54c4-4db9-aae6-2b7aa118ab48", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "92db4402-c859-44b6-9730-0757f11da439", - "persistent" : true, - "scenarioName" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b", - "requiredScenarioState" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b-7", - "insertionIndex" : 27 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-ae1031e4-431a-45c9-ac50-9547b5161bf7.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-ae1031e4-431a-45c9-ac50-9547b5161bf7.json deleted file mode 100644 index ff07445..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-ae1031e4-431a-45c9-ac50-9547b5161bf7.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "ae1031e4-431a-45c9-ac50-9547b5161bf7", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:47:59Z\"\n },\n \"entity\": {\n \"name\": \"app-with-env\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"29ad4b3b-2b9c-42d5-bf2d-c1983a1bc29d\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4231db8f-91ff-4559-92d9-fa7b0120b050\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:47:56Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes\",\n \"events_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/events\",\n \"service_bindings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:48:07 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "7aab5519-96ab-4cd8-6c8f-449ef8a39f4c::16f54639-a1cd-4d9b-9634-06ab0d519e83", - "Keep-Alive" : "timeout=5, max=82", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "ae1031e4-431a-45c9-ac50-9547b5161bf7", - "persistent" : true, - "scenarioName" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b", - "requiredScenarioState" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b-4", - "newScenarioState" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b-5", - "insertionIndex" : 24 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-b19e0a63-218a-4441-9a0d-4cb68df62d84.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-b19e0a63-218a-4441-9a0d-4cb68df62d84.json deleted file mode 100644 index ba70d95..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b-b19e0a63-218a-4441-9a0d-4cb68df62d84.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "b19e0a63-218a-4441-9a0d-4cb68df62d84", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:47:59Z\"\n },\n \"entity\": {\n \"name\": \"app-with-env\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"29ad4b3b-2b9c-42d5-bf2d-c1983a1bc29d\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4231db8f-91ff-4559-92d9-fa7b0120b050\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:47:56Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes\",\n \"events_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/events\",\n \"service_bindings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:48:15 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "c81b6c56-43ea-4038-74d9-062157c56b6e::c2a95da4-c849-4f3c-80c4-3e3c215ba424", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "b19e0a63-218a-4441-9a0d-4cb68df62d84", - "persistent" : true, - "scenarioName" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b", - "requiredScenarioState" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b-5", - "newScenarioState" : "scenario-apps-c799e398-77b7-4798-92a0-30dc7c87e50b-6", - "insertionIndex" : 25 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_bits-fb2cff3d-5c42-4081-9783-b61a38aa7015.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_bits-fb2cff3d-5c42-4081-9783-b61a38aa7015.json deleted file mode 100644 index fac7019..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_bits-fb2cff3d-5c42-4081-9783-b61a38aa7015.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "fb2cff3d-5c42-4081-9783-b61a38aa7015", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_bits", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/bits?async=true", - "method" : "PUT", - "bodyPatterns" : [ { - "anything" : "anything" - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"becc794d-d8ff-48c3-b801-c97577f3e668\",\n \"created_at\": \"2018-07-20T19:47:56Z\",\n \"url\": \"/v2/jobs/becc794d-d8ff-48c3-b801-c97577f3e668\"\n },\n \"entity\": {\n \"guid\": \"becc794d-d8ff-48c3-b801-c97577f3e668\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:56 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "aac6121f-5f28-4ac2-5859-1d0eee041872::24169e3f-374b-41fb-9417-0601eb71a67a", - "Keep-Alive" : "timeout=5, max=91", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "fb2cff3d-5c42-4081-9783-b61a38aa7015", - "persistent" : true, - "insertionIndex" : 15 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_env-1ccc8d37-33f6-44df-98a1-effeb7e70852.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_env-1ccc8d37-33f6-44df-98a1-effeb7e70852.json deleted file mode 100644 index a3f7de3..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_env-1ccc8d37-33f6-44df-98a1-effeb7e70852.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "1ccc8d37-33f6-44df-98a1-effeb7e70852", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_env", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/env", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"staging_env_json\": {\n\n },\n \"running_env_json\": {\n\n },\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"system_env_json\": {\n \"VCAP_SERVICES\": {\n\n }\n },\n \"application_env_json\": {\n \"VCAP_APPLICATION\": {\n \"cf_api\": \"http://localhost\",\n \"limits\": {\n \"fds\": 16384,\n \"mem\": 1024,\n \"disk\": 1024\n },\n \"application_name\": \"app-with-env\",\n \"application_uris\": [\n \"app-with-env.apps.scottfrederick.io\"\n ],\n \"name\": \"app-with-env\",\n \"space_name\": \"development\",\n \"space_id\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"uris\": [\n \"app-with-env.apps.scottfrederick.io\"\n ],\n \"users\": null,\n \"application_id\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"version\": \"29ad4b3b-2b9c-42d5-bf2d-c1983a1bc29d\",\n \"application_version\": \"29ad4b3b-2b9c-42d5-bf2d-c1983a1bc29d\"\n }\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:48:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "72399537-b7d7-4725-765b-83b70a66730a::e2c5ade5-affd-47ba-8935-b8c95e87d91b", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "1ccc8d37-33f6-44df-98a1-effeb7e70852", - "persistent" : true, - "insertionIndex" : 33 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances-1ff71029-e663-4caf-9969-465238adef52.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances-1ff71029-e663-4caf-9969-465238adef52.json deleted file mode 100644 index 8387346..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances-1ff71029-e663-4caf-9969-465238adef52.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "1ff71029-e663-4caf-9969-465238adef52", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"RUNNING\",\"uptime\":0,\"since\":1532116131}}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:48:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "80ff6b84-c160-464a-7c2a-ae38b91cc801::b0e61e36-5ebb-4f2f-a96e-6b170e4977fd", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "1ff71029-e663-4caf-9969-465238adef52", - "persistent" : true, - "scenarioName" : "scenario-c799e398-77b7-4798-92a0-30dc7c87e50b-instances", - "requiredScenarioState" : "scenario-c799e398-77b7-4798-92a0-30dc7c87e50b-instances-4", - "insertionIndex" : 31 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances-410ab642-499a-45be-b706-f221c19f770d.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances-410ab642-499a-45be-b706-f221c19f770d.json deleted file mode 100644 index 35499ae..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances-410ab642-499a-45be-b706-f221c19f770d.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "410ab642-499a-45be-b706-f221c19f770d", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"STARTING\",\"uptime\":7,\"since\":1532116121}}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:48:48 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "e6f793bb-967d-4b4c-7689-895e5da93a02::507abfa6-0761-44f7-aad8-f94d9534450e", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "410ab642-499a-45be-b706-f221c19f770d", - "persistent" : true, - "scenarioName" : "scenario-c799e398-77b7-4798-92a0-30dc7c87e50b-instances", - "requiredScenarioState" : "scenario-c799e398-77b7-4798-92a0-30dc7c87e50b-instances-3", - "newScenarioState" : "scenario-c799e398-77b7-4798-92a0-30dc7c87e50b-instances-4", - "insertionIndex" : 30 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances-5a261372-6f0d-4869-b1be-1204645aaa06.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances-5a261372-6f0d-4869-b1be-1204645aaa06.json deleted file mode 100644 index a0f3baa..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances-5a261372-6f0d-4869-b1be-1204645aaa06.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "5a261372-6f0d-4869-b1be-1204645aaa06", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"STARTING\",\"uptime\":4,\"since\":1532116121}}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:48:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "1f0203cd-8a3a-4e59-619c-665c6c7e1427::7e6071c5-f09e-4574-837d-162b60d7e76a", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "5a261372-6f0d-4869-b1be-1204645aaa06", - "persistent" : true, - "scenarioName" : "scenario-c799e398-77b7-4798-92a0-30dc7c87e50b-instances", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-c799e398-77b7-4798-92a0-30dc7c87e50b-instances-2", - "insertionIndex" : 28 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances-6759f23e-c4d8-4bc5-8d6f-dc9fc183d9bc.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances-6759f23e-c4d8-4bc5-8d6f-dc9fc183d9bc.json deleted file mode 100644 index 3086150..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances-6759f23e-c4d8-4bc5-8d6f-dc9fc183d9bc.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "6759f23e-c4d8-4bc5-8d6f-dc9fc183d9bc", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_instances", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"STARTING\",\"uptime\":5,\"since\":1532116121}}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:48:46 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "3e9725b0-6372-4de7-4b33-e6729c089e80::0af7b7ff-5a76-446d-9b0b-8407c5bf7474", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "6759f23e-c4d8-4bc5-8d6f-dc9fc183d9bc", - "persistent" : true, - "scenarioName" : "scenario-c799e398-77b7-4798-92a0-30dc7c87e50b-instances", - "requiredScenarioState" : "scenario-c799e398-77b7-4798-92a0-30dc7c87e50b-instances-2", - "newScenarioState" : "scenario-c799e398-77b7-4798-92a0-30dc7c87e50b-instances-3", - "insertionIndex" : 29 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_routes-b45c0e1d-f66a-4054-856d-78764daf9313.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_routes-b45c0e1d-f66a-4054-856d-78764daf9313.json deleted file mode 100644 index ec2b33c..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_routes-b45c0e1d-f66a-4054-856d-78764daf9313.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "b45c0e1d-f66a-4054-856d-78764daf9313", - "name" : "v2_apps_c799e398-77b7-4798-92a0-30dc7c87e50b_routes", - "request" : { - "url" : "/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"9c297e00-2d63-434d-80f2-922cd1343858\",\n \"url\": \"/v2/routes/9c297e00-2d63-434d-80f2-922cd1343858\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:25:49Z\"\n },\n \"entity\": {\n \"host\": \"app-with-env\",\n \"path\": \"\",\n \"domain_guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"service_instance_guid\": null,\n \"port\": null,\n \"domain_url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"apps_url\": \"/v2/routes/9c297e00-2d63-434d-80f2-922cd1343858/apps\",\n \"route_mappings_url\": \"/v2/routes/9c297e00-2d63-434d-80f2-922cd1343858/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:55 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "cd2b7b59-2d1f-4fca-7607-883587d44527::8a108c84-7055-422c-9cf5-a24ac07f6d57", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "b45c0e1d-f66a-4054-856d-78764daf9313", - "persistent" : true, - "insertionIndex" : 13 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_info-2552257c-61f0-4191-b167-29145a55ab93.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_info-2552257c-61f0-4191-b167-29145a55ab93.json deleted file mode 100644 index ababa19..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_info-2552257c-61f0-4191-b167-29145a55ab93.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "2552257c-61f0-4191-b167-29145a55ab93", - "name" : "v2_info", - "request" : { - "url" : "/v2/info", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"name\":\"\",\"build\":\"\",\"support\":\"https://support.pivotal.io\",\"version\":0,\"description\":\"\",\"authorization_endpoint\":\"http://localhost\"}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:54 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "dc88c56d-e123-4ea8-4cd9-d1809e3aaf0c::6d918b98-1e2f-44a2-b1f7-aa8f2a51e39b", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "2552257c-61f0-4191-b167-29145a55ab93", - "persistent" : true, - "insertionIndex" : 5 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_jobs_becc794d-d8ff-48c3-b801-c97577f3e668-019cc415-1250-422c-9555-c2cbaef95a69.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_jobs_becc794d-d8ff-48c3-b801-c97577f3e668-019cc415-1250-422c-9555-c2cbaef95a69.json deleted file mode 100644 index 1edc476..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_jobs_becc794d-d8ff-48c3-b801-c97577f3e668-019cc415-1250-422c-9555-c2cbaef95a69.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "019cc415-1250-422c-9555-c2cbaef95a69", - "name" : "v2_jobs_becc794d-d8ff-48c3-b801-c97577f3e668", - "request" : { - "url" : "/v2/jobs/becc794d-d8ff-48c3-b801-c97577f3e668", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"becc794d-d8ff-48c3-b801-c97577f3e668\",\n \"created_at\": \"2018-07-20T19:47:56Z\",\n \"url\": \"/v2/jobs/becc794d-d8ff-48c3-b801-c97577f3e668\"\n },\n \"entity\": {\n \"guid\": \"becc794d-d8ff-48c3-b801-c97577f3e668\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:56 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "53bf070c-5981-40d9-6b6c-fa0cc388c9f0::6eda5889-c3b0-4ac2-b6a5-56fbdb47886b", - "Keep-Alive" : "timeout=5, max=90", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "019cc415-1250-422c-9555-c2cbaef95a69", - "persistent" : true, - "scenarioName" : "scenario-jobs-becc794d-d8ff-48c3-b801-c97577f3e668", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-jobs-becc794d-d8ff-48c3-b801-c97577f3e668-2", - "insertionIndex" : 16 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_jobs_becc794d-d8ff-48c3-b801-c97577f3e668-70ffcadb-ce63-4004-9a8a-69701f84295f.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_jobs_becc794d-d8ff-48c3-b801-c97577f3e668-70ffcadb-ce63-4004-9a8a-69701f84295f.json deleted file mode 100644 index 003b597..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_jobs_becc794d-d8ff-48c3-b801-c97577f3e668-70ffcadb-ce63-4004-9a8a-69701f84295f.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "70ffcadb-ce63-4004-9a8a-69701f84295f", - "name" : "v2_jobs_becc794d-d8ff-48c3-b801-c97577f3e668", - "request" : { - "url" : "/v2/jobs/becc794d-d8ff-48c3-b801-c97577f3e668", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"becc794d-d8ff-48c3-b801-c97577f3e668\",\n \"created_at\": \"2018-07-20T19:47:56Z\",\n \"url\": \"/v2/jobs/becc794d-d8ff-48c3-b801-c97577f3e668\"\n },\n \"entity\": {\n \"guid\": \"becc794d-d8ff-48c3-b801-c97577f3e668\",\n \"status\": \"running\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:57 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "e670c049-c0b8-4e85-41c8-e29623431eaa::09eededa-ba3b-4588-be63-b805ec8faf09", - "Keep-Alive" : "timeout=5, max=89", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "70ffcadb-ce63-4004-9a8a-69701f84295f", - "persistent" : true, - "scenarioName" : "scenario-jobs-becc794d-d8ff-48c3-b801-c97577f3e668", - "requiredScenarioState" : "scenario-jobs-becc794d-d8ff-48c3-b801-c97577f3e668-2", - "newScenarioState" : "scenario-jobs-becc794d-d8ff-48c3-b801-c97577f3e668-3", - "insertionIndex" : 17 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_jobs_becc794d-d8ff-48c3-b801-c97577f3e668-cbc2c073-0f68-430d-9e8c-7ad519419564.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_jobs_becc794d-d8ff-48c3-b801-c97577f3e668-cbc2c073-0f68-430d-9e8c-7ad519419564.json deleted file mode 100644 index 3916518..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_jobs_becc794d-d8ff-48c3-b801-c97577f3e668-cbc2c073-0f68-430d-9e8c-7ad519419564.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "cbc2c073-0f68-430d-9e8c-7ad519419564", - "name" : "v2_jobs_becc794d-d8ff-48c3-b801-c97577f3e668", - "request" : { - "url" : "/v2/jobs/becc794d-d8ff-48c3-b801-c97577f3e668", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"0\",\n \"created_at\": \"1970-01-01T00:00:00Z\",\n \"url\": \"/v2/jobs/0\"\n },\n \"entity\": {\n \"guid\": \"0\",\n \"status\": \"finished\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:59 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "2f494d37-3a67-4e66-5f83-611f7322b61c::7e861228-17f5-4373-9cce-b698f60ae5c3", - "Keep-Alive" : "timeout=5, max=88", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "cbc2c073-0f68-430d-9e8c-7ad519419564", - "persistent" : true, - "scenarioName" : "scenario-jobs-becc794d-d8ff-48c3-b801-c97577f3e668", - "requiredScenarioState" : "scenario-jobs-becc794d-d8ff-48c3-b801-c97577f3e668-3", - "insertionIndex" : 18 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_organizations-15e4eac6-db86-4a1f-8c8a-a258306d5178.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_organizations-15e4eac6-db86-4a1f-8c8a-a258306d5178.json deleted file mode 100644 index 830ffab..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_organizations-15e4eac6-db86-4a1f-8c8a-a258306d5178.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "15e4eac6-db86-4a1f-8c8a-a258306d5178", - "name" : "v2_organizations", - "request" : { - "url" : "/v2/organizations?q=name:test&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"created_at\": \"2018-07-19T20:33:45Z\",\n \"updated_at\": \"2018-07-19T20:33:45Z\"\n },\n \"entity\": {\n \"name\": \"test\",\n \"billing_enabled\": false,\n \"quota_definition_guid\": \"7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"status\": \"active\",\n \"default_isolation_segment_guid\": null,\n \"quota_definition_url\": \"/v2/quota_definitions/7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"spaces_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/spaces\",\n \"domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/domains\",\n \"private_domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains\",\n \"users_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/users\",\n \"managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/managers\",\n \"billing_managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/billing_managers\",\n \"auditors_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/auditors\",\n \"app_events_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/app_events\",\n \"space_quota_definitions_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/space_quota_definitions\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:54 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "71788d70-f0ee-4504-4afa-4842a2726026::e60405f9-e759-4df4-b4c1-a345d918f8f6", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "15e4eac6-db86-4a1f-8c8a-a258306d5178", - "persistent" : true, - "insertionIndex" : 6 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_organizations-8c5b1cd0-1f7a-4e90-8029-999413ed5b6c.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_organizations-8c5b1cd0-1f7a-4e90-8029-999413ed5b6c.json deleted file mode 100644 index 363d0e6..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_organizations-8c5b1cd0-1f7a-4e90-8029-999413ed5b6c.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "8c5b1cd0-1f7a-4e90-8029-999413ed5b6c", - "name" : "v2_organizations", - "request" : { - "url" : "/v2/organizations?q=name%3Atest", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"created_at\": \"2018-07-19T20:33:45Z\",\n \"updated_at\": \"2018-07-19T20:33:45Z\"\n },\n \"entity\": {\n \"name\": \"test\",\n \"billing_enabled\": false,\n \"quota_definition_guid\": \"7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"status\": \"active\",\n \"default_isolation_segment_guid\": null,\n \"quota_definition_url\": \"/v2/quota_definitions/7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"spaces_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/spaces\",\n \"domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/domains\",\n \"private_domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains\",\n \"users_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/users\",\n \"managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/managers\",\n \"billing_managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/billing_managers\",\n \"auditors_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/auditors\",\n \"app_events_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/app_events\",\n \"space_quota_definitions_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/space_quota_definitions\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:53 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "cd0c77f7-8bbc-4c7c-7083-7f0dfe559b7a::90d3eca8-011a-4566-8d2e-57dc2454d4b6", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "8c5b1cd0-1f7a-4e90-8029-999413ed5b6c", - "persistent" : true, - "insertionIndex" : 2 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-8c2a49aa-a2ae-47a7-9d7a-405cf8c05ef8.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-8c2a49aa-a2ae-47a7-9d7a-405cf8c05ef8.json deleted file mode 100644 index a86473d..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-8c2a49aa-a2ae-47a7-9d7a-405cf8c05ef8.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "8c2a49aa-a2ae-47a7-9d7a-405cf8c05ef8", - "name" : "v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains", - "request" : { - "url" : "/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:55 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "f4ba8ed2-e7f7-4cf3-410b-b3067e6db100::dc6f9f33-c64f-4ce0-a92b-27ce58af406a", - "Keep-Alive" : "timeout=5, max=93", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "8c2a49aa-a2ae-47a7-9d7a-405cf8c05ef8", - "persistent" : true, - "insertionIndex" : 9 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_resource_match-d41b2bf4-b202-4475-9a57-31e1f421a327.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_resource_match-d41b2bf4-b202-4475-9a57-31e1f421a327.json deleted file mode 100644 index 633a3d6..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_resource_match-d41b2bf4-b202-4475-9a57-31e1f421a327.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "d41b2bf4-b202-4475-9a57-31e1f421a327", - "name" : "v2_resource_match", - "request" : { - "url" : "/v2/resource_match", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "[{\"sha1\":\"5aa239d8ad6d8130b055caebf44467b9c55d422b\",\"mode\":\"100644\",\"size\":461472},{\"sha1\":\"4c2dd0f89549ee38a588808acfa24797c196b7cb\",\"mode\":\"100644\",\"size\":1779},{\"sha1\":\"4e36bfa02cd464e99d82008a787dcf66ddf2dadc\",\"mode\":\"100644\",\"size\":2688},{\"sha1\":\"ff9d64ab3b825c6b8ed7c64694d0521918785ae2\",\"mode\":\"100644\",\"size\":299},{\"sha1\":\"7caad34f01d2688919e15e09a90467963e3d5190\",\"mode\":\"100644\",\"size\":613},{\"sha1\":\"cb855558e6271b1b32e716d24cb85c7f583ce09e\",\"mode\":\"100644\",\"size\":93107},{\"sha1\":\"0af5364cd6679bfffb114f0dec8a157aaa283b76\",\"mode\":\"100644\",\"size\":4596},{\"sha1\":\"d370eeff676d24523ee530f6abc569474d2f9bf9\",\"mode\":\"100644\",\"size\":612},{\"sha1\":\"011bc4cc96b08fabad2b3186755818fa0b32d83f\",\"mode\":\"100644\",\"size\":1162436},{\"sha1\":\"d963a184197107a75952666c831f14cb662933b7\",\"mode\":\"100644\",\"size\":3608},{\"sha1\":\"8664b2431c82e94493723054cbf5ff341c8ecdb7\",\"mode\":\"100644\",\"size\":5203},{\"sha1\":\"414ffd8db5d733bf88256d5fd8ebb9fd2aff3108\",\"mode\":\"100644\",\"size\":1527},{\"sha1\":\"f9170b781caecaa2127d9d8baf9964e599eb605a\",\"mode\":\"100644\",\"size\":733},{\"sha1\":\"d63a2b8de1abe4092e03ada60bb8d5e26aa73562\",\"mode\":\"100644\",\"size\":1721},{\"sha1\":\"152dbb704f32fef5c6841c46488bf1bb57b6ba5b\",\"mode\":\"100644\",\"size\":1374},{\"sha1\":\"41fd4180bea3813de8f3c602b5a126218360315b\",\"mode\":\"100644\",\"size\":588},{\"sha1\":\"3e324efa4aff13f75357a34a71366d1c20a59e88\",\"mode\":\"100644\",\"size\":4015},{\"sha1\":\"2abf786c56d4cd17c289b56c7ae21b30b6ba5ab7\",\"mode\":\"100644\",\"size\":345},{\"sha1\":\"154a9ab94c152458ebf0f314126fa959d712be9c\",\"mode\":\"100644\",\"size\":4624},{\"sha1\":\"9bc041759fd397c07e01f3af486ba70f7d0b14ba\",\"mode\":\"100644\",\"size\":945},{\"sha1\":\"934c04d3cfef185a8008e7bf34331b79730a9d43\",\"mode\":\"100644\",\"size\":26586},{\"sha1\":\"9e1ac84eed220281841b75e72fb9de5a297fbf04\",\"mode\":\"100644\",\"size\":117910},{\"sha1\":\"1c7dee76e2a1eb2b3f4600b89a4398d8f93a2874\",\"mode\":\"100644\",\"size\":129},{\"sha1\":\"01295d86ab56891a989cd6a9fe84fa169f287e6f\",\"mode\":\"100644\",\"size\":4976},{\"sha1\":\"3dacf0841881da8fe564bc58a6c22227b7dcab71\",\"mode\":\"100644\",\"size\":1585},{\"sha1\":\"b2a3686010af53ce71da04880a704ac957c7a47e\",\"mode\":\"100644\",\"size\":3555},{\"sha1\":\"58709490fb98f037070be9387d97abbf62dcd684\",\"mode\":\"100644\",\"size\":3837},{\"sha1\":\"0da88b36af193860ba6d007c1af3ce5b589b923b\",\"mode\":\"100644\",\"size\":5243},{\"sha1\":\"2d998d3d674b172a588e54ab619854d073f555b5\",\"mode\":\"100644\",\"size\":297518},{\"sha1\":\"2e389a8727588c549c28bb277f0f573f65554850\",\"mode\":\"100644\",\"size\":645},{\"sha1\":\"ea54f6193d224e5e5732bbd4262327eb465397c2\",\"mode\":\"100644\",\"size\":99987},{\"sha1\":\"699016ddf454c2c167d9f84ae5777eccadf54728\",\"mode\":\"100644\",\"size\":21703},{\"sha1\":\"2ed9db8f21cf1c5d65f0f4fd734078cc255998e7\",\"mode\":\"100644\",\"size\":437},{\"sha1\":\"03d5f48f10bbe4eb7bd862f10c0583be2e0053c6\",\"mode\":\"100644\",\"size\":65100},{\"sha1\":\"da39a3ee5e6b4b0d3255bfef95601890afd80709\",\"mode\":\"100644\",\"size\":0},{\"sha1\":\"fe111141e88286b0e243e4cb8dc583dbad789bc7\",\"mode\":\"100644\",\"size\":282},{\"sha1\":\"38f0748e222b21ef6f9913b054c7ed1a818eb42d\",\"mode\":\"100644\",\"size\":266},{\"sha1\":\"9a29444393acc68bee96bc82adda9607dbe1d0a0\",\"mode\":\"100644\",\"size\":1593},{\"sha1\":\"cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\",\"mode\":\"100644\",\"size\":1349339},{\"sha1\":\"7c4f3c474fb2c041d8028740440937705ebb473a\",\"mode\":\"100644\",\"size\":290339},{\"sha1\":\"da76ca59f6a57ee3102f8f9bd9cee742973efa8a\",\"mode\":\"100644\",\"size\":41203},{\"sha1\":\"ffaa050dbd36b0441645598f1a7ddaf67fd5e678\",\"mode\":\"100644\",\"size\":592},{\"sha1\":\"c5eaa23f5bb1f0f4b7eb44824093874d0d9165f5\",\"mode\":\"100644\",\"size\":352776},{\"sha1\":\"47c87d1e377678c051ec1e5225333ba4d7d9d05a\",\"mode\":\"100644\",\"size\":702},{\"sha1\":\"e0f3ab697ceccda84083488dc98e638148934520\",\"mode\":\"100644\",\"size\":1081},{\"sha1\":\"72bb957e4e0a2e42056230c683238b1b783da10d\",\"mode\":\"100644\",\"size\":616},{\"sha1\":\"25a51a75bfb997b7b95d6760178ee3303863ec4b\",\"mode\":\"100644\",\"size\":591},{\"sha1\":\"b86c3da72f30bd20dd82988ab6f370c13c616022\",\"mode\":\"100644\",\"size\":10728},{\"sha1\":\"e7d522eb60e66a2d9a0aa7edfcaf8ce287f25752\",\"mode\":\"100644\",\"size\":2062},{\"sha1\":\"0546460176b54aeeca93080900aece6f7229f680\",\"mode\":\"100644\",\"size\":302},{\"sha1\":\"73b260df53aa71535bab27e4971796954958b5d5\",\"mode\":\"100644\",\"size\":1997},{\"sha1\":\"54b731178d81e66eca9623df772ff32718208137\",\"mode\":\"100644\",\"size\":1226075},{\"sha1\":\"38b942875b91697c636c94b2c846c0e074ef1a07\",\"mode\":\"100644\",\"size\":9852},{\"sha1\":\"7049e9e927d6bbeb1463e76452e290f92661ec1d\",\"mode\":\"100644\",\"size\":3116},{\"sha1\":\"07c10d545325e3a6e72e06381afe469fd40eb701\",\"mode\":\"100644\",\"size\":66519},{\"sha1\":\"4e393793c37c77e042ccc7be5a914ae39251b365\",\"mode\":\"100644\",\"size\":323848},{\"sha1\":\"fec5797a55b786184a537abd39c3fa1449d752d6\",\"mode\":\"100644\",\"size\":255485},{\"sha1\":\"c4c8204bdde87f3e93a21d741cc5358f70e57829\",\"mode\":\"100644\",\"size\":5687},{\"sha1\":\"864344400c3d4d92dfeb0a305dc87d953677c03c\",\"mode\":\"100644\",\"size\":471901},{\"sha1\":\"2e04c6c2922fbfa06b5948be14a5782db168b6ec\",\"mode\":\"100644\",\"size\":1254656},{\"sha1\":\"8b2c25bd7d759b111d0753b8dfbdecac952c495e\",\"mode\":\"100644\",\"size\":14915},{\"sha1\":\"7b962117a6f8c03809104d47533c131e3218e174\",\"mode\":\"100644\",\"size\":540},{\"sha1\":\"b874870d915adbc3dd932e19077d3d45c8e54aa0\",\"mode\":\"100644\",\"size\":930680},{\"sha1\":\"06e73803e03b47891d5aeb1f24ca2cfd3940a923\",\"mode\":\"100644\",\"size\":4684},{\"sha1\":\"cd4bb73ce7e6d08086cb9b88e6ff8734372999d3\",\"mode\":\"100644\",\"size\":4306},{\"sha1\":\"751c871527ec7ff335ffc76f2e737e297c0a8d30\",\"mode\":\"100644\",\"size\":789866},{\"sha1\":\"fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef\",\"mode\":\"100644\",\"size\":366340},{\"sha1\":\"a068327cb0a1439c99c0b36d504c488f4e80483f\",\"mode\":\"100644\",\"size\":1502},{\"sha1\":\"187248459a73eaf34e8264db20a33961e35426df\",\"mode\":\"100644\",\"size\":19737},{\"sha1\":\"3a536e1ac71b82627c3a7408eb38fa0704cb9034\",\"mode\":\"100644\",\"size\":240244},{\"sha1\":\"af324ebf4e72e10fcac6c5ac008636a4d41a5cf2\",\"mode\":\"100644\",\"size\":7336},{\"sha1\":\"ca01fb473f53dd0ee3c85663b26d5dc325602057\",\"mode\":\"100644\",\"size\":280032},{\"sha1\":\"82ec0aa4d240f7eb17788fcf6e5d32b012abebf4\",\"mode\":\"100644\",\"size\":273},{\"sha1\":\"dfe3be1a15b150f2eb7f5f27ee6645ced87d8f6e\",\"mode\":\"100644\",\"size\":5267},{\"sha1\":\"84af6fc0cb1f57fcf8fffac62c4df1b632af0efb\",\"mode\":\"100644\",\"size\":3263},{\"sha1\":\"28a84685bb9c1b63218221e60a3112b014e5eb57\",\"mode\":\"100644\",\"size\":485},{\"sha1\":\"769c0b82cb2421c8256300e907298a9410a2a3d3\",\"mode\":\"100644\",\"size\":29779},{\"sha1\":\"8313c1e792bc063978d8da9351f3b3f7e2c62d3e\",\"mode\":\"100644\",\"size\":3414},{\"sha1\":\"06564e716b89de5eaa0dd234ae7989576503ddf3\",\"mode\":\"100644\",\"size\":256776},{\"sha1\":\"243a23f8968de8754d8199d669780d683ab177bd\",\"mode\":\"100644\",\"size\":1090739},{\"sha1\":\"3789d00e859632e6c6206adc0c71625559e6e3b0\",\"mode\":\"100644\",\"size\":66469},{\"sha1\":\"242c7585b8c5007ddc8637c8e8d1eabe9b35ab42\",\"mode\":\"100644\",\"size\":1487},{\"sha1\":\"f7e631ccf49cfc0aefa4a2a728da7d374c05bd3c\",\"mode\":\"100644\",\"size\":17519},{\"sha1\":\"11d4aec9dfcec2e04622ce3078aedc68b2f98278\",\"mode\":\"100644\",\"size\":1484},{\"sha1\":\"4236051a8d209c00f85e70918d5e26d9f3e5201e\",\"mode\":\"100644\",\"size\":1133563},{\"sha1\":\"92871c480d939d240c4acac88913a383094fe1c3\",\"mode\":\"100644\",\"size\":1233},{\"sha1\":\"9dd235da986d0c06739c0e42d527343b3d8a447c\",\"mode\":\"100644\",\"size\":1102},{\"sha1\":\"f3e3392c3e8e2714fc05bbf0f3ee496ad19eedc7\",\"mode\":\"100644\",\"size\":379277},{\"sha1\":\"f5adf7ed8c34aa005b22b6a2dc7b6796e10e9c79\",\"mode\":\"100644\",\"size\":3115994},{\"sha1\":\"45a5ec14da7bc166fc73c52fd091f5a01bd66e56\",\"mode\":\"100644\",\"size\":11509},{\"sha1\":\"456895fc91bf7180b216fead220373e6278230c9\",\"mode\":\"100644\",\"size\":33395},{\"sha1\":\"df8fdb927c0e035487031c9b33e33c15b0df5f8a\",\"mode\":\"100644\",\"size\":1693},{\"sha1\":\"c1196cb3e56da83e3c3a02ef323699f4b05feedc\",\"mode\":\"100644\",\"size\":660545},{\"sha1\":\"129acd77a4b6ee30d62d3a0899b1344c8ec2bff8\",\"mode\":\"100644\",\"size\":8645},{\"sha1\":\"daa252ffd6a1f363b51de18cb0adab39711006a9\",\"mode\":\"100644\",\"size\":1953}]", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "[{\"sha1\":\"5aa239d8ad6d8130b055caebf44467b9c55d422b\",\"mode\":\"100644\",\"size\":461472},{\"sha1\":\"cb855558e6271b1b32e716d24cb85c7f583ce09e\",\"mode\":\"100644\",\"size\":93107},{\"sha1\":\"011bc4cc96b08fabad2b3186755818fa0b32d83f\",\"mode\":\"100644\",\"size\":1162436},{\"sha1\":\"9e1ac84eed220281841b75e72fb9de5a297fbf04\",\"mode\":\"100644\",\"size\":117910},{\"sha1\":\"2d998d3d674b172a588e54ab619854d073f555b5\",\"mode\":\"100644\",\"size\":297518},{\"sha1\":\"ea54f6193d224e5e5732bbd4262327eb465397c2\",\"mode\":\"100644\",\"size\":99987},{\"sha1\":\"cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\",\"mode\":\"100644\",\"size\":1349339},{\"sha1\":\"7c4f3c474fb2c041d8028740440937705ebb473a\",\"mode\":\"100644\",\"size\":290339},{\"sha1\":\"c5eaa23f5bb1f0f4b7eb44824093874d0d9165f5\",\"mode\":\"100644\",\"size\":352776},{\"sha1\":\"54b731178d81e66eca9623df772ff32718208137\",\"mode\":\"100644\",\"size\":1226075},{\"sha1\":\"07c10d545325e3a6e72e06381afe469fd40eb701\",\"mode\":\"100644\",\"size\":66519},{\"sha1\":\"4e393793c37c77e042ccc7be5a914ae39251b365\",\"mode\":\"100644\",\"size\":323848},{\"sha1\":\"fec5797a55b786184a537abd39c3fa1449d752d6\",\"mode\":\"100644\",\"size\":255485},{\"sha1\":\"864344400c3d4d92dfeb0a305dc87d953677c03c\",\"mode\":\"100644\",\"size\":471901},{\"sha1\":\"2e04c6c2922fbfa06b5948be14a5782db168b6ec\",\"mode\":\"100644\",\"size\":1254656},{\"sha1\":\"b874870d915adbc3dd932e19077d3d45c8e54aa0\",\"mode\":\"100644\",\"size\":930680},{\"sha1\":\"751c871527ec7ff335ffc76f2e737e297c0a8d30\",\"mode\":\"100644\",\"size\":789866},{\"sha1\":\"fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef\",\"mode\":\"100644\",\"size\":366340},{\"sha1\":\"3a536e1ac71b82627c3a7408eb38fa0704cb9034\",\"mode\":\"100644\",\"size\":240244},{\"sha1\":\"ca01fb473f53dd0ee3c85663b26d5dc325602057\",\"mode\":\"100644\",\"size\":280032},{\"sha1\":\"06564e716b89de5eaa0dd234ae7989576503ddf3\",\"mode\":\"100644\",\"size\":256776},{\"sha1\":\"243a23f8968de8754d8199d669780d683ab177bd\",\"mode\":\"100644\",\"size\":1090739},{\"sha1\":\"3789d00e859632e6c6206adc0c71625559e6e3b0\",\"mode\":\"100644\",\"size\":66469},{\"sha1\":\"4236051a8d209c00f85e70918d5e26d9f3e5201e\",\"mode\":\"100644\",\"size\":1133563},{\"sha1\":\"f3e3392c3e8e2714fc05bbf0f3ee496ad19eedc7\",\"mode\":\"100644\",\"size\":379277},{\"sha1\":\"f5adf7ed8c34aa005b22b6a2dc7b6796e10e9c79\",\"mode\":\"100644\",\"size\":3115994},{\"sha1\":\"c1196cb3e56da83e3c3a02ef323699f4b05feedc\",\"mode\":\"100644\",\"size\":660545}]", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:55 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "8d5dfde6-ea4a-40b4-7d9a-e10077adacd0::ab7ddae9-0855-4d3f-a03a-81922284993c", - "Keep-Alive" : "timeout=5, max=92", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "d41b2bf4-b202-4475-9a57-31e1f421a327", - "persistent" : true, - "insertionIndex" : 14 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-6e2b74c3-ded5-4945-a4cf-b8ae97e44fbd.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-6e2b74c3-ded5-4945-a4cf-b8ae97e44fbd.json deleted file mode 100644 index 8bead61..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-6e2b74c3-ded5-4945-a4cf-b8ae97e44fbd.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "6e2b74c3-ded5-4945-a4cf-b8ae97e44fbd", - "name" : "v2_shared_domains", - "request" : { - "url" : "/v2/shared_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 2,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"created_at\": \"2018-03-28T22:15:03Z\",\n \"updated_at\": \"2018-04-13T20:33:21Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n },\n {\n \"metadata\": {\n \"guid\": \"552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"url\": \"/v2/shared_domains/552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"created_at\": \"2018-04-05T18:31:55Z\",\n \"updated_at\": \"2018-04-05T18:31:55Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:55 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "ceae8041-4374-4c2b-6064-376d8fb1f53e::9ede2207-4cf5-470f-b433-ce73018423c4", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "6e2b74c3-ded5-4945-a4cf-b8ae97e44fbd", - "persistent" : true, - "insertionIndex" : 10 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces-5edb8e0b-4c95-4cdd-ba62-f594fe857ad8.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces-5edb8e0b-4c95-4cdd-ba62-f594fe857ad8.json deleted file mode 100644 index 95be276..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces-5edb8e0b-4c95-4cdd-ba62-f594fe857ad8.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "5edb8e0b-4c95-4cdd-ba62-f594fe857ad8", - "name" : "v2_spaces", - "request" : { - "url" : "/v2/spaces?q=name:development&q=organization_guid:b3e001e9-4956-40e3-9695-79325199355f&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:55 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "0dc5f2c6-1fca-4113-49ed-a3b5c6c9596b::501f974c-f840-4fa1-902e-c59cebdc2c15", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "5edb8e0b-4c95-4cdd-ba62-f594fe857ad8", - "persistent" : true, - "insertionIndex" : 7 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces-8f7e3d79-508e-477e-baaf-63869b7a7aa8.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces-8f7e3d79-508e-477e-baaf-63869b7a7aa8.json deleted file mode 100644 index 32667d5..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces-8f7e3d79-508e-477e-baaf-63869b7a7aa8.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "8f7e3d79-508e-477e-baaf-63869b7a7aa8", - "name" : "v2_spaces", - "request" : { - "url" : "/v2/spaces?q=name%3Adevelopment&q=organization_guid%3Ab3e001e9-4956-40e3-9695-79325199355f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:54 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "9fbfdf09-2623-49f0-7dff-a65bfc411baf::7f552bde-02b2-48bf-a72d-103a3cbeae8b", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "8f7e3d79-508e-477e-baaf-63869b7a7aa8", - "persistent" : true, - "insertionIndex" : 3 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-52dbd02c-263c-4006-bd7b-6cbf01429886.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-52dbd02c-263c-4006-bd7b-6cbf01429886.json deleted file mode 100644 index 28ef148..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-52dbd02c-263c-4006-bd7b-6cbf01429886.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "52dbd02c-263c-4006-bd7b-6cbf01429886", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:55 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "eec6ec8d-c182-474f-418e-4080b15f848d::bf7cd44c-49de-4a29-a229-2629ddb3fcd6", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "52dbd02c-263c-4006-bd7b-6cbf01429886", - "persistent" : true, - "insertionIndex" : 8 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-61225a8f-8d68-4cf6-8da8-29f0a9a48120.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-61225a8f-8d68-4cf6-8da8-29f0a9a48120.json deleted file mode 100644 index be604ed..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-61225a8f-8d68-4cf6-8da8-29f0a9a48120.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "61225a8f-8d68-4cf6-8da8-29f0a9a48120", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name%3Aapp-with-env&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:47:59Z\"\n },\n \"entity\": {\n \"name\": \"app-with-env\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"29ad4b3b-2b9c-42d5-bf2d-c1983a1bc29d\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4231db8f-91ff-4559-92d9-fa7b0120b050\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:47:56Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes\",\n \"events_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/events\",\n \"service_bindings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:48:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "b3ea4fb5-e2e1-4a9b-795b-c565f33a36df::e9e9fdca-b03c-442c-88c0-40c4f2121de3", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "61225a8f-8d68-4cf6-8da8-29f0a9a48120", - "persistent" : true, - "insertionIndex" : 32 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-d8fd28b9-dfbe-4a32-980f-ac372ff74a34.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-d8fd28b9-dfbe-4a32-980f-ac372ff74a34.json deleted file mode 100644 index e7374d2..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithEnvironmentWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-d8fd28b9-dfbe-4a32-980f-ac372ff74a34.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "d8fd28b9-dfbe-4a32-980f-ac372ff74a34", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name:app-with-env&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b\",\n \"created_at\": \"2018-07-20T19:25:49Z\",\n \"updated_at\": \"2018-07-20T19:45:17Z\"\n },\n \"entity\": {\n \"name\": \"app-with-env\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{\\\"ENV_VAR_2\\\":\\\"true\\\",\\\"ENV_VAR_1\\\":\\\"value1\\\"}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"369e5c0c-5e10-464a-b1d3-d9a5d16ac9aa\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"ec5d8bcb-fedf-4843-9d1a-762868bbc5e3\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:45:10Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/routes\",\n \"events_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/events\",\n \"service_bindings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/c799e398-77b7-4798-92a0-30dc7c87e50b/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:47:55 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "bf4cde44-8243-4e14-5f64-9e1f079df037::9822dffc-ef58-4db3-8ef0-3d58f7311756", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "d8fd28b9-dfbe-4a32-980f-ac372ff74a34", - "persistent" : true, - "insertionIndex" : 11 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/-a924d00b-acaa-4a21-8833-24e79fd8290c.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/-a924d00b-acaa-4a21-8833-24e79fd8290c.json deleted file mode 100644 index afccde2..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/-a924d00b-acaa-4a21-8833-24e79fd8290c.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "a924d00b-acaa-4a21-8833-24e79fd8290c", - "name" : "", - "request" : { - "url" : "/", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"links\": {\n \"self\": {\n \"href\": \"http://localhost\"\n },\n \"cloud_controller_v2\": {\n \"href\": \"http://localhost\",\n \"meta\": {\n \"version\": \"2.103.0\"\n }\n },\n \"cloud_controller_v3\": {\n \"href\": \"http://localhost\",\n \"meta\": {\n \"version\": \"3.38.0\"\n }\n },\n \"network_policy_v0\": {\n \"href\": \"http://localhost\"\n },\n \"network_policy_v1\": {\n \"href\": \"http://localhost\"\n },\n \"uaa\": {\n \"href\": \"http://localhost\"\n },\n \"credhub\": null,\n \"routing\": {\n \"href\": \"http://localhost\"\n },\n \"logging\": {\n \"href\": \"wss://localhost\"\n },\n \"app_ssh\": {\n \"href\": \"localhost\",\n \"meta\": {\n \"host_key_fingerprint\": \"8c:db:69:39:90:e1:93:6a:f8:56:e9:a7:68:fc:52:d2\",\n \"oauth_client\": \"ssh-proxy\"\n }\n }\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:35 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "ef4b70a4-184e-406f-7ec4-4a8f4a6ef71f::a81e3c60-32a8-4e5a-970d-8c328591c60f", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "a924d00b-acaa-4a21-8833-24e79fd8290c", - "persistent" : true, - "insertionIndex" : 4 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps-011b30be-8b1b-45b0-802d-7151876a79a3.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps-011b30be-8b1b-45b0-802d-7151876a79a3.json deleted file mode 100644 index ff522a6..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps-011b30be-8b1b-45b0-802d-7151876a79a3.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "id" : "011b30be-8b1b-45b0-802d-7151876a79a3", - "name" : "v2_apps", - "request" : { - "url" : "/v2/apps", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"buildpack\":\"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\"disk_quota\":1024,\"environment_json\":{\"SPRING_APPLICATION_INDEX\":\"${vcap.application.instance_index}\",\"SPRING_CLOUD_APPLICATION_GUID\":\"${vcap.application.name}:${vcap.application.instance_index}\",\"SPRING_APPLICATION_JSON\":\"{}\"},\"health_check_http_endpoint\":\"/health\",\"health_check_timeout\":180,\"health_check_type\":\"port\",\"instances\":2,\"memory\":2048,\"name\":\"app-with-properties\",\"space_guid\":\"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:36Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STOPPED\",\n \"version\": \"40d2d9b8-9756-4250-88df-4609dac3c905\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": null,\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": null,\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:36 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "Location" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "7691fe94-4eb6-4d9f-5aba-7271902a4bba::89a3cd50-be43-46cf-a456-3ae24b35d486", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "011b30be-8b1b-45b0-802d-7151876a79a3", - "persistent" : true, - "insertionIndex" : 12 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-172f6219-76a6-4060-9a81-7413283e2730.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-172f6219-76a6-4060-9a81-7413283e2730.json deleted file mode 100644 index 5c8cd78..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-172f6219-76a6-4060-9a81-7413283e2730.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "172f6219-76a6-4060-9a81-7413283e2730", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:45Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"2a230cd4-7053-43bf-b4aa-691abf526995\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4198288f-6690-478b-bccc-bec8b6ee2c1c\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:05:37Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:06:30 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "0c775db9-2469-40d9-4e82-5df011354437::dc623a04-809b-42d6-b0bd-daa3483f4b3b", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "172f6219-76a6-4060-9a81-7413283e2730", - "persistent" : true, - "scenarioName" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829", - "requiredScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-7", - "newScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-8", - "insertionIndex" : 32 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-617345f1-7d71-4b85-b452-3831dacd210d.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-617345f1-7d71-4b85-b452-3831dacd210d.json deleted file mode 100644 index d025dc4..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-617345f1-7d71-4b85-b452-3831dacd210d.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "617345f1-7d71-4b85-b452-3831dacd210d", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:45Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"2a230cd4-7053-43bf-b4aa-691abf526995\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4198288f-6690-478b-bccc-bec8b6ee2c1c\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:05:37Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:06:00 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "4038c9e1-f2f8-452a-638c-a6133e4df325::4734b691-aa68-4679-8230-578a3bd7b401", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "617345f1-7d71-4b85-b452-3831dacd210d", - "persistent" : true, - "scenarioName" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829", - "requiredScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-5", - "newScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-6", - "insertionIndex" : 30 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-6261bf3e-7bb0-45e6-8b9b-ad62e94584ef.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-6261bf3e-7bb0-45e6-8b9b-ad62e94584ef.json deleted file mode 100644 index 35be736..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-6261bf3e-7bb0-45e6-8b9b-ad62e94584ef.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "6261bf3e-7bb0-45e6-8b9b-ad62e94584ef", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"state\":\"STOPPED\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:44Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STOPPED\",\n \"version\": \"40d2d9b8-9756-4250-88df-4609dac3c905\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": null,\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:05:37Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:44 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "92103777-bacf-423a-5cae-bd9c21594ab7::b8a40dbf-3dc3-4f82-a033-3e89f9323e61", - "Keep-Alive" : "timeout=5, max=86", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "6261bf3e-7bb0-45e6-8b9b-ad62e94584ef", - "persistent" : true, - "insertionIndex" : 24 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-62cacd60-8d19-43c6-9c8c-500f83f4b658.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-62cacd60-8d19-43c6-9c8c-500f83f4b658.json deleted file mode 100644 index 1985bc2..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-62cacd60-8d19-43c6-9c8c-500f83f4b658.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "62cacd60-8d19-43c6-9c8c-500f83f4b658", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:45Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"2a230cd4-7053-43bf-b4aa-691abf526995\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4198288f-6690-478b-bccc-bec8b6ee2c1c\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:05:37Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "1b53b2b6-eaf4-4d11-4e41-32d5762c898e::7ed5e3f3-ebd2-489f-90ab-cf882fcc4b15", - "Keep-Alive" : "timeout=5, max=81", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "62cacd60-8d19-43c6-9c8c-500f83f4b658", - "persistent" : true, - "scenarioName" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829", - "requiredScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-4", - "newScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-5", - "insertionIndex" : 29 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-867015fc-eebd-45b5-b9ea-72e6880f604f.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-867015fc-eebd-45b5-b9ea-72e6880f604f.json deleted file mode 100644 index 476f8d0..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-867015fc-eebd-45b5-b9ea-72e6880f604f.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "867015fc-eebd-45b5-b9ea-72e6880f604f", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:45Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"2a230cd4-7053-43bf-b4aa-691abf526995\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4198288f-6690-478b-bccc-bec8b6ee2c1c\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:05:37Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:46 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "07ba08ab-9771-4668-4ddb-81150048d38e::f49bc218-cff3-491c-96eb-0fc05c99bde5", - "Keep-Alive" : "timeout=5, max=83", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "867015fc-eebd-45b5-b9ea-72e6880f604f", - "persistent" : true, - "scenarioName" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829", - "requiredScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-2", - "newScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-3", - "insertionIndex" : 27 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-a43f3936-cb90-4f21-ac59-cc90debb6a9b.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-a43f3936-cb90-4f21-ac59-cc90debb6a9b.json deleted file mode 100644 index baf3997..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-a43f3936-cb90-4f21-ac59-cc90debb6a9b.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "a43f3936-cb90-4f21-ac59-cc90debb6a9b", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"state\":\"STARTED\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:45Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"2a230cd4-7053-43bf-b4aa-691abf526995\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4198288f-6690-478b-bccc-bec8b6ee2c1c\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:05:37Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "d643bd38-ea53-4469-47da-d9a7e46685d7::574d9a00-3667-488d-8649-23cb3c6446c6", - "Keep-Alive" : "timeout=5, max=85", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "a43f3936-cb90-4f21-ac59-cc90debb6a9b", - "persistent" : true, - "insertionIndex" : 25 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-cce955c1-c430-468c-85f1-de577a87643d.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-cce955c1-c430-468c-85f1-de577a87643d.json deleted file mode 100644 index 82ad209..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-cce955c1-c430-468c-85f1-de577a87643d.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "cce955c1-c430-468c-85f1-de577a87643d", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:45Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"2a230cd4-7053-43bf-b4aa-691abf526995\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4198288f-6690-478b-bccc-bec8b6ee2c1c\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:05:37Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:48 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "84cf0f8a-fdf0-4740-6a77-65dd9e65ecc0::f144da9c-985b-4ec0-8b1d-e6273978623b", - "Keep-Alive" : "timeout=5, max=82", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "cce955c1-c430-468c-85f1-de577a87643d", - "persistent" : true, - "scenarioName" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829", - "requiredScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-3", - "newScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-4", - "insertionIndex" : 28 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-d0c66993-5057-4c13-ba85-6bb1edab30e1.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-d0c66993-5057-4c13-ba85-6bb1edab30e1.json deleted file mode 100644 index 4d6da3e..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-d0c66993-5057-4c13-ba85-6bb1edab30e1.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "d0c66993-5057-4c13-ba85-6bb1edab30e1", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:45Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"2a230cd4-7053-43bf-b4aa-691abf526995\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4198288f-6690-478b-bccc-bec8b6ee2c1c\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:05:37Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:06:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "f74a31f0-b68b-4670-69eb-ddbb63250003::58f80455-9fb5-4943-9b41-c5ad9f4151c2", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "d0c66993-5057-4c13-ba85-6bb1edab30e1", - "persistent" : true, - "scenarioName" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829", - "requiredScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-8", - "insertionIndex" : 33 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-de2e0e26-4156-4030-85ea-046206c40b99.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-de2e0e26-4156-4030-85ea-046206c40b99.json deleted file mode 100644 index 5eb19d3..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-de2e0e26-4156-4030-85ea-046206c40b99.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "de2e0e26-4156-4030-85ea-046206c40b99", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:45Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"2a230cd4-7053-43bf-b4aa-691abf526995\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4198288f-6690-478b-bccc-bec8b6ee2c1c\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:05:37Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:06:15 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "e8eff755-977a-4222-41cd-1096ca478dd6::23721ed3-aff6-4413-8b27-0b13edb0c591", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "de2e0e26-4156-4030-85ea-046206c40b99", - "persistent" : true, - "scenarioName" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829", - "requiredScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-6", - "newScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-7", - "insertionIndex" : 31 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-e1fcfc6a-90fc-4cbf-afb9-7562ed0dffa0.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-e1fcfc6a-90fc-4cbf-afb9-7562ed0dffa0.json deleted file mode 100644 index 0f9be41..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829-e1fcfc6a-90fc-4cbf-afb9-7562ed0dffa0.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "e1fcfc6a-90fc-4cbf-afb9-7562ed0dffa0", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:45Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"2a230cd4-7053-43bf-b4aa-691abf526995\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4198288f-6690-478b-bccc-bec8b6ee2c1c\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:05:37Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "464f649e-0704-4e38-73dc-a9e7f77af2d5::526cd1d9-ac6f-483b-a3ca-cef0a8da0529", - "Keep-Alive" : "timeout=5, max=84", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "e1fcfc6a-90fc-4cbf-afb9-7562ed0dffa0", - "persistent" : true, - "scenarioName" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-apps-47e53fcc-9094-40bd-99eb-154b30aad829-2", - "insertionIndex" : 26 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_bits-f287ac28-b564-43b1-9033-78167154ebc4.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_bits-f287ac28-b564-43b1-9033-78167154ebc4.json deleted file mode 100644 index f5d5f0d..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_bits-f287ac28-b564-43b1-9033-78167154ebc4.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "f287ac28-b564-43b1-9033-78167154ebc4", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_bits", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/bits?async=true", - "method" : "PUT", - "bodyPatterns" : [ { - "anything" : "anything" - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"8084e8ec-2298-4c0a-9eed-419710d0bbee\",\n \"created_at\": \"2018-07-20T19:05:37Z\",\n \"url\": \"/v2/jobs/8084e8ec-2298-4c0a-9eed-419710d0bbee\"\n },\n \"entity\": {\n \"guid\": \"8084e8ec-2298-4c0a-9eed-419710d0bbee\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:37 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "63b23142-6838-45a5-4c4c-5d807fc8891d::271e6fc3-2aa6-4313-9c9d-2d2b8930491d", - "Keep-Alive" : "timeout=5, max=91", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "f287ac28-b564-43b1-9033-78167154ebc4", - "persistent" : true, - "insertionIndex" : 19 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_instances-30c62dc1-3231-4ae9-86c5-2db1d38be230.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_instances-30c62dc1-3231-4ae9-86c5-2db1d38be230.json deleted file mode 100644 index 04f05a3..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_instances-30c62dc1-3231-4ae9-86c5-2db1d38be230.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "30c62dc1-3231-4ae9-86c5-2db1d38be230", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_instances", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"STARTING\",\"uptime\":11,\"since\":1532113594},\"1\":{\"state\":\"STARTING\",\"uptime\":11,\"since\":1532113594}}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:06:45 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "49b4fe5e-3f3c-4848-720d-9b2e80bb38fa::60be7ad8-7da4-4d0a-b17d-86ee105f71fb", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "30c62dc1-3231-4ae9-86c5-2db1d38be230", - "persistent" : true, - "scenarioName" : "scenario-47e53fcc-9094-40bd-99eb-154b30aad829-instances", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-47e53fcc-9094-40bd-99eb-154b30aad829-instances-2", - "insertionIndex" : 34 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_instances-9ffbc871-3b01-459b-85c9-0991cdfa0b68.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_instances-9ffbc871-3b01-459b-85c9-0991cdfa0b68.json deleted file mode 100644 index 890595d..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_instances-9ffbc871-3b01-459b-85c9-0991cdfa0b68.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "9ffbc871-3b01-459b-85c9-0991cdfa0b68", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_instances", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"RUNNING\",\"uptime\":0,\"since\":1532113605},\"1\":{\"state\":\"STARTING\",\"uptime\":12,\"since\":1532113594}}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:06:46 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "4b199665-1d9b-47f0-7baf-34359307859a::11429b26-6de1-4fb0-8224-30825e184263", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "9ffbc871-3b01-459b-85c9-0991cdfa0b68", - "persistent" : true, - "scenarioName" : "scenario-47e53fcc-9094-40bd-99eb-154b30aad829-instances", - "requiredScenarioState" : "scenario-47e53fcc-9094-40bd-99eb-154b30aad829-instances-2", - "insertionIndex" : 35 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_routes-ef83a523-d6ed-4f67-ab78-d6bfa0c4ec63.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_routes-ef83a523-d6ed-4f67-ab78-d6bfa0c4ec63.json deleted file mode 100644 index ba07b34..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_routes-ef83a523-d6ed-4f67-ab78-d6bfa0c4ec63.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "ef83a523-d6ed-4f67-ab78-d6bfa0c4ec63", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_routes", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:36 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "a935ec8d-5472-453a-4881-47295932463a::045739ef-36a8-4cd4-8b61-6df1012e634c", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "ef83a523-d6ed-4f67-ab78-d6bfa0c4ec63", - "persistent" : true, - "insertionIndex" : 13 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_routes_5b3a31ea-b880-4d3f-a828-36c91a09b046-7c777be4-c11e-4359-82eb-d24649741e6c.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_routes_5b3a31ea-b880-4d3f-a828-36c91a09b046-7c777be4-c11e-4359-82eb-d24649741e6c.json deleted file mode 100644 index e36adf0..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_routes_5b3a31ea-b880-4d3f-a828-36c91a09b046-7c777be4-c11e-4359-82eb-d24649741e6c.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "7c777be4-c11e-4359-82eb-d24649741e6c", - "name" : "v2_apps_47e53fcc-9094-40bd-99eb-154b30aad829_routes_5b3a31ea-b880-4d3f-a828-36c91a09b046", - "request" : { - "url" : "/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes/5b3a31ea-b880-4d3f-a828-36c91a09b046", - "method" : "PUT" - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:37Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STOPPED\",\n \"version\": \"40d2d9b8-9756-4250-88df-4609dac3c905\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": null,\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": null,\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:37 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "6ebe2a10-4c60-4713-6031-a8ec60333130::aabbe7a7-1f09-4f7a-b30a-ade0beaa4d1b", - "Keep-Alive" : "timeout=5, max=92", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "7c777be4-c11e-4359-82eb-d24649741e6c", - "persistent" : true, - "insertionIndex" : 18 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_info-da846c81-3e24-4c02-81dc-fb39478aee0a.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_info-da846c81-3e24-4c02-81dc-fb39478aee0a.json deleted file mode 100644 index 4e1beb3..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_info-da846c81-3e24-4c02-81dc-fb39478aee0a.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "da846c81-3e24-4c02-81dc-fb39478aee0a", - "name" : "v2_info", - "request" : { - "url" : "/v2/info", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"name\":\"\",\"build\":\"\",\"support\":\"https://support.pivotal.io\",\"version\":0,\"description\":\"\",\"authorization_endpoint\":\"http://localhost\"}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:35 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "d3380417-05b4-4679-456f-d03391ab4e8e::0e47c657-dd9c-4374-a96f-7b50169dd90d", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "da846c81-3e24-4c02-81dc-fb39478aee0a", - "persistent" : true, - "insertionIndex" : 5 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee-1a48355a-ca6e-41b5-9219-f3011a89a35b.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee-1a48355a-ca6e-41b5-9219-f3011a89a35b.json deleted file mode 100644 index b013c72..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee-1a48355a-ca6e-41b5-9219-f3011a89a35b.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "1a48355a-ca6e-41b5-9219-f3011a89a35b", - "name" : "v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee", - "request" : { - "url" : "/v2/jobs/8084e8ec-2298-4c0a-9eed-419710d0bbee", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"0\",\n \"created_at\": \"1970-01-01T00:00:00Z\",\n \"url\": \"/v2/jobs/0\"\n },\n \"entity\": {\n \"guid\": \"0\",\n \"status\": \"finished\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:44 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "29032af4-71b3-4809-639b-407bcb9b445e::bac017a5-50fb-4fec-bb92-f3d0a7d527f0", - "Keep-Alive" : "timeout=5, max=87", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "1a48355a-ca6e-41b5-9219-f3011a89a35b", - "persistent" : true, - "scenarioName" : "scenario-jobs-8084e8ec-2298-4c0a-9eed-419710d0bbee", - "requiredScenarioState" : "scenario-jobs-8084e8ec-2298-4c0a-9eed-419710d0bbee-4", - "insertionIndex" : 23 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee-1e240786-e75e-46f2-93e5-8bc84c1fac44.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee-1e240786-e75e-46f2-93e5-8bc84c1fac44.json deleted file mode 100644 index 8c73fe7..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee-1e240786-e75e-46f2-93e5-8bc84c1fac44.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "1e240786-e75e-46f2-93e5-8bc84c1fac44", - "name" : "v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee", - "request" : { - "url" : "/v2/jobs/8084e8ec-2298-4c0a-9eed-419710d0bbee", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"8084e8ec-2298-4c0a-9eed-419710d0bbee\",\n \"created_at\": \"2018-07-20T19:05:37Z\",\n \"url\": \"/v2/jobs/8084e8ec-2298-4c0a-9eed-419710d0bbee\"\n },\n \"entity\": {\n \"guid\": \"8084e8ec-2298-4c0a-9eed-419710d0bbee\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:37 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "87341708-ba7d-4ba9-480c-816d3b8f0c94::cc6684fc-4aad-4b57-b69b-721d71fe9481", - "Keep-Alive" : "timeout=5, max=90", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "1e240786-e75e-46f2-93e5-8bc84c1fac44", - "persistent" : true, - "scenarioName" : "scenario-jobs-8084e8ec-2298-4c0a-9eed-419710d0bbee", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-jobs-8084e8ec-2298-4c0a-9eed-419710d0bbee-2", - "insertionIndex" : 20 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee-51a1f84c-c447-4ac5-b8f6-4c8d488cfea0.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee-51a1f84c-c447-4ac5-b8f6-4c8d488cfea0.json deleted file mode 100644 index 4bafddf..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee-51a1f84c-c447-4ac5-b8f6-4c8d488cfea0.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "51a1f84c-c447-4ac5-b8f6-4c8d488cfea0", - "name" : "v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee", - "request" : { - "url" : "/v2/jobs/8084e8ec-2298-4c0a-9eed-419710d0bbee", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"8084e8ec-2298-4c0a-9eed-419710d0bbee\",\n \"created_at\": \"2018-07-20T19:05:37Z\",\n \"url\": \"/v2/jobs/8084e8ec-2298-4c0a-9eed-419710d0bbee\"\n },\n \"entity\": {\n \"guid\": \"8084e8ec-2298-4c0a-9eed-419710d0bbee\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:38 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "acc49912-551b-46c9-4256-d97c9258382b::d73bd58d-9149-42e8-8c4c-4b28b84b9c06", - "Keep-Alive" : "timeout=5, max=89", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "51a1f84c-c447-4ac5-b8f6-4c8d488cfea0", - "persistent" : true, - "scenarioName" : "scenario-jobs-8084e8ec-2298-4c0a-9eed-419710d0bbee", - "requiredScenarioState" : "scenario-jobs-8084e8ec-2298-4c0a-9eed-419710d0bbee-2", - "newScenarioState" : "scenario-jobs-8084e8ec-2298-4c0a-9eed-419710d0bbee-3", - "insertionIndex" : 21 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee-9f07271d-993a-4e94-b0e8-023e8dc3a00c.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee-9f07271d-993a-4e94-b0e8-023e8dc3a00c.json deleted file mode 100644 index f09b994..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee-9f07271d-993a-4e94-b0e8-023e8dc3a00c.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "9f07271d-993a-4e94-b0e8-023e8dc3a00c", - "name" : "v2_jobs_8084e8ec-2298-4c0a-9eed-419710d0bbee", - "request" : { - "url" : "/v2/jobs/8084e8ec-2298-4c0a-9eed-419710d0bbee", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"8084e8ec-2298-4c0a-9eed-419710d0bbee\",\n \"created_at\": \"2018-07-20T19:05:37Z\",\n \"url\": \"/v2/jobs/8084e8ec-2298-4c0a-9eed-419710d0bbee\"\n },\n \"entity\": {\n \"guid\": \"8084e8ec-2298-4c0a-9eed-419710d0bbee\",\n \"status\": \"running\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:40 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "67f4245f-a73f-440d-77fd-8c4ca760f6a2::cfc779c7-88aa-4a4e-8775-ae7cbb344bcd", - "Keep-Alive" : "timeout=5, max=88", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "9f07271d-993a-4e94-b0e8-023e8dc3a00c", - "persistent" : true, - "scenarioName" : "scenario-jobs-8084e8ec-2298-4c0a-9eed-419710d0bbee", - "requiredScenarioState" : "scenario-jobs-8084e8ec-2298-4c0a-9eed-419710d0bbee-3", - "newScenarioState" : "scenario-jobs-8084e8ec-2298-4c0a-9eed-419710d0bbee-4", - "insertionIndex" : 22 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_organizations-174e4c52-4b91-4519-ac7c-16c56314f374.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_organizations-174e4c52-4b91-4519-ac7c-16c56314f374.json deleted file mode 100644 index 7c7772b..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_organizations-174e4c52-4b91-4519-ac7c-16c56314f374.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "174e4c52-4b91-4519-ac7c-16c56314f374", - "name" : "v2_organizations", - "request" : { - "url" : "/v2/organizations?q=name:test&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"created_at\": \"2018-07-19T20:33:45Z\",\n \"updated_at\": \"2018-07-19T20:33:45Z\"\n },\n \"entity\": {\n \"name\": \"test\",\n \"billing_enabled\": false,\n \"quota_definition_guid\": \"7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"status\": \"active\",\n \"default_isolation_segment_guid\": null,\n \"quota_definition_url\": \"/v2/quota_definitions/7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"spaces_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/spaces\",\n \"domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/domains\",\n \"private_domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains\",\n \"users_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/users\",\n \"managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/managers\",\n \"billing_managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/billing_managers\",\n \"auditors_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/auditors\",\n \"app_events_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/app_events\",\n \"space_quota_definitions_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/space_quota_definitions\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:35 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "383c66a8-484d-4e27-7cdf-7eadadd64237::9f618888-5556-4167-82cb-9700135cfa7c", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "174e4c52-4b91-4519-ac7c-16c56314f374", - "persistent" : true, - "insertionIndex" : 6 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_organizations-6145f335-59d0-4b73-9d46-fb6ba0cb996e.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_organizations-6145f335-59d0-4b73-9d46-fb6ba0cb996e.json deleted file mode 100644 index d4ef65d..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_organizations-6145f335-59d0-4b73-9d46-fb6ba0cb996e.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "6145f335-59d0-4b73-9d46-fb6ba0cb996e", - "name" : "v2_organizations", - "request" : { - "url" : "/v2/organizations?q=name%3Atest", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"created_at\": \"2018-07-19T20:33:45Z\",\n \"updated_at\": \"2018-07-19T20:33:45Z\"\n },\n \"entity\": {\n \"name\": \"test\",\n \"billing_enabled\": false,\n \"quota_definition_guid\": \"7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"status\": \"active\",\n \"default_isolation_segment_guid\": null,\n \"quota_definition_url\": \"/v2/quota_definitions/7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"spaces_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/spaces\",\n \"domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/domains\",\n \"private_domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains\",\n \"users_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/users\",\n \"managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/managers\",\n \"billing_managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/billing_managers\",\n \"auditors_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/auditors\",\n \"app_events_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/app_events\",\n \"space_quota_definitions_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/space_quota_definitions\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:34 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "20f82a70-539f-43b6-52e7-69d7a9d11322::77912010-867e-4a75-a564-1bb3003422d2", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "6145f335-59d0-4b73-9d46-fb6ba0cb996e", - "persistent" : true, - "insertionIndex" : 2 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-e7032174-fa8a-4f4c-9b89-1fad12fdd2cf.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-e7032174-fa8a-4f4c-9b89-1fad12fdd2cf.json deleted file mode 100644 index efc7c1d..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-e7032174-fa8a-4f4c-9b89-1fad12fdd2cf.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "e7032174-fa8a-4f4c-9b89-1fad12fdd2cf", - "name" : "v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains", - "request" : { - "url" : "/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:36 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "cacdb010-65e0-4c50-620a-bca1162933fc::18ed8489-3177-4a97-a072-3538c21474ee", - "Keep-Alive" : "timeout=5, max=93", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "e7032174-fa8a-4f4c-9b89-1fad12fdd2cf", - "persistent" : true, - "insertionIndex" : 9 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_resource_match-e53c5c94-8b49-4c37-a86d-0be7ad289bf7.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_resource_match-e53c5c94-8b49-4c37-a86d-0be7ad289bf7.json deleted file mode 100644 index 9b70688..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_resource_match-e53c5c94-8b49-4c37-a86d-0be7ad289bf7.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "e53c5c94-8b49-4c37-a86d-0be7ad289bf7", - "name" : "v2_resource_match", - "request" : { - "url" : "/v2/resource_match", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "[{\"sha1\":\"5aa239d8ad6d8130b055caebf44467b9c55d422b\",\"mode\":\"100644\",\"size\":461472},{\"sha1\":\"4c2dd0f89549ee38a588808acfa24797c196b7cb\",\"mode\":\"100644\",\"size\":1779},{\"sha1\":\"4e36bfa02cd464e99d82008a787dcf66ddf2dadc\",\"mode\":\"100644\",\"size\":2688},{\"sha1\":\"ff9d64ab3b825c6b8ed7c64694d0521918785ae2\",\"mode\":\"100644\",\"size\":299},{\"sha1\":\"7caad34f01d2688919e15e09a90467963e3d5190\",\"mode\":\"100644\",\"size\":613},{\"sha1\":\"cb855558e6271b1b32e716d24cb85c7f583ce09e\",\"mode\":\"100644\",\"size\":93107},{\"sha1\":\"0af5364cd6679bfffb114f0dec8a157aaa283b76\",\"mode\":\"100644\",\"size\":4596},{\"sha1\":\"d370eeff676d24523ee530f6abc569474d2f9bf9\",\"mode\":\"100644\",\"size\":612},{\"sha1\":\"011bc4cc96b08fabad2b3186755818fa0b32d83f\",\"mode\":\"100644\",\"size\":1162436},{\"sha1\":\"d963a184197107a75952666c831f14cb662933b7\",\"mode\":\"100644\",\"size\":3608},{\"sha1\":\"8664b2431c82e94493723054cbf5ff341c8ecdb7\",\"mode\":\"100644\",\"size\":5203},{\"sha1\":\"414ffd8db5d733bf88256d5fd8ebb9fd2aff3108\",\"mode\":\"100644\",\"size\":1527},{\"sha1\":\"f9170b781caecaa2127d9d8baf9964e599eb605a\",\"mode\":\"100644\",\"size\":733},{\"sha1\":\"d63a2b8de1abe4092e03ada60bb8d5e26aa73562\",\"mode\":\"100644\",\"size\":1721},{\"sha1\":\"152dbb704f32fef5c6841c46488bf1bb57b6ba5b\",\"mode\":\"100644\",\"size\":1374},{\"sha1\":\"41fd4180bea3813de8f3c602b5a126218360315b\",\"mode\":\"100644\",\"size\":588},{\"sha1\":\"3e324efa4aff13f75357a34a71366d1c20a59e88\",\"mode\":\"100644\",\"size\":4015},{\"sha1\":\"2abf786c56d4cd17c289b56c7ae21b30b6ba5ab7\",\"mode\":\"100644\",\"size\":345},{\"sha1\":\"154a9ab94c152458ebf0f314126fa959d712be9c\",\"mode\":\"100644\",\"size\":4624},{\"sha1\":\"9bc041759fd397c07e01f3af486ba70f7d0b14ba\",\"mode\":\"100644\",\"size\":945},{\"sha1\":\"934c04d3cfef185a8008e7bf34331b79730a9d43\",\"mode\":\"100644\",\"size\":26586},{\"sha1\":\"9e1ac84eed220281841b75e72fb9de5a297fbf04\",\"mode\":\"100644\",\"size\":117910},{\"sha1\":\"1c7dee76e2a1eb2b3f4600b89a4398d8f93a2874\",\"mode\":\"100644\",\"size\":129},{\"sha1\":\"01295d86ab56891a989cd6a9fe84fa169f287e6f\",\"mode\":\"100644\",\"size\":4976},{\"sha1\":\"3dacf0841881da8fe564bc58a6c22227b7dcab71\",\"mode\":\"100644\",\"size\":1585},{\"sha1\":\"b2a3686010af53ce71da04880a704ac957c7a47e\",\"mode\":\"100644\",\"size\":3555},{\"sha1\":\"58709490fb98f037070be9387d97abbf62dcd684\",\"mode\":\"100644\",\"size\":3837},{\"sha1\":\"0da88b36af193860ba6d007c1af3ce5b589b923b\",\"mode\":\"100644\",\"size\":5243},{\"sha1\":\"2d998d3d674b172a588e54ab619854d073f555b5\",\"mode\":\"100644\",\"size\":297518},{\"sha1\":\"2e389a8727588c549c28bb277f0f573f65554850\",\"mode\":\"100644\",\"size\":645},{\"sha1\":\"ea54f6193d224e5e5732bbd4262327eb465397c2\",\"mode\":\"100644\",\"size\":99987},{\"sha1\":\"699016ddf454c2c167d9f84ae5777eccadf54728\",\"mode\":\"100644\",\"size\":21703},{\"sha1\":\"2ed9db8f21cf1c5d65f0f4fd734078cc255998e7\",\"mode\":\"100644\",\"size\":437},{\"sha1\":\"03d5f48f10bbe4eb7bd862f10c0583be2e0053c6\",\"mode\":\"100644\",\"size\":65100},{\"sha1\":\"da39a3ee5e6b4b0d3255bfef95601890afd80709\",\"mode\":\"100644\",\"size\":0},{\"sha1\":\"fe111141e88286b0e243e4cb8dc583dbad789bc7\",\"mode\":\"100644\",\"size\":282},{\"sha1\":\"38f0748e222b21ef6f9913b054c7ed1a818eb42d\",\"mode\":\"100644\",\"size\":266},{\"sha1\":\"9a29444393acc68bee96bc82adda9607dbe1d0a0\",\"mode\":\"100644\",\"size\":1593},{\"sha1\":\"cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\",\"mode\":\"100644\",\"size\":1349339},{\"sha1\":\"7c4f3c474fb2c041d8028740440937705ebb473a\",\"mode\":\"100644\",\"size\":290339},{\"sha1\":\"da76ca59f6a57ee3102f8f9bd9cee742973efa8a\",\"mode\":\"100644\",\"size\":41203},{\"sha1\":\"ffaa050dbd36b0441645598f1a7ddaf67fd5e678\",\"mode\":\"100644\",\"size\":592},{\"sha1\":\"c5eaa23f5bb1f0f4b7eb44824093874d0d9165f5\",\"mode\":\"100644\",\"size\":352776},{\"sha1\":\"47c87d1e377678c051ec1e5225333ba4d7d9d05a\",\"mode\":\"100644\",\"size\":702},{\"sha1\":\"e0f3ab697ceccda84083488dc98e638148934520\",\"mode\":\"100644\",\"size\":1081},{\"sha1\":\"72bb957e4e0a2e42056230c683238b1b783da10d\",\"mode\":\"100644\",\"size\":616},{\"sha1\":\"25a51a75bfb997b7b95d6760178ee3303863ec4b\",\"mode\":\"100644\",\"size\":591},{\"sha1\":\"b86c3da72f30bd20dd82988ab6f370c13c616022\",\"mode\":\"100644\",\"size\":10728},{\"sha1\":\"e7d522eb60e66a2d9a0aa7edfcaf8ce287f25752\",\"mode\":\"100644\",\"size\":2062},{\"sha1\":\"0546460176b54aeeca93080900aece6f7229f680\",\"mode\":\"100644\",\"size\":302},{\"sha1\":\"73b260df53aa71535bab27e4971796954958b5d5\",\"mode\":\"100644\",\"size\":1997},{\"sha1\":\"54b731178d81e66eca9623df772ff32718208137\",\"mode\":\"100644\",\"size\":1226075},{\"sha1\":\"38b942875b91697c636c94b2c846c0e074ef1a07\",\"mode\":\"100644\",\"size\":9852},{\"sha1\":\"7049e9e927d6bbeb1463e76452e290f92661ec1d\",\"mode\":\"100644\",\"size\":3116},{\"sha1\":\"07c10d545325e3a6e72e06381afe469fd40eb701\",\"mode\":\"100644\",\"size\":66519},{\"sha1\":\"4e393793c37c77e042ccc7be5a914ae39251b365\",\"mode\":\"100644\",\"size\":323848},{\"sha1\":\"fec5797a55b786184a537abd39c3fa1449d752d6\",\"mode\":\"100644\",\"size\":255485},{\"sha1\":\"c4c8204bdde87f3e93a21d741cc5358f70e57829\",\"mode\":\"100644\",\"size\":5687},{\"sha1\":\"864344400c3d4d92dfeb0a305dc87d953677c03c\",\"mode\":\"100644\",\"size\":471901},{\"sha1\":\"2e04c6c2922fbfa06b5948be14a5782db168b6ec\",\"mode\":\"100644\",\"size\":1254656},{\"sha1\":\"8b2c25bd7d759b111d0753b8dfbdecac952c495e\",\"mode\":\"100644\",\"size\":14915},{\"sha1\":\"7b962117a6f8c03809104d47533c131e3218e174\",\"mode\":\"100644\",\"size\":540},{\"sha1\":\"b874870d915adbc3dd932e19077d3d45c8e54aa0\",\"mode\":\"100644\",\"size\":930680},{\"sha1\":\"06e73803e03b47891d5aeb1f24ca2cfd3940a923\",\"mode\":\"100644\",\"size\":4684},{\"sha1\":\"cd4bb73ce7e6d08086cb9b88e6ff8734372999d3\",\"mode\":\"100644\",\"size\":4306},{\"sha1\":\"751c871527ec7ff335ffc76f2e737e297c0a8d30\",\"mode\":\"100644\",\"size\":789866},{\"sha1\":\"fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef\",\"mode\":\"100644\",\"size\":366340},{\"sha1\":\"a068327cb0a1439c99c0b36d504c488f4e80483f\",\"mode\":\"100644\",\"size\":1502},{\"sha1\":\"187248459a73eaf34e8264db20a33961e35426df\",\"mode\":\"100644\",\"size\":19737},{\"sha1\":\"3a536e1ac71b82627c3a7408eb38fa0704cb9034\",\"mode\":\"100644\",\"size\":240244},{\"sha1\":\"af324ebf4e72e10fcac6c5ac008636a4d41a5cf2\",\"mode\":\"100644\",\"size\":7336},{\"sha1\":\"ca01fb473f53dd0ee3c85663b26d5dc325602057\",\"mode\":\"100644\",\"size\":280032},{\"sha1\":\"82ec0aa4d240f7eb17788fcf6e5d32b012abebf4\",\"mode\":\"100644\",\"size\":273},{\"sha1\":\"dfe3be1a15b150f2eb7f5f27ee6645ced87d8f6e\",\"mode\":\"100644\",\"size\":5267},{\"sha1\":\"84af6fc0cb1f57fcf8fffac62c4df1b632af0efb\",\"mode\":\"100644\",\"size\":3263},{\"sha1\":\"28a84685bb9c1b63218221e60a3112b014e5eb57\",\"mode\":\"100644\",\"size\":485},{\"sha1\":\"769c0b82cb2421c8256300e907298a9410a2a3d3\",\"mode\":\"100644\",\"size\":29779},{\"sha1\":\"8313c1e792bc063978d8da9351f3b3f7e2c62d3e\",\"mode\":\"100644\",\"size\":3414},{\"sha1\":\"06564e716b89de5eaa0dd234ae7989576503ddf3\",\"mode\":\"100644\",\"size\":256776},{\"sha1\":\"243a23f8968de8754d8199d669780d683ab177bd\",\"mode\":\"100644\",\"size\":1090739},{\"sha1\":\"3789d00e859632e6c6206adc0c71625559e6e3b0\",\"mode\":\"100644\",\"size\":66469},{\"sha1\":\"242c7585b8c5007ddc8637c8e8d1eabe9b35ab42\",\"mode\":\"100644\",\"size\":1487},{\"sha1\":\"f7e631ccf49cfc0aefa4a2a728da7d374c05bd3c\",\"mode\":\"100644\",\"size\":17519},{\"sha1\":\"11d4aec9dfcec2e04622ce3078aedc68b2f98278\",\"mode\":\"100644\",\"size\":1484},{\"sha1\":\"4236051a8d209c00f85e70918d5e26d9f3e5201e\",\"mode\":\"100644\",\"size\":1133563},{\"sha1\":\"92871c480d939d240c4acac88913a383094fe1c3\",\"mode\":\"100644\",\"size\":1233},{\"sha1\":\"9dd235da986d0c06739c0e42d527343b3d8a447c\",\"mode\":\"100644\",\"size\":1102},{\"sha1\":\"f3e3392c3e8e2714fc05bbf0f3ee496ad19eedc7\",\"mode\":\"100644\",\"size\":379277},{\"sha1\":\"f5adf7ed8c34aa005b22b6a2dc7b6796e10e9c79\",\"mode\":\"100644\",\"size\":3115994},{\"sha1\":\"45a5ec14da7bc166fc73c52fd091f5a01bd66e56\",\"mode\":\"100644\",\"size\":11509},{\"sha1\":\"456895fc91bf7180b216fead220373e6278230c9\",\"mode\":\"100644\",\"size\":33395},{\"sha1\":\"df8fdb927c0e035487031c9b33e33c15b0df5f8a\",\"mode\":\"100644\",\"size\":1693},{\"sha1\":\"c1196cb3e56da83e3c3a02ef323699f4b05feedc\",\"mode\":\"100644\",\"size\":660545},{\"sha1\":\"129acd77a4b6ee30d62d3a0899b1344c8ec2bff8\",\"mode\":\"100644\",\"size\":8645},{\"sha1\":\"daa252ffd6a1f363b51de18cb0adab39711006a9\",\"mode\":\"100644\",\"size\":1953}]", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "[{\"sha1\":\"5aa239d8ad6d8130b055caebf44467b9c55d422b\",\"mode\":\"100644\",\"size\":461472},{\"sha1\":\"cb855558e6271b1b32e716d24cb85c7f583ce09e\",\"mode\":\"100644\",\"size\":93107},{\"sha1\":\"011bc4cc96b08fabad2b3186755818fa0b32d83f\",\"mode\":\"100644\",\"size\":1162436},{\"sha1\":\"9e1ac84eed220281841b75e72fb9de5a297fbf04\",\"mode\":\"100644\",\"size\":117910},{\"sha1\":\"2d998d3d674b172a588e54ab619854d073f555b5\",\"mode\":\"100644\",\"size\":297518},{\"sha1\":\"ea54f6193d224e5e5732bbd4262327eb465397c2\",\"mode\":\"100644\",\"size\":99987},{\"sha1\":\"cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\",\"mode\":\"100644\",\"size\":1349339},{\"sha1\":\"7c4f3c474fb2c041d8028740440937705ebb473a\",\"mode\":\"100644\",\"size\":290339},{\"sha1\":\"c5eaa23f5bb1f0f4b7eb44824093874d0d9165f5\",\"mode\":\"100644\",\"size\":352776},{\"sha1\":\"54b731178d81e66eca9623df772ff32718208137\",\"mode\":\"100644\",\"size\":1226075},{\"sha1\":\"07c10d545325e3a6e72e06381afe469fd40eb701\",\"mode\":\"100644\",\"size\":66519},{\"sha1\":\"4e393793c37c77e042ccc7be5a914ae39251b365\",\"mode\":\"100644\",\"size\":323848},{\"sha1\":\"fec5797a55b786184a537abd39c3fa1449d752d6\",\"mode\":\"100644\",\"size\":255485},{\"sha1\":\"864344400c3d4d92dfeb0a305dc87d953677c03c\",\"mode\":\"100644\",\"size\":471901},{\"sha1\":\"2e04c6c2922fbfa06b5948be14a5782db168b6ec\",\"mode\":\"100644\",\"size\":1254656},{\"sha1\":\"b874870d915adbc3dd932e19077d3d45c8e54aa0\",\"mode\":\"100644\",\"size\":930680},{\"sha1\":\"751c871527ec7ff335ffc76f2e737e297c0a8d30\",\"mode\":\"100644\",\"size\":789866},{\"sha1\":\"fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef\",\"mode\":\"100644\",\"size\":366340},{\"sha1\":\"3a536e1ac71b82627c3a7408eb38fa0704cb9034\",\"mode\":\"100644\",\"size\":240244},{\"sha1\":\"ca01fb473f53dd0ee3c85663b26d5dc325602057\",\"mode\":\"100644\",\"size\":280032},{\"sha1\":\"06564e716b89de5eaa0dd234ae7989576503ddf3\",\"mode\":\"100644\",\"size\":256776},{\"sha1\":\"243a23f8968de8754d8199d669780d683ab177bd\",\"mode\":\"100644\",\"size\":1090739},{\"sha1\":\"3789d00e859632e6c6206adc0c71625559e6e3b0\",\"mode\":\"100644\",\"size\":66469},{\"sha1\":\"4236051a8d209c00f85e70918d5e26d9f3e5201e\",\"mode\":\"100644\",\"size\":1133563},{\"sha1\":\"f3e3392c3e8e2714fc05bbf0f3ee496ad19eedc7\",\"mode\":\"100644\",\"size\":379277},{\"sha1\":\"f5adf7ed8c34aa005b22b6a2dc7b6796e10e9c79\",\"mode\":\"100644\",\"size\":3115994},{\"sha1\":\"c1196cb3e56da83e3c3a02ef323699f4b05feedc\",\"mode\":\"100644\",\"size\":660545}]", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:37 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "bced33fa-7a11-48d5-76b1-f13a1e064a06::dc62483a-efc0-4554-847d-734d288256ec", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "e53c5c94-8b49-4c37-a86d-0be7ad289bf7", - "persistent" : true, - "insertionIndex" : 14 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_routes-2072c490-6b36-4b5a-8e69-7b5343f26439.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_routes-2072c490-6b36-4b5a-8e69-7b5343f26439.json deleted file mode 100644 index f0c81bf..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_routes-2072c490-6b36-4b5a-8e69-7b5343f26439.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "id" : "2072c490-6b36-4b5a-8e69-7b5343f26439", - "name" : "v2_routes", - "request" : { - "url" : "/v2/routes", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"domain_guid\":\"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\"host\":\"app-with-properties\",\"space_guid\":\"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"5b3a31ea-b880-4d3f-a828-36c91a09b046\",\n \"url\": \"/v2/routes/5b3a31ea-b880-4d3f-a828-36c91a09b046\",\n \"created_at\": \"2018-07-20T19:05:37Z\",\n \"updated_at\": \"2018-07-20T19:05:37Z\"\n },\n \"entity\": {\n \"host\": \"app-with-properties\",\n \"path\": \"\",\n \"domain_guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"service_instance_guid\": null,\n \"port\": null,\n \"domain_url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"apps_url\": \"/v2/routes/5b3a31ea-b880-4d3f-a828-36c91a09b046/apps\",\n \"route_mappings_url\": \"/v2/routes/5b3a31ea-b880-4d3f-a828-36c91a09b046/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:37 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "Location" : "/v2/routes/5b3a31ea-b880-4d3f-a828-36c91a09b046", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "9b71e437-cf27-471c-4425-7bf38855d242::42759dca-f63f-42dc-9d68-484b8dd4462a", - "Keep-Alive" : "timeout=5, max=93", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "2072c490-6b36-4b5a-8e69-7b5343f26439", - "persistent" : true, - "insertionIndex" : 17 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_routes-58ff816a-d715-4a57-a380-047ca4d74a1e.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_routes-58ff816a-d715-4a57-a380-047ca4d74a1e.json deleted file mode 100644 index a184635..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_routes-58ff816a-d715-4a57-a380-047ca4d74a1e.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "58ff816a-d715-4a57-a380-047ca4d74a1e", - "name" : "v2_routes", - "request" : { - "url" : "/v2/routes?q=domain_guid:28e83b6f-3cb4-4df4-a056-4e4ae5d0efad&q=host:app-with-properties&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:37 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "2598e2a9-7f37-42a6-5833-c32134dd00b4::66a5a148-7898-48d2-b7b3-fe652d9c5bb1", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "58ff816a-d715-4a57-a380-047ca4d74a1e", - "persistent" : true, - "insertionIndex" : 16 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-637473f2-17b4-4a0b-8b36-04d1c4da0a6a.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-637473f2-17b4-4a0b-8b36-04d1c4da0a6a.json deleted file mode 100644 index ec7a4bc..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-637473f2-17b4-4a0b-8b36-04d1c4da0a6a.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "637473f2-17b4-4a0b-8b36-04d1c4da0a6a", - "name" : "v2_shared_domains", - "request" : { - "url" : "/v2/shared_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 2,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"created_at\": \"2018-03-28T22:15:03Z\",\n \"updated_at\": \"2018-04-13T20:33:21Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n },\n {\n \"metadata\": {\n \"guid\": \"552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"url\": \"/v2/shared_domains/552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"created_at\": \"2018-04-05T18:31:55Z\",\n \"updated_at\": \"2018-04-05T18:31:55Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:37 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "9e4ade05-14ef-44a2-6729-9c4becf597b2::80092568-ea88-4c8c-97b1-3f11f68ec30a", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "637473f2-17b4-4a0b-8b36-04d1c4da0a6a", - "persistent" : true, - "scenarioName" : "scenario-v2-shared_domains", - "requiredScenarioState" : "scenario-v2-shared_domains-2", - "insertionIndex" : 15 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-6aed1e16-b885-4a4b-8558-6caafc98c787.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-6aed1e16-b885-4a4b-8558-6caafc98c787.json deleted file mode 100644 index bba9187..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-6aed1e16-b885-4a4b-8558-6caafc98c787.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "6aed1e16-b885-4a4b-8558-6caafc98c787", - "name" : "v2_shared_domains", - "request" : { - "url" : "/v2/shared_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 2,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"created_at\": \"2018-03-28T22:15:03Z\",\n \"updated_at\": \"2018-04-13T20:33:21Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n },\n {\n \"metadata\": {\n \"guid\": \"552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"url\": \"/v2/shared_domains/552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"created_at\": \"2018-04-05T18:31:55Z\",\n \"updated_at\": \"2018-04-05T18:31:55Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:36 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "10f6e9fc-5c11-465f-535a-b2571434b38b::06ff8144-218b-46e8-b853-f55e83d0ea2a", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "6aed1e16-b885-4a4b-8558-6caafc98c787", - "persistent" : true, - "scenarioName" : "scenario-v2-shared_domains", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-v2-shared_domains-2", - "insertionIndex" : 10 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces-2dc09099-4cd0-4b82-bf92-c59b9766812a.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces-2dc09099-4cd0-4b82-bf92-c59b9766812a.json deleted file mode 100644 index c20ed76..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces-2dc09099-4cd0-4b82-bf92-c59b9766812a.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "2dc09099-4cd0-4b82-bf92-c59b9766812a", - "name" : "v2_spaces", - "request" : { - "url" : "/v2/spaces?q=name:development&q=organization_guid:b3e001e9-4956-40e3-9695-79325199355f&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:36 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "83c9e61b-cb5d-4cd8-4cfc-121084469c8c::4b6d08f3-cf1d-422c-a96c-5a67a11a9174", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "2dc09099-4cd0-4b82-bf92-c59b9766812a", - "persistent" : true, - "insertionIndex" : 7 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces-b0b05a70-c1a2-4855-bdf1-81b011f54cc6.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces-b0b05a70-c1a2-4855-bdf1-81b011f54cc6.json deleted file mode 100644 index e054660..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces-b0b05a70-c1a2-4855-bdf1-81b011f54cc6.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "b0b05a70-c1a2-4855-bdf1-81b011f54cc6", - "name" : "v2_spaces", - "request" : { - "url" : "/v2/spaces?q=name%3Adevelopment&q=organization_guid%3Ab3e001e9-4956-40e3-9695-79325199355f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:34 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "5a7c6387-a027-40f3-6caf-c91ad6bcdeb1::415ae901-25ce-4129-957b-356f648c0abd", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "b0b05a70-c1a2-4855-bdf1-81b011f54cc6", - "persistent" : true, - "insertionIndex" : 3 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-bd774135-a681-4e89-b056-f338391bc509.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-bd774135-a681-4e89-b056-f338391bc509.json deleted file mode 100644 index bfff65d..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-bd774135-a681-4e89-b056-f338391bc509.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "bd774135-a681-4e89-b056-f338391bc509", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:36 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "e97f56d0-e1a4-4097-7df2-cd8452f52619::ce74cd8d-47c1-430f-b5e6-f80cc08772e4", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "bd774135-a681-4e89-b056-f338391bc509", - "persistent" : true, - "insertionIndex" : 8 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-0aa9e836-a7e9-453f-bd61-b9075858a7cd.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-0aa9e836-a7e9-453f-bd61-b9075858a7cd.json deleted file mode 100644 index 7310e1d..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-0aa9e836-a7e9-453f-bd61-b9075858a7cd.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "0aa9e836-a7e9-453f-bd61-b9075858a7cd", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name:app-with-properties&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:05:36 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "e7fe5c7e-fb93-4a68-7b03-b8d3d083cc14::da6ad5cd-45f0-4a3e-9e51-459a104e89f4", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "0aa9e836-a7e9-453f-bd61-b9075858a7cd", - "persistent" : true, - "insertionIndex" : 11 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-5214279d-12ba-4f8d-8949-6dbcd66833ca.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-5214279d-12ba-4f8d-8949-6dbcd66833ca.json deleted file mode 100644 index 86c918b..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithPropertiesWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-5214279d-12ba-4f8d-8949-6dbcd66833ca.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "5214279d-12ba-4f8d-8949-6dbcd66833ca", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name%3Aapp-with-properties&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829\",\n \"created_at\": \"2018-07-20T19:05:36Z\",\n \"updated_at\": \"2018-07-20T19:05:45Z\"\n },\n \"entity\": {\n \"name\": \"app-with-properties\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\"\n },\n \"memory\": 2048,\n \"instances\": 2,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"2a230cd4-7053-43bf-b4aa-691abf526995\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"4198288f-6690-478b-bccc-bec8b6ee2c1c\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 180,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-20T19:05:37Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/routes\",\n \"events_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/events\",\n \"service_bindings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/47e53fcc-9094-40bd-99eb-154b30aad829/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Fri, 20 Jul 2018 19:06:46 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "dce0bfaf-f061-4079-68b4-0128beaa5426::fc3b5299-5730-449d-a280-60168729aa0f", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "5214279d-12ba-4f8d-8949-6dbcd66833ca", - "persistent" : true, - "insertionIndex" : 36 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/-ca8908a9-8cb4-4e4e-9bfa-a96cba6b5b0a.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/-ca8908a9-8cb4-4e4e-9bfa-a96cba6b5b0a.json deleted file mode 100644 index 99be42b..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/-ca8908a9-8cb4-4e4e-9bfa-a96cba6b5b0a.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "ca8908a9-8cb4-4e4e-9bfa-a96cba6b5b0a", - "name" : "", - "request" : { - "url" : "/", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"links\": {\n \"self\": {\n \"href\": \"http://localhost\"\n },\n \"cloud_controller_v2\": {\n \"href\": \"http://localhost\",\n \"meta\": {\n \"version\": \"2.103.0\"\n }\n },\n \"cloud_controller_v3\": {\n \"href\": \"http://localhost\",\n \"meta\": {\n \"version\": \"3.38.0\"\n }\n },\n \"network_policy_v0\": {\n \"href\": \"http://localhost\"\n },\n \"network_policy_v1\": {\n \"href\": \"http://localhost\"\n },\n \"uaa\": {\n \"href\": \"http://localhost\"\n },\n \"credhub\": null,\n \"routing\": {\n \"href\": \"http://localhost\"\n },\n \"logging\": {\n \"href\": \"wss://localhost\"\n },\n \"app_ssh\": {\n \"href\": \"localhost\",\n \"meta\": {\n \"host_key_fingerprint\": \"8c:db:69:39:90:e1:93:6a:f8:56:e9:a7:68:fc:52:d2\",\n \"oauth_client\": \"ssh-proxy\"\n }\n }\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:50 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "7ceea585-2bd4-4a41-5489-6ff3c100fb99::b06e027f-12d8-4d5f-92d3-5bdfd7c07394", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "ca8908a9-8cb4-4e4e-9bfa-a96cba6b5b0a", - "persistent" : true, - "insertionIndex" : 4 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-11e48c2d-d892-46fa-b1ad-fcabc76d5ac8.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-11e48c2d-d892-46fa-b1ad-fcabc76d5ac8.json deleted file mode 100644 index e41ab13..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-11e48c2d-d892-46fa-b1ad-fcabc76d5ac8.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "11e48c2d-d892-46fa-b1ad-fcabc76d5ac8", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:28:55Z\"\n },\n \"entity\": {\n \"name\": \"appwithservices\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1f60129a-0515-45bd-9dec-ebf534fb19a5\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"27fed725-7770-494b-bb68-385d723ab0c0\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:28:52Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes\",\n \"events_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/events\",\n \"service_bindings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:02 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "319468ad-572d-4938-535a-bdb4a9db35ac::d99f9b0a-9d7f-40d1-a30f-5fa2fb3dd5a2", - "Keep-Alive" : "timeout=5, max=91", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "11e48c2d-d892-46fa-b1ad-fcabc76d5ac8", - "persistent" : true, - "scenarioName" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "requiredScenarioState" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-4", - "newScenarioState" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-5", - "insertionIndex" : 28 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-3c813ca7-1451-45b3-8b71-7c1eaed708e1.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-3c813ca7-1451-45b3-8b71-7c1eaed708e1.json deleted file mode 100644 index 60fb397..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-3c813ca7-1451-45b3-8b71-7c1eaed708e1.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "3c813ca7-1451-45b3-8b71-7c1eaed708e1", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"state\":\"STARTED\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:28:55Z\"\n },\n \"entity\": {\n \"name\": \"appwithservices\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1f60129a-0515-45bd-9dec-ebf534fb19a5\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"27fed725-7770-494b-bb68-385d723ab0c0\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:28:52Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes\",\n \"events_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/events\",\n \"service_bindings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:55 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "18ea9dee-588e-4e0b-667f-303e32db4579::1252bbf7-9d08-4cd0-8f8d-48bf58c31cbc", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "3c813ca7-1451-45b3-8b71-7c1eaed708e1", - "persistent" : true, - "insertionIndex" : 24 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-3f9bd98e-0c18-4fd2-bd9a-196af35e388c.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-3f9bd98e-0c18-4fd2-bd9a-196af35e388c.json deleted file mode 100644 index fb02fcb..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-3f9bd98e-0c18-4fd2-bd9a-196af35e388c.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "3f9bd98e-0c18-4fd2-bd9a-196af35e388c", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:28:55Z\"\n },\n \"entity\": {\n \"name\": \"appwithservices\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1f60129a-0515-45bd-9dec-ebf534fb19a5\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"27fed725-7770-494b-bb68-385d723ab0c0\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:28:52Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes\",\n \"events_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/events\",\n \"service_bindings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:56 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "8f8f7b26-bcc2-4273-7615-ba77db5d6488::8b8613ff-3a54-4722-8f8a-fb87d62b73e6", - "Keep-Alive" : "timeout=5, max=93", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "3f9bd98e-0c18-4fd2-bd9a-196af35e388c", - "persistent" : true, - "scenarioName" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "requiredScenarioState" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-2", - "newScenarioState" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-3", - "insertionIndex" : 26 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-4cbb3f90-1d41-448e-a904-e6659e53b383.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-4cbb3f90-1d41-448e-a904-e6659e53b383.json deleted file mode 100644 index 3851561..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-4cbb3f90-1d41-448e-a904-e6659e53b383.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "4cbb3f90-1d41-448e-a904-e6659e53b383", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"state\":\"STOPPED\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:28:55Z\"\n },\n \"entity\": {\n \"name\": \"appwithservices\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STOPPED\",\n \"version\": \"fb5505de-14bd-40eb-8298-ed2ec20ee134\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"ac1842ce-c0e1-4fca-a2d7-bb0ec60b3a80\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:28:52Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes\",\n \"events_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/events\",\n \"service_bindings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:55 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "e6dcfd7c-72d8-4e0c-7339-7f56ff7612b3::96cca8b4-5dc5-4540-ade0-0af47d84f968", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "4cbb3f90-1d41-448e-a904-e6659e53b383", - "persistent" : true, - "insertionIndex" : 23 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-591ff056-d69b-4c9d-9035-6403ef5143a8.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-591ff056-d69b-4c9d-9035-6403ef5143a8.json deleted file mode 100644 index e69b23f..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-591ff056-d69b-4c9d-9035-6403ef5143a8.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "591ff056-d69b-4c9d-9035-6403ef5143a8", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:28:55Z\"\n },\n \"entity\": {\n \"name\": \"appwithservices\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1f60129a-0515-45bd-9dec-ebf534fb19a5\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"27fed725-7770-494b-bb68-385d723ab0c0\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:28:52Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes\",\n \"events_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/events\",\n \"service_bindings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:41 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "d33cbb03-0c5a-4440-795b-9992235c5b3c::77ceccae-0d3e-49af-a17f-7c1101b32d76", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "591ff056-d69b-4c9d-9035-6403ef5143a8", - "persistent" : true, - "scenarioName" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "requiredScenarioState" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-7", - "insertionIndex" : 31 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-845bb41c-3804-4a44-870e-0b91fc1ed06f.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-845bb41c-3804-4a44-870e-0b91fc1ed06f.json deleted file mode 100644 index 34cdd2d..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-845bb41c-3804-4a44-870e-0b91fc1ed06f.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "845bb41c-3804-4a44-870e-0b91fc1ed06f", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:28:55Z\"\n },\n \"entity\": {\n \"name\": \"appwithservices\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1f60129a-0515-45bd-9dec-ebf534fb19a5\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"27fed725-7770-494b-bb68-385d723ab0c0\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:28:52Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes\",\n \"events_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/events\",\n \"service_bindings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:25 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "426f4172-780f-4f9f-4a61-d7c741f6feae::7b419a62-68d5-455f-a0df-60d5cdd41444", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "845bb41c-3804-4a44-870e-0b91fc1ed06f", - "persistent" : true, - "scenarioName" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "requiredScenarioState" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-6", - "newScenarioState" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-7", - "insertionIndex" : 30 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-907afff7-3c02-4441-a712-a24d50022f3d.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-907afff7-3c02-4441-a712-a24d50022f3d.json deleted file mode 100644 index 4b798e4..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-907afff7-3c02-4441-a712-a24d50022f3d.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "907afff7-3c02-4441-a712-a24d50022f3d", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:28:55Z\"\n },\n \"entity\": {\n \"name\": \"appwithservices\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1f60129a-0515-45bd-9dec-ebf534fb19a5\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"27fed725-7770-494b-bb68-385d723ab0c0\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:28:52Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes\",\n \"events_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/events\",\n \"service_bindings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:10 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "6f7f14bc-4997-4bdb-4f18-3ef5ccfc2341::0012a291-dc74-4b32-9eed-c824cb5ecd65", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "907afff7-3c02-4441-a712-a24d50022f3d", - "persistent" : true, - "scenarioName" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "requiredScenarioState" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-5", - "newScenarioState" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-6", - "insertionIndex" : 29 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-96493bc5-8a91-419c-ad0c-3d318c7088d4.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-96493bc5-8a91-419c-ad0c-3d318c7088d4.json deleted file mode 100644 index b55b0b3..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-96493bc5-8a91-419c-ad0c-3d318c7088d4.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "96493bc5-8a91-419c-ad0c-3d318c7088d4", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "{\"buildpack\":\"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\"disk_quota\":1024,\"environment_json\":{\"SPRING_APPLICATION_INDEX\":\"${vcap.application.instance_index}\",\"SPRING_APPLICATION_JSON\":\"{}\",\"SPRING_CLOUD_APPLICATION_GUID\":\"${vcap.application.name}:${vcap.application.instance_index}\"},\"health_check_http_endpoint\":\"/health\",\"health_check_timeout\":120,\"health_check_type\":\"port\",\"instances\":1,\"memory\":1024,\"name\":\"appwithservices\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:28:51Z\"\n },\n \"entity\": {\n \"name\": \"appwithservices\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"fb5505de-14bd-40eb-8298-ed2ec20ee134\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"ac1842ce-c0e1-4fca-a2d7-bb0ec60b3a80\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:23:55Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes\",\n \"events_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/events\",\n \"service_bindings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "04fdd4a8-9f61-409f-7cae-a1896e211e70::8b4051bb-86c9-4747-afe3-8ab9237eb8c3", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "96493bc5-8a91-419c-ad0c-3d318c7088d4", - "persistent" : true, - "insertionIndex" : 12 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-9bc1fcdd-c17f-4d0c-9d4e-72c60b901c5d.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-9bc1fcdd-c17f-4d0c-9d4e-72c60b901c5d.json deleted file mode 100644 index 736c6a1..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-9bc1fcdd-c17f-4d0c-9d4e-72c60b901c5d.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "9bc1fcdd-c17f-4d0c-9d4e-72c60b901c5d", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:28:55Z\"\n },\n \"entity\": {\n \"name\": \"appwithservices\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1f60129a-0515-45bd-9dec-ebf534fb19a5\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"27fed725-7770-494b-bb68-385d723ab0c0\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:28:52Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes\",\n \"events_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/events\",\n \"service_bindings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:55 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "fa14f254-3208-401c-49ef-8f967b211283::7de87110-27c5-46e2-8a8a-bc5ce096d81a", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "9bc1fcdd-c17f-4d0c-9d4e-72c60b901c5d", - "persistent" : true, - "scenarioName" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-2", - "insertionIndex" : 25 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-eae7b36f-97ff-4c7b-9f8a-4b66de35021c.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-eae7b36f-97ff-4c7b-9f8a-4b66de35021c.json deleted file mode 100644 index e6d1591..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-eae7b36f-97ff-4c7b-9f8a-4b66de35021c.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "eae7b36f-97ff-4c7b-9f8a-4b66de35021c", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:28:55Z\"\n },\n \"entity\": {\n \"name\": \"appwithservices\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": null,\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1f60129a-0515-45bd-9dec-ebf534fb19a5\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"27fed725-7770-494b-bb68-385d723ab0c0\",\n \"package_state\": \"PENDING\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:28:52Z\",\n \"detected_start_command\": \"\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes\",\n \"events_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/events\",\n \"service_bindings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/route_mappings\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:58 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "0bf514ba-541a-4046-6072-6d2b4af51dcf::877e6f0a-4ab2-4d23-8109-4cb569f93e86", - "Keep-Alive" : "timeout=5, max=92", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "eae7b36f-97ff-4c7b-9f8a-4b66de35021c", - "persistent" : true, - "scenarioName" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c", - "requiredScenarioState" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-3", - "newScenarioState" : "scenario-apps-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-4", - "insertionIndex" : 27 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_bits-63ced75e-0fdb-4111-9b9f-c554759afa72.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_bits-63ced75e-0fdb-4111-9b9f-c554759afa72.json deleted file mode 100644 index 0915923..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_bits-63ced75e-0fdb-4111-9b9f-c554759afa72.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "63ced75e-0fdb-4111-9b9f-c554759afa72", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_bits", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/bits?async=true", - "method" : "PUT", - "bodyPatterns" : [ { - "anything" : "anything" - } ] - }, - "response" : { - "status" : 201, - "body" : "{\n \"metadata\": {\n \"guid\": \"57251937-fb03-429e-bea2-ef6beb6d3c29\",\n \"created_at\": \"2018-07-19T23:28:52Z\",\n \"url\": \"/v2/jobs/57251937-fb03-429e-bea2-ef6beb6d3c29\"\n },\n \"entity\": {\n \"guid\": \"57251937-fb03-429e-bea2-ef6beb6d3c29\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "431db17a-5bdd-472f-433a-defbbe15ba6c::d15b6f46-6518-47a9-baa3-3f0fab672cba", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "63ced75e-0fdb-4111-9b9f-c554759afa72", - "persistent" : true, - "insertionIndex" : 19 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_env-29e75f01-448f-432d-a586-247e2a848190.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_env-29e75f01-448f-432d-a586-247e2a848190.json deleted file mode 100644 index 68dc752..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_env-29e75f01-448f-432d-a586-247e2a848190.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "29e75f01-448f-432d-a586-247e2a848190", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_env", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/env", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"staging_env_json\": {\n\n },\n \"running_env_json\": {\n\n },\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"system_env_json\": {\n \"VCAP_SERVICES\": {\n \"user-provided\": [\n {\n \"name\": \"my-rabbit-service\",\n \"instance_name\": \"my-rabbit-service\",\n \"binding_name\": null,\n \"credentials\": {\n\n },\n \"syslog_drain_url\": \"\",\n \"volume_mounts\": [\n\n ],\n \"label\": \"user-provided\",\n \"tags\": [\n\n ]\n},\n {\n \"name\": \"my-db-service\",\n \"instance_name\": \"my-db-service\",\n \"binding_name\": null,\n \"credentials\": {\n\n },\n \"syslog_drain_url\": \"\",\n \"volume_mounts\": [\n\n ],\n \"label\": \"user-provided\",\n \"tags\": [\n\n ]\n}\n ]\n }\n },\n \"application_env_json\": {\n \"VCAP_APPLICATION\": {\n \"cf_api\": \"http://localhost\",\n \"limits\": {\n \"fds\": 16384,\n \"mem\": 1024,\n \"disk\": 1024\n },\n \"application_name\": \"appwithservices\",\n \"application_uris\": [\n \"appwithservices.apps.scottfrederick.io\"\n ],\n \"name\": \"appwithservices\",\n \"space_name\": \"development\",\n \"space_id\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"uris\": [\n \"appwithservices.apps.scottfrederick.io\"\n ],\n \"users\": null,\n \"application_id\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"version\": \"1f60129a-0515-45bd-9dec-ebf534fb19a5\",\n \"application_version\": \"1f60129a-0515-45bd-9dec-ebf534fb19a5\"\n }\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:48 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "381131f8-0cb2-4bcb-4c6c-6eb6c73d7f91::01361f19-80d7-4daa-a77e-f0909fc59b17", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "29e75f01-448f-432d-a586-247e2a848190", - "persistent" : true, - "insertionIndex" : 37 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances-4dc1dade-a3b7-45a1-9a9d-357fa5703868.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances-4dc1dade-a3b7-45a1-9a9d-357fa5703868.json deleted file mode 100644 index ecd0e2f..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances-4dc1dade-a3b7-45a1-9a9d-357fa5703868.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "4dc1dade-a3b7-45a1-9a9d-357fa5703868", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"STARTING\",\"uptime\":9,\"since\":1532042971}}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:41 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "9d28d007-587b-47e5-4b12-c06d99474b92::ebbdcdff-9c4e-46e7-9b29-241e53c908b6", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "4dc1dade-a3b7-45a1-9a9d-357fa5703868", - "persistent" : true, - "scenarioName" : "scenario-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-instances", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-instances-2", - "insertionIndex" : 32 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances-4fba066f-4301-4420-be02-e475e8bf86cf.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances-4fba066f-4301-4420-be02-e475e8bf86cf.json deleted file mode 100644 index dc7d6ac..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances-4fba066f-4301-4420-be02-e475e8bf86cf.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "4fba066f-4301-4420-be02-e475e8bf86cf", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"STARTING\",\"uptime\":10,\"since\":1532042971}}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:42 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "7a4281b7-1533-4a2d-4b5f-f420c1f635b1::7fbe32fa-99a6-46f3-a5cd-1d18355d6acd", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "4fba066f-4301-4420-be02-e475e8bf86cf", - "persistent" : true, - "scenarioName" : "scenario-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-instances", - "requiredScenarioState" : "scenario-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-instances-2", - "newScenarioState" : "scenario-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-instances-3", - "insertionIndex" : 33 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances-87283cb2-4723-4ad4-b3d6-4759e2cf83a8.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances-87283cb2-4723-4ad4-b3d6-4759e2cf83a8.json deleted file mode 100644 index a244160..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances-87283cb2-4723-4ad4-b3d6-4759e2cf83a8.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "87283cb2-4723-4ad4-b3d6-4759e2cf83a8", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"STARTING\",\"uptime\":12,\"since\":1532042971}}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:44 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "ca7f4cca-3b24-48b4-6978-5a0cc440f9f8::67afcd3e-8660-4dd9-9d2a-6cbbe2fa4bcb", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "87283cb2-4723-4ad4-b3d6-4759e2cf83a8", - "persistent" : true, - "scenarioName" : "scenario-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-instances", - "requiredScenarioState" : "scenario-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-instances-3", - "newScenarioState" : "scenario-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-instances-4", - "insertionIndex" : 34 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances-9d23ab50-c9d6-4504-9c65-9c2e0ac23e80.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances-9d23ab50-c9d6-4504-9c65-9c2e0ac23e80.json deleted file mode 100644 index 4cf6997..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances-9d23ab50-c9d6-4504-9c65-9c2e0ac23e80.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "9d23ab50-c9d6-4504-9c65-9c2e0ac23e80", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_instances", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/instances", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"0\":{\"state\":\"RUNNING\",\"uptime\":2,\"since\":1532042986}}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:48 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "8c2046a4-4385-4c65-4fd6-8f9a02ff8325::141cfd00-aea3-44a5-b505-892e0b333a58", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "9d23ab50-c9d6-4504-9c65-9c2e0ac23e80", - "persistent" : true, - "scenarioName" : "scenario-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-instances", - "requiredScenarioState" : "scenario-9895ccf2-9ee2-4aca-9da7-b3424fa4a59c-instances-4", - "insertionIndex" : 35 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_routes-f240d3e5-2bba-4740-b2bd-01ac3a9d2cc3.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_routes-f240d3e5-2bba-4740-b2bd-01ac3a9d2cc3.json deleted file mode 100644 index 500a972..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_routes-f240d3e5-2bba-4740-b2bd-01ac3a9d2cc3.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "f240d3e5-2bba-4740-b2bd-01ac3a9d2cc3", - "name" : "v2_apps_9895ccf2-9ee2-4aca-9da7-b3424fa4a59c_routes", - "request" : { - "url" : "/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"7e818c07-84af-40ad-8a3a-0ab38590a846\",\n \"url\": \"/v2/routes/7e818c07-84af-40ad-8a3a-0ab38590a846\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:01:04Z\"\n },\n \"entity\": {\n \"host\": \"appwithservices\",\n \"path\": \"\",\n \"domain_guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"service_instance_guid\": null,\n \"port\": null,\n \"domain_url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"apps_url\": \"/v2/routes/7e818c07-84af-40ad-8a3a-0ab38590a846/apps\",\n \"route_mappings_url\": \"/v2/routes/7e818c07-84af-40ad-8a3a-0ab38590a846/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "eba6218e-1b00-47fa-5d30-831c23d36169::3a97f040-346c-44c7-831a-1ad1083a1379", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "f240d3e5-2bba-4740-b2bd-01ac3a9d2cc3", - "persistent" : true, - "insertionIndex" : 13 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_info-40f24171-3126-4b55-ae84-5a7b83674e92.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_info-40f24171-3126-4b55-ae84-5a7b83674e92.json deleted file mode 100644 index 6aa659d..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_info-40f24171-3126-4b55-ae84-5a7b83674e92.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "40f24171-3126-4b55-ae84-5a7b83674e92", - "name" : "v2_info", - "request" : { - "url" : "/v2/info", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"name\":\"\",\"build\":\"\",\"support\":\"https://support.pivotal.io\",\"version\":0,\"description\":\"\",\"authorization_endpoint\":\"http://localhost\"}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "30b39c50-fab1-46d0-6953-4848f3a36e54::53317ad7-0020-4f59-b749-456a685eca25", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "40f24171-3126-4b55-ae84-5a7b83674e92", - "persistent" : true, - "insertionIndex" : 5 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_jobs_57251937-fb03-429e-bea2-ef6beb6d3c29-388b405d-f665-49f4-b76f-5b911798ef2c.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_jobs_57251937-fb03-429e-bea2-ef6beb6d3c29-388b405d-f665-49f4-b76f-5b911798ef2c.json deleted file mode 100644 index ad70759..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_jobs_57251937-fb03-429e-bea2-ef6beb6d3c29-388b405d-f665-49f4-b76f-5b911798ef2c.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "388b405d-f665-49f4-b76f-5b911798ef2c", - "name" : "v2_jobs_57251937-fb03-429e-bea2-ef6beb6d3c29", - "request" : { - "url" : "/v2/jobs/57251937-fb03-429e-bea2-ef6beb6d3c29", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"57251937-fb03-429e-bea2-ef6beb6d3c29\",\n \"created_at\": \"2018-07-19T23:28:52Z\",\n \"url\": \"/v2/jobs/57251937-fb03-429e-bea2-ef6beb6d3c29\"\n },\n \"entity\": {\n \"guid\": \"57251937-fb03-429e-bea2-ef6beb6d3c29\",\n \"status\": \"queued\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:52 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "e6d1ca82-827a-48bd-4a38-c1c1b29233ea::593b28f8-ffbf-4daa-a189-1fad0fdcd1cc", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "388b405d-f665-49f4-b76f-5b911798ef2c", - "persistent" : true, - "scenarioName" : "scenario-jobs-57251937-fb03-429e-bea2-ef6beb6d3c29", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-jobs-57251937-fb03-429e-bea2-ef6beb6d3c29-2", - "insertionIndex" : 20 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_jobs_57251937-fb03-429e-bea2-ef6beb6d3c29-41987f41-7532-46f5-98ef-ab04b61cd771.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_jobs_57251937-fb03-429e-bea2-ef6beb6d3c29-41987f41-7532-46f5-98ef-ab04b61cd771.json deleted file mode 100644 index 6cadfc2..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_jobs_57251937-fb03-429e-bea2-ef6beb6d3c29-41987f41-7532-46f5-98ef-ab04b61cd771.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id" : "41987f41-7532-46f5-98ef-ab04b61cd771", - "name" : "v2_jobs_57251937-fb03-429e-bea2-ef6beb6d3c29", - "request" : { - "url" : "/v2/jobs/57251937-fb03-429e-bea2-ef6beb6d3c29", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"0\",\n \"created_at\": \"1970-01-01T00:00:00Z\",\n \"url\": \"/v2/jobs/0\"\n },\n \"entity\": {\n \"guid\": \"0\",\n \"status\": \"finished\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:55 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "911f451e-1201-448a-605e-a3eae7a5c5b3::c4708c87-5583-4117-8286-64e16892674a", - "Keep-Alive" : "timeout=5, max=97", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "41987f41-7532-46f5-98ef-ab04b61cd771", - "persistent" : true, - "scenarioName" : "scenario-jobs-57251937-fb03-429e-bea2-ef6beb6d3c29", - "requiredScenarioState" : "scenario-jobs-57251937-fb03-429e-bea2-ef6beb6d3c29-3", - "insertionIndex" : 22 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_jobs_57251937-fb03-429e-bea2-ef6beb6d3c29-a97db353-a80c-4c62-bc17-cefaf88df7e3.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_jobs_57251937-fb03-429e-bea2-ef6beb6d3c29-a97db353-a80c-4c62-bc17-cefaf88df7e3.json deleted file mode 100644 index 8273b37..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_jobs_57251937-fb03-429e-bea2-ef6beb6d3c29-a97db353-a80c-4c62-bc17-cefaf88df7e3.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id" : "a97db353-a80c-4c62-bc17-cefaf88df7e3", - "name" : "v2_jobs_57251937-fb03-429e-bea2-ef6beb6d3c29", - "request" : { - "url" : "/v2/jobs/57251937-fb03-429e-bea2-ef6beb6d3c29", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"57251937-fb03-429e-bea2-ef6beb6d3c29\",\n \"created_at\": \"2018-07-19T23:28:52Z\",\n \"url\": \"/v2/jobs/57251937-fb03-429e-bea2-ef6beb6d3c29\"\n },\n \"entity\": {\n \"guid\": \"57251937-fb03-429e-bea2-ef6beb6d3c29\",\n \"status\": \"running\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:53 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "d9577966-58e2-49fb-78ca-4b43f378b752::b21ec5cf-d635-4dc7-bdb1-68592d70dbfd", - "Keep-Alive" : "timeout=5, max=98", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "a97db353-a80c-4c62-bc17-cefaf88df7e3", - "persistent" : true, - "scenarioName" : "scenario-jobs-57251937-fb03-429e-bea2-ef6beb6d3c29", - "requiredScenarioState" : "scenario-jobs-57251937-fb03-429e-bea2-ef6beb6d3c29-2", - "newScenarioState" : "scenario-jobs-57251937-fb03-429e-bea2-ef6beb6d3c29-3", - "insertionIndex" : 21 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_organizations-2d22afe3-02f8-432e-802d-6d42110f3ba8.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_organizations-2d22afe3-02f8-432e-802d-6d42110f3ba8.json deleted file mode 100644 index 0175025..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_organizations-2d22afe3-02f8-432e-802d-6d42110f3ba8.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "2d22afe3-02f8-432e-802d-6d42110f3ba8", - "name" : "v2_organizations", - "request" : { - "url" : "/v2/organizations?q=name:test&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"created_at\": \"2018-07-19T20:33:45Z\",\n \"updated_at\": \"2018-07-19T20:33:45Z\"\n },\n \"entity\": {\n \"name\": \"test\",\n \"billing_enabled\": false,\n \"quota_definition_guid\": \"7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"status\": \"active\",\n \"default_isolation_segment_guid\": null,\n \"quota_definition_url\": \"/v2/quota_definitions/7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"spaces_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/spaces\",\n \"domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/domains\",\n \"private_domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains\",\n \"users_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/users\",\n \"managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/managers\",\n \"billing_managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/billing_managers\",\n \"auditors_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/auditors\",\n \"app_events_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/app_events\",\n \"space_quota_definitions_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/space_quota_definitions\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "0db09fb6-47f7-4984-5e49-c4f3df727e1e::7cca9b61-e70e-4098-9918-681a19a75399", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "2d22afe3-02f8-432e-802d-6d42110f3ba8", - "persistent" : true, - "insertionIndex" : 6 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_organizations-c098a3e6-e541-488a-8449-0eeac7a82753.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_organizations-c098a3e6-e541-488a-8449-0eeac7a82753.json deleted file mode 100644 index 77d0f9d..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_organizations-c098a3e6-e541-488a-8449-0eeac7a82753.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "c098a3e6-e541-488a-8449-0eeac7a82753", - "name" : "v2_organizations", - "request" : { - "url" : "/v2/organizations?q=name%3Atest", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"created_at\": \"2018-07-19T20:33:45Z\",\n \"updated_at\": \"2018-07-19T20:33:45Z\"\n },\n \"entity\": {\n \"name\": \"test\",\n \"billing_enabled\": false,\n \"quota_definition_guid\": \"7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"status\": \"active\",\n \"default_isolation_segment_guid\": null,\n \"quota_definition_url\": \"/v2/quota_definitions/7885d305-f247-4d9c-b070-9c65536f09f3\",\n \"spaces_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/spaces\",\n \"domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/domains\",\n \"private_domains_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains\",\n \"users_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/users\",\n \"managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/managers\",\n \"billing_managers_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/billing_managers\",\n \"auditors_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/auditors\",\n \"app_events_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/app_events\",\n \"space_quota_definitions_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/space_quota_definitions\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:50 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "938a85ec-ba4e-4525-4ea2-02e6705b92b0::5f30bca1-bf51-4c31-86b2-638c53c6e79c", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "c098a3e6-e541-488a-8449-0eeac7a82753", - "persistent" : true, - "insertionIndex" : 2 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-777dbb82-ff88-4922-ae85-c993abdfb0c4.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-777dbb82-ff88-4922-ae85-c993abdfb0c4.json deleted file mode 100644 index a433397..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains-777dbb82-ff88-4922-ae85-c993abdfb0c4.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "777dbb82-ff88-4922-ae85-c993abdfb0c4", - "name" : "v2_organizations_b3e001e9-4956-40e3-9695-79325199355f_private_domains", - "request" : { - "url" : "/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f/private_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 0,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "59492bcb-901b-4a02-6936-12b276bce583::14a19dd5-3f9f-4057-ab28-dd6e417923eb", - "Keep-Alive" : "timeout=5, max=93", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "777dbb82-ff88-4922-ae85-c993abdfb0c4", - "persistent" : true, - "insertionIndex" : 9 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_resource_match-c9f9f6ca-1696-4f7c-a522-0a1f8509ecae.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_resource_match-c9f9f6ca-1696-4f7c-a522-0a1f8509ecae.json deleted file mode 100644 index 7306a2e..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_resource_match-c9f9f6ca-1696-4f7c-a522-0a1f8509ecae.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "id" : "c9f9f6ca-1696-4f7c-a522-0a1f8509ecae", - "name" : "v2_resource_match", - "request" : { - "url" : "/v2/resource_match", - "method" : "PUT", - "bodyPatterns" : [ { - "equalToJson" : "[{\"sha1\":\"5aa239d8ad6d8130b055caebf44467b9c55d422b\",\"mode\":\"100644\",\"size\":461472},{\"sha1\":\"4c2dd0f89549ee38a588808acfa24797c196b7cb\",\"mode\":\"100644\",\"size\":1779},{\"sha1\":\"4e36bfa02cd464e99d82008a787dcf66ddf2dadc\",\"mode\":\"100644\",\"size\":2688},{\"sha1\":\"ff9d64ab3b825c6b8ed7c64694d0521918785ae2\",\"mode\":\"100644\",\"size\":299},{\"sha1\":\"7caad34f01d2688919e15e09a90467963e3d5190\",\"mode\":\"100644\",\"size\":613},{\"sha1\":\"cb855558e6271b1b32e716d24cb85c7f583ce09e\",\"mode\":\"100644\",\"size\":93107},{\"sha1\":\"0af5364cd6679bfffb114f0dec8a157aaa283b76\",\"mode\":\"100644\",\"size\":4596},{\"sha1\":\"d370eeff676d24523ee530f6abc569474d2f9bf9\",\"mode\":\"100644\",\"size\":612},{\"sha1\":\"011bc4cc96b08fabad2b3186755818fa0b32d83f\",\"mode\":\"100644\",\"size\":1162436},{\"sha1\":\"d963a184197107a75952666c831f14cb662933b7\",\"mode\":\"100644\",\"size\":3608},{\"sha1\":\"8664b2431c82e94493723054cbf5ff341c8ecdb7\",\"mode\":\"100644\",\"size\":5203},{\"sha1\":\"414ffd8db5d733bf88256d5fd8ebb9fd2aff3108\",\"mode\":\"100644\",\"size\":1527},{\"sha1\":\"f9170b781caecaa2127d9d8baf9964e599eb605a\",\"mode\":\"100644\",\"size\":733},{\"sha1\":\"d63a2b8de1abe4092e03ada60bb8d5e26aa73562\",\"mode\":\"100644\",\"size\":1721},{\"sha1\":\"152dbb704f32fef5c6841c46488bf1bb57b6ba5b\",\"mode\":\"100644\",\"size\":1374},{\"sha1\":\"41fd4180bea3813de8f3c602b5a126218360315b\",\"mode\":\"100644\",\"size\":588},{\"sha1\":\"3e324efa4aff13f75357a34a71366d1c20a59e88\",\"mode\":\"100644\",\"size\":4015},{\"sha1\":\"2abf786c56d4cd17c289b56c7ae21b30b6ba5ab7\",\"mode\":\"100644\",\"size\":345},{\"sha1\":\"154a9ab94c152458ebf0f314126fa959d712be9c\",\"mode\":\"100644\",\"size\":4624},{\"sha1\":\"9bc041759fd397c07e01f3af486ba70f7d0b14ba\",\"mode\":\"100644\",\"size\":945},{\"sha1\":\"934c04d3cfef185a8008e7bf34331b79730a9d43\",\"mode\":\"100644\",\"size\":26586},{\"sha1\":\"9e1ac84eed220281841b75e72fb9de5a297fbf04\",\"mode\":\"100644\",\"size\":117910},{\"sha1\":\"1c7dee76e2a1eb2b3f4600b89a4398d8f93a2874\",\"mode\":\"100644\",\"size\":129},{\"sha1\":\"01295d86ab56891a989cd6a9fe84fa169f287e6f\",\"mode\":\"100644\",\"size\":4976},{\"sha1\":\"3dacf0841881da8fe564bc58a6c22227b7dcab71\",\"mode\":\"100644\",\"size\":1585},{\"sha1\":\"b2a3686010af53ce71da04880a704ac957c7a47e\",\"mode\":\"100644\",\"size\":3555},{\"sha1\":\"58709490fb98f037070be9387d97abbf62dcd684\",\"mode\":\"100644\",\"size\":3837},{\"sha1\":\"0da88b36af193860ba6d007c1af3ce5b589b923b\",\"mode\":\"100644\",\"size\":5243},{\"sha1\":\"2d998d3d674b172a588e54ab619854d073f555b5\",\"mode\":\"100644\",\"size\":297518},{\"sha1\":\"2e389a8727588c549c28bb277f0f573f65554850\",\"mode\":\"100644\",\"size\":645},{\"sha1\":\"ea54f6193d224e5e5732bbd4262327eb465397c2\",\"mode\":\"100644\",\"size\":99987},{\"sha1\":\"699016ddf454c2c167d9f84ae5777eccadf54728\",\"mode\":\"100644\",\"size\":21703},{\"sha1\":\"2ed9db8f21cf1c5d65f0f4fd734078cc255998e7\",\"mode\":\"100644\",\"size\":437},{\"sha1\":\"03d5f48f10bbe4eb7bd862f10c0583be2e0053c6\",\"mode\":\"100644\",\"size\":65100},{\"sha1\":\"da39a3ee5e6b4b0d3255bfef95601890afd80709\",\"mode\":\"100644\",\"size\":0},{\"sha1\":\"fe111141e88286b0e243e4cb8dc583dbad789bc7\",\"mode\":\"100644\",\"size\":282},{\"sha1\":\"38f0748e222b21ef6f9913b054c7ed1a818eb42d\",\"mode\":\"100644\",\"size\":266},{\"sha1\":\"9a29444393acc68bee96bc82adda9607dbe1d0a0\",\"mode\":\"100644\",\"size\":1593},{\"sha1\":\"cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\",\"mode\":\"100644\",\"size\":1349339},{\"sha1\":\"7c4f3c474fb2c041d8028740440937705ebb473a\",\"mode\":\"100644\",\"size\":290339},{\"sha1\":\"da76ca59f6a57ee3102f8f9bd9cee742973efa8a\",\"mode\":\"100644\",\"size\":41203},{\"sha1\":\"ffaa050dbd36b0441645598f1a7ddaf67fd5e678\",\"mode\":\"100644\",\"size\":592},{\"sha1\":\"c5eaa23f5bb1f0f4b7eb44824093874d0d9165f5\",\"mode\":\"100644\",\"size\":352776},{\"sha1\":\"47c87d1e377678c051ec1e5225333ba4d7d9d05a\",\"mode\":\"100644\",\"size\":702},{\"sha1\":\"e0f3ab697ceccda84083488dc98e638148934520\",\"mode\":\"100644\",\"size\":1081},{\"sha1\":\"72bb957e4e0a2e42056230c683238b1b783da10d\",\"mode\":\"100644\",\"size\":616},{\"sha1\":\"25a51a75bfb997b7b95d6760178ee3303863ec4b\",\"mode\":\"100644\",\"size\":591},{\"sha1\":\"b86c3da72f30bd20dd82988ab6f370c13c616022\",\"mode\":\"100644\",\"size\":10728},{\"sha1\":\"e7d522eb60e66a2d9a0aa7edfcaf8ce287f25752\",\"mode\":\"100644\",\"size\":2062},{\"sha1\":\"0546460176b54aeeca93080900aece6f7229f680\",\"mode\":\"100644\",\"size\":302},{\"sha1\":\"73b260df53aa71535bab27e4971796954958b5d5\",\"mode\":\"100644\",\"size\":1997},{\"sha1\":\"54b731178d81e66eca9623df772ff32718208137\",\"mode\":\"100644\",\"size\":1226075},{\"sha1\":\"38b942875b91697c636c94b2c846c0e074ef1a07\",\"mode\":\"100644\",\"size\":9852},{\"sha1\":\"7049e9e927d6bbeb1463e76452e290f92661ec1d\",\"mode\":\"100644\",\"size\":3116},{\"sha1\":\"07c10d545325e3a6e72e06381afe469fd40eb701\",\"mode\":\"100644\",\"size\":66519},{\"sha1\":\"4e393793c37c77e042ccc7be5a914ae39251b365\",\"mode\":\"100644\",\"size\":323848},{\"sha1\":\"fec5797a55b786184a537abd39c3fa1449d752d6\",\"mode\":\"100644\",\"size\":255485},{\"sha1\":\"c4c8204bdde87f3e93a21d741cc5358f70e57829\",\"mode\":\"100644\",\"size\":5687},{\"sha1\":\"864344400c3d4d92dfeb0a305dc87d953677c03c\",\"mode\":\"100644\",\"size\":471901},{\"sha1\":\"2e04c6c2922fbfa06b5948be14a5782db168b6ec\",\"mode\":\"100644\",\"size\":1254656},{\"sha1\":\"8b2c25bd7d759b111d0753b8dfbdecac952c495e\",\"mode\":\"100644\",\"size\":14915},{\"sha1\":\"7b962117a6f8c03809104d47533c131e3218e174\",\"mode\":\"100644\",\"size\":540},{\"sha1\":\"b874870d915adbc3dd932e19077d3d45c8e54aa0\",\"mode\":\"100644\",\"size\":930680},{\"sha1\":\"06e73803e03b47891d5aeb1f24ca2cfd3940a923\",\"mode\":\"100644\",\"size\":4684},{\"sha1\":\"cd4bb73ce7e6d08086cb9b88e6ff8734372999d3\",\"mode\":\"100644\",\"size\":4306},{\"sha1\":\"751c871527ec7ff335ffc76f2e737e297c0a8d30\",\"mode\":\"100644\",\"size\":789866},{\"sha1\":\"fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef\",\"mode\":\"100644\",\"size\":366340},{\"sha1\":\"a068327cb0a1439c99c0b36d504c488f4e80483f\",\"mode\":\"100644\",\"size\":1502},{\"sha1\":\"187248459a73eaf34e8264db20a33961e35426df\",\"mode\":\"100644\",\"size\":19737},{\"sha1\":\"3a536e1ac71b82627c3a7408eb38fa0704cb9034\",\"mode\":\"100644\",\"size\":240244},{\"sha1\":\"af324ebf4e72e10fcac6c5ac008636a4d41a5cf2\",\"mode\":\"100644\",\"size\":7336},{\"sha1\":\"ca01fb473f53dd0ee3c85663b26d5dc325602057\",\"mode\":\"100644\",\"size\":280032},{\"sha1\":\"82ec0aa4d240f7eb17788fcf6e5d32b012abebf4\",\"mode\":\"100644\",\"size\":273},{\"sha1\":\"dfe3be1a15b150f2eb7f5f27ee6645ced87d8f6e\",\"mode\":\"100644\",\"size\":5267},{\"sha1\":\"84af6fc0cb1f57fcf8fffac62c4df1b632af0efb\",\"mode\":\"100644\",\"size\":3263},{\"sha1\":\"28a84685bb9c1b63218221e60a3112b014e5eb57\",\"mode\":\"100644\",\"size\":485},{\"sha1\":\"769c0b82cb2421c8256300e907298a9410a2a3d3\",\"mode\":\"100644\",\"size\":29779},{\"sha1\":\"8313c1e792bc063978d8da9351f3b3f7e2c62d3e\",\"mode\":\"100644\",\"size\":3414},{\"sha1\":\"06564e716b89de5eaa0dd234ae7989576503ddf3\",\"mode\":\"100644\",\"size\":256776},{\"sha1\":\"243a23f8968de8754d8199d669780d683ab177bd\",\"mode\":\"100644\",\"size\":1090739},{\"sha1\":\"3789d00e859632e6c6206adc0c71625559e6e3b0\",\"mode\":\"100644\",\"size\":66469},{\"sha1\":\"242c7585b8c5007ddc8637c8e8d1eabe9b35ab42\",\"mode\":\"100644\",\"size\":1487},{\"sha1\":\"f7e631ccf49cfc0aefa4a2a728da7d374c05bd3c\",\"mode\":\"100644\",\"size\":17519},{\"sha1\":\"11d4aec9dfcec2e04622ce3078aedc68b2f98278\",\"mode\":\"100644\",\"size\":1484},{\"sha1\":\"4236051a8d209c00f85e70918d5e26d9f3e5201e\",\"mode\":\"100644\",\"size\":1133563},{\"sha1\":\"92871c480d939d240c4acac88913a383094fe1c3\",\"mode\":\"100644\",\"size\":1233},{\"sha1\":\"9dd235da986d0c06739c0e42d527343b3d8a447c\",\"mode\":\"100644\",\"size\":1102},{\"sha1\":\"f3e3392c3e8e2714fc05bbf0f3ee496ad19eedc7\",\"mode\":\"100644\",\"size\":379277},{\"sha1\":\"f5adf7ed8c34aa005b22b6a2dc7b6796e10e9c79\",\"mode\":\"100644\",\"size\":3115994},{\"sha1\":\"45a5ec14da7bc166fc73c52fd091f5a01bd66e56\",\"mode\":\"100644\",\"size\":11509},{\"sha1\":\"456895fc91bf7180b216fead220373e6278230c9\",\"mode\":\"100644\",\"size\":33395},{\"sha1\":\"df8fdb927c0e035487031c9b33e33c15b0df5f8a\",\"mode\":\"100644\",\"size\":1693},{\"sha1\":\"c1196cb3e56da83e3c3a02ef323699f4b05feedc\",\"mode\":\"100644\",\"size\":660545},{\"sha1\":\"129acd77a4b6ee30d62d3a0899b1344c8ec2bff8\",\"mode\":\"100644\",\"size\":8645},{\"sha1\":\"daa252ffd6a1f363b51de18cb0adab39711006a9\",\"mode\":\"100644\",\"size\":1953}]", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "[{\"sha1\":\"5aa239d8ad6d8130b055caebf44467b9c55d422b\",\"mode\":\"100644\",\"size\":461472},{\"sha1\":\"cb855558e6271b1b32e716d24cb85c7f583ce09e\",\"mode\":\"100644\",\"size\":93107},{\"sha1\":\"011bc4cc96b08fabad2b3186755818fa0b32d83f\",\"mode\":\"100644\",\"size\":1162436},{\"sha1\":\"9e1ac84eed220281841b75e72fb9de5a297fbf04\",\"mode\":\"100644\",\"size\":117910},{\"sha1\":\"2d998d3d674b172a588e54ab619854d073f555b5\",\"mode\":\"100644\",\"size\":297518},{\"sha1\":\"ea54f6193d224e5e5732bbd4262327eb465397c2\",\"mode\":\"100644\",\"size\":99987},{\"sha1\":\"cfa4f316351a91bfd95cb0644c6a2c95f52db1fc\",\"mode\":\"100644\",\"size\":1349339},{\"sha1\":\"7c4f3c474fb2c041d8028740440937705ebb473a\",\"mode\":\"100644\",\"size\":290339},{\"sha1\":\"c5eaa23f5bb1f0f4b7eb44824093874d0d9165f5\",\"mode\":\"100644\",\"size\":352776},{\"sha1\":\"54b731178d81e66eca9623df772ff32718208137\",\"mode\":\"100644\",\"size\":1226075},{\"sha1\":\"07c10d545325e3a6e72e06381afe469fd40eb701\",\"mode\":\"100644\",\"size\":66519},{\"sha1\":\"4e393793c37c77e042ccc7be5a914ae39251b365\",\"mode\":\"100644\",\"size\":323848},{\"sha1\":\"fec5797a55b786184a537abd39c3fa1449d752d6\",\"mode\":\"100644\",\"size\":255485},{\"sha1\":\"864344400c3d4d92dfeb0a305dc87d953677c03c\",\"mode\":\"100644\",\"size\":471901},{\"sha1\":\"2e04c6c2922fbfa06b5948be14a5782db168b6ec\",\"mode\":\"100644\",\"size\":1254656},{\"sha1\":\"b874870d915adbc3dd932e19077d3d45c8e54aa0\",\"mode\":\"100644\",\"size\":930680},{\"sha1\":\"751c871527ec7ff335ffc76f2e737e297c0a8d30\",\"mode\":\"100644\",\"size\":789866},{\"sha1\":\"fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef\",\"mode\":\"100644\",\"size\":366340},{\"sha1\":\"3a536e1ac71b82627c3a7408eb38fa0704cb9034\",\"mode\":\"100644\",\"size\":240244},{\"sha1\":\"ca01fb473f53dd0ee3c85663b26d5dc325602057\",\"mode\":\"100644\",\"size\":280032},{\"sha1\":\"06564e716b89de5eaa0dd234ae7989576503ddf3\",\"mode\":\"100644\",\"size\":256776},{\"sha1\":\"243a23f8968de8754d8199d669780d683ab177bd\",\"mode\":\"100644\",\"size\":1090739},{\"sha1\":\"3789d00e859632e6c6206adc0c71625559e6e3b0\",\"mode\":\"100644\",\"size\":66469},{\"sha1\":\"4236051a8d209c00f85e70918d5e26d9f3e5201e\",\"mode\":\"100644\",\"size\":1133563},{\"sha1\":\"f3e3392c3e8e2714fc05bbf0f3ee496ad19eedc7\",\"mode\":\"100644\",\"size\":379277},{\"sha1\":\"f5adf7ed8c34aa005b22b6a2dc7b6796e10e9c79\",\"mode\":\"100644\",\"size\":3115994},{\"sha1\":\"c1196cb3e56da83e3c3a02ef323699f4b05feedc\",\"mode\":\"100644\",\"size\":660545}]", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "f82e1d18-2d09-4a10-6a20-3f8927a0fd92::b78665bf-a9e3-4a28-8a60-3de1f046d203", - "Keep-Alive" : "timeout=5, max=92", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "c9f9f6ca-1696-4f7c-a522-0a1f8509ecae", - "persistent" : true, - "insertionIndex" : 14 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_service_bindings-68802f63-36ef-4665-a30e-8cc348aa4f8e.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_service_bindings-68802f63-36ef-4665-a30e-8cc348aa4f8e.json deleted file mode 100644 index 3c0e6c8..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_service_bindings-68802f63-36ef-4665-a30e-8cc348aa4f8e.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "id" : "68802f63-36ef-4665-a30e-8cc348aa4f8e", - "name" : "v2_service_bindings", - "request" : { - "url" : "/v2/service_bindings", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"app_guid\":\"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\"service_instance_guid\":\"8f9512ff-a0c1-485d-ae30-79b996233554\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 400, - "body" : "{\n \"description\": \"The app is already bound to the service.\",\n \"error_code\": \"CF-ServiceBindingAppServiceTaken\",\n \"code\": 90003\n}\n", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "1b023e9d-ea77-4884-59be-5b2106b0d4af::cf87a430-17b8-4ec1-83bd-8796f3d0b0d8", - "Connection" : "close" - } - }, - "uuid" : "68802f63-36ef-4665-a30e-8cc348aa4f8e", - "persistent" : true, - "insertionIndex" : 18 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_service_bindings-b5f788dc-a248-437c-87b3-449ba2bdabc7.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_service_bindings-b5f788dc-a248-437c-87b3-449ba2bdabc7.json deleted file mode 100644 index e901b03..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_service_bindings-b5f788dc-a248-437c-87b3-449ba2bdabc7.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "id" : "b5f788dc-a248-437c-87b3-449ba2bdabc7", - "name" : "v2_service_bindings", - "request" : { - "url" : "/v2/service_bindings", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"app_guid\":\"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\"service_instance_guid\":\"00693554-7f41-4fb4-9085-a0657e29bdab\"}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 400, - "body" : "{\n \"description\": \"The app is already bound to the service.\",\n \"error_code\": \"CF-ServiceBindingAppServiceTaken\",\n \"code\": 90003\n}\n", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "2c937ffe-96a0-4ed0-6528-e3e50c87e1af::998cb44a-6d07-4edc-943d-9c171887f3ff", - "Connection" : "close" - } - }, - "uuid" : "b5f788dc-a248-437c-87b3-449ba2bdabc7", - "persistent" : true, - "insertionIndex" : 17 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-56ca65e2-8707-437a-acb1-a1dc6544c031.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-56ca65e2-8707-437a-acb1-a1dc6544c031.json deleted file mode 100644 index ab40a6d..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_shared_domains-56ca65e2-8707-437a-acb1-a1dc6544c031.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "56ca65e2-8707-437a-acb1-a1dc6544c031", - "name" : "v2_shared_domains", - "request" : { - "url" : "/v2/shared_domains?page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 2,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"url\": \"/v2/shared_domains/28e83b6f-3cb4-4df4-a056-4e4ae5d0efad\",\n \"created_at\": \"2018-03-28T22:15:03Z\",\n \"updated_at\": \"2018-04-13T20:33:21Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n },\n {\n \"metadata\": {\n \"guid\": \"552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"url\": \"/v2/shared_domains/552417c3-b176-4e36-84b8-22ff7eeb0b84\",\n \"created_at\": \"2018-04-05T18:31:55Z\",\n \"updated_at\": \"2018-04-05T18:31:55Z\"\n },\n \"entity\": {\n \"name\": \"localhost\",\n \"router_group_guid\": null,\n \"router_group_type\": null\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "40b8ac37-10d5-46ec-7258-e34b809716c7::341b59a6-a389-4ab6-9aa5-d8f8d3e39fc7", - "Keep-Alive" : "timeout=5, max=100", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "56ca65e2-8707-437a-acb1-a1dc6544c031", - "persistent" : true, - "insertionIndex" : 10 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces-0173eb60-015f-4cf9-8c1d-89491da10f37.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces-0173eb60-015f-4cf9-8c1d-89491da10f37.json deleted file mode 100644 index b57f8a1..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces-0173eb60-015f-4cf9-8c1d-89491da10f37.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "0173eb60-015f-4cf9-8c1d-89491da10f37", - "name" : "v2_spaces", - "request" : { - "url" : "/v2/spaces?q=name%3Adevelopment&q=organization_guid%3Ab3e001e9-4956-40e3-9695-79325199355f", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:50 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "dbc12822-3cf2-4e47-5b4c-10643952ba38::e7499cb9-9ee6-41ec-863f-fc39f97cc256", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "0173eb60-015f-4cf9-8c1d-89491da10f37", - "persistent" : true, - "insertionIndex" : 3 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces-6f8341c4-e107-42a6-a5b1-2f5257abad3b.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces-6f8341c4-e107-42a6-a5b1-2f5257abad3b.json deleted file mode 100644 index 6bf4921..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces-6f8341c4-e107-42a6-a5b1-2f5257abad3b.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "6f8341c4-e107-42a6-a5b1-2f5257abad3b", - "name" : "v2_spaces", - "request" : { - "url" : "/v2/spaces?q=name:development&q=organization_guid:b3e001e9-4956-40e3-9695-79325199355f&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "517300ba-feca-490e-7cbc-5b09d9135353::a963d31a-f528-454b-8ada-3451f39d181f", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "6f8341c4-e107-42a6-a5b1-2f5257abad3b", - "persistent" : true, - "insertionIndex" : 7 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-4f520be2-d51e-4bde-a584-e9412ea65f7a.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-4f520be2-d51e-4bde-a584-e9412ea65f7a.json deleted file mode 100644 index e478878..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d-4f520be2-d51e-4bde-a584-e9412ea65f7a.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "4f520be2-d51e-4bde-a584-e9412ea65f7a", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"metadata\": {\n \"guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"created_at\": \"2018-07-19T20:34:16Z\",\n \"updated_at\": \"2018-07-19T20:34:16Z\"\n },\n \"entity\": {\n \"name\": \"development\",\n \"organization_guid\": \"b3e001e9-4956-40e3-9695-79325199355f\",\n \"space_quota_definition_guid\": null,\n \"isolation_segment_guid\": null,\n \"allow_ssh\": true,\n \"organization_url\": \"/v2/organizations/b3e001e9-4956-40e3-9695-79325199355f\",\n \"developers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/developers\",\n \"managers_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/managers\",\n \"auditors_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/auditors\",\n \"apps_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps\",\n \"routes_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/routes\",\n \"domains_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/domains\",\n \"service_instances_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances\",\n \"app_events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/app_events\",\n \"events_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/events\",\n \"security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/security_groups\",\n \"staging_security_groups_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/staging_security_groups\"\n }\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "b7a7b5f3-554b-49ee-60c2-fdd293a2a848::d29c147e-e652-45b1-ad8b-c7c6caf8e7da", - "Keep-Alive" : "timeout=5, max=94", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "4f520be2-d51e-4bde-a584-e9412ea65f7a", - "persistent" : true, - "insertionIndex" : 8 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-10915e1f-9175-49e0-8167-d8da08f26076.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-10915e1f-9175-49e0-8167-d8da08f26076.json deleted file mode 100644 index 26cc365..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-10915e1f-9175-49e0-8167-d8da08f26076.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "10915e1f-9175-49e0-8167-d8da08f26076", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name:appwithservices&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:24:03Z\"\n },\n \"entity\": {\n \"name\": \"appwithservices\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"fb5505de-14bd-40eb-8298-ed2ec20ee134\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"ac1842ce-c0e1-4fca-a2d7-bb0ec60b3a80\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:23:55Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes\",\n \"events_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/events\",\n \"service_bindings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "16733cb6-f2d8-4051-66f3-4042a5972ea1::30511f7f-1c09-4cc4-a39e-1932c7907f39", - "Keep-Alive" : "timeout=5, max=99", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "10915e1f-9175-49e0-8167-d8da08f26076", - "persistent" : true, - "insertionIndex" : 11 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-4bd1ba7f-5aff-444d-833f-51bef7611c8b.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-4bd1ba7f-5aff-444d-833f-51bef7611c8b.json deleted file mode 100644 index d14a0f5..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps-4bd1ba7f-5aff-444d-833f-51bef7611c8b.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "4bd1ba7f-5aff-444d-833f-51bef7611c8b", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_apps", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/apps?q=name%3Aappwithservices&page=1", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c\",\n \"created_at\": \"2018-07-19T23:01:04Z\",\n \"updated_at\": \"2018-07-19T23:28:55Z\"\n },\n \"entity\": {\n \"name\": \"appwithservices\",\n \"production\": false,\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_guid\": \"8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"buildpack\": \"https://github.com/cloudfoundry/java-buildpack.git#v4.7.1\",\n \"detected_buildpack\": \"\",\n \"detected_buildpack_guid\": null,\n \"environment_json\": {\n \"SPRING_APPLICATION_INDEX\": \"${vcap.application.instance_index}\",\n \"SPRING_APPLICATION_JSON\": \"{}\",\n \"SPRING_CLOUD_APPLICATION_GUID\": \"${vcap.application.name}:${vcap.application.instance_index}\"\n },\n \"memory\": 1024,\n \"instances\": 1,\n \"disk_quota\": 1024,\n \"state\": \"STARTED\",\n \"version\": \"1f60129a-0515-45bd-9dec-ebf534fb19a5\",\n \"command\": null,\n \"console\": false,\n \"debug\": null,\n \"staging_task_id\": \"27fed725-7770-494b-bb68-385d723ab0c0\",\n \"package_state\": \"STAGED\",\n \"health_check_type\": \"port\",\n \"health_check_timeout\": 120,\n \"health_check_http_endpoint\": \"/health\",\n \"staging_failed_reason\": null,\n \"staging_failed_description\": null,\n \"diego\": true,\n \"docker_image\": null,\n \"docker_credentials\": {\n \"username\": null,\n \"password\": null\n },\n \"package_updated_at\": \"2018-07-19T23:28:52Z\",\n \"detected_start_command\": \"JAVA_OPTS=\\\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\\\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\\\"$JAVA_OPTS\\\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\\\"$JAVA_OPTS $CALCULATED_MEMORY\\\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher\",\n \"enable_ssh\": true,\n \"ports\": [\n 8080\n ],\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"stack_url\": \"/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f\",\n \"routes_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/routes\",\n \"events_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/events\",\n \"service_bindings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/service_bindings\",\n \"route_mappings_url\": \"/v2/apps/9895ccf2-9ee2-4aca-9da7-b3424fa4a59c/route_mappings\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:29:48 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "03d35e69-f609-40b7-4c5f-53ade7e78f2b::df8bd993-5558-4dad-8f4e-e64690225d7c", - "Keep-Alive" : "timeout=5, max=95", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "4bd1ba7f-5aff-444d-833f-51bef7611c8b", - "persistent" : true, - "insertionIndex" : 36 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_service_instances-1e155d6d-90ce-41cb-be8b-64e79da8c4fa.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_service_instances-1e155d6d-90ce-41cb-be8b-64e79da8c4fa.json deleted file mode 100644 index a9bfe6b..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_service_instances-1e155d6d-90ce-41cb-be8b-64e79da8c4fa.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "1e155d6d-90ce-41cb-be8b-64e79da8c4fa", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_service_instances", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances?q=name:my-db-service&page=1&return_user_provided_service_instances=true", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"00693554-7f41-4fb4-9085-a0657e29bdab\",\n \"url\": \"/v2/user_provided_service_instances/00693554-7f41-4fb4-9085-a0657e29bdab\",\n \"created_at\": \"2018-07-19T22:29:41Z\",\n \"updated_at\": \"2018-07-19T22:29:41Z\"\n },\n \"entity\": {\n \"name\": \"my-db-service\",\n \"credentials\": {\n\n },\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"type\": \"user_provided_service_instance\",\n \"syslog_drain_url\": \"\",\n \"route_service_url\": \"\",\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"service_bindings_url\": \"/v2/user_provided_service_instances/00693554-7f41-4fb4-9085-a0657e29bdab/service_bindings\",\n \"service_keys_url\": \"/v2/user_provided_service_instances/00693554-7f41-4fb4-9085-a0657e29bdab/service_keys\",\n \"routes_url\": \"/v2/user_provided_service_instances/00693554-7f41-4fb4-9085-a0657e29bdab/routes\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "0daea1d6-709e-4821-5dd9-23e7fe1d2c2f::61a54f7f-e565-4ca0-8d57-f65250b7d778", - "Keep-Alive" : "timeout=5, max=91", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "1e155d6d-90ce-41cb-be8b-64e79da8c4fa", - "persistent" : true, - "insertionIndex" : 15 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_service_instances-b78846f9-50d3-4d7f-89f7-f07518556c73.json b/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_service_instances-b78846f9-50d3-4d7f-89f7-f07518556c73.json deleted file mode 100644 index 5be4179..0000000 --- a/spring-cloud-app-broker-sample/src/test/resources/recordings/shouldPushAppWithServiceWhenCreateServiceEndpointCalled/mappings/v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_service_instances-b78846f9-50d3-4d7f-89f7-f07518556c73.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "b78846f9-50d3-4d7f-89f7-f07518556c73", - "name" : "v2_spaces_c32f8285-5127-42dc-a9b9-6d22bb99fa9d_service_instances", - "request" : { - "url" : "/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d/service_instances?q=name:my-rabbit-service&page=1&return_user_provided_service_instances=true", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\n \"total_results\": 1,\n \"total_pages\": 1,\n \"prev_url\": null,\n \"next_url\": null,\n \"resources\": [\n {\n \"metadata\": {\n \"guid\": \"8f9512ff-a0c1-485d-ae30-79b996233554\",\n \"url\": \"/v2/user_provided_service_instances/8f9512ff-a0c1-485d-ae30-79b996233554\",\n \"created_at\": \"2018-07-19T22:51:31Z\",\n \"updated_at\": \"2018-07-19T22:51:31Z\"\n },\n \"entity\": {\n \"name\": \"my-rabbit-service\",\n \"credentials\": {\n\n },\n \"space_guid\": \"c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"type\": \"user_provided_service_instance\",\n \"syslog_drain_url\": \"\",\n \"route_service_url\": \"\",\n \"space_url\": \"/v2/spaces/c32f8285-5127-42dc-a9b9-6d22bb99fa9d\",\n \"service_bindings_url\": \"/v2/user_provided_service_instances/8f9512ff-a0c1-485d-ae30-79b996233554/service_bindings\",\n \"service_keys_url\": \"/v2/user_provided_service_instances/8f9512ff-a0c1-485d-ae30-79b996233554/service_keys\",\n \"routes_url\": \"/v2/user_provided_service_instances/8f9512ff-a0c1-485d-ae30-79b996233554/routes\"\n }\n }\n ]\n}", - "headers" : { - "Date" : "Thu, 19 Jul 2018 23:28:51 GMT", - "Server" : "nginx", - "Content-Type" : "application/json;charset=utf-8", - "X-Content-Type-Options" : "nosniff", - "X-Vcap-Request-Id" : "82cb5b6b-f74f-44b5-6061-1241f3c3dba5::c154cf5f-5136-419e-b4c5-2e6b69699a0d", - "Keep-Alive" : "timeout=5, max=96", - "Connection" : "Keep-Alive" - } - }, - "uuid" : "b78846f9-50d3-4d7f-89f7-f07518556c73", - "persistent" : true, - "insertionIndex" : 16 -} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/empty-query-results.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/empty-query-results.json new file mode 100644 index 0000000..bd0bee4 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/empty-query-results.json @@ -0,0 +1,7 @@ +{ + "total_results": 0, + "total_pages": 1, + "prev_url": null, + "next_url": null, + "resources": [] +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-STAGED.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-STAGED.json new file mode 100644 index 0000000..2db3e8b --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-STAGED.json @@ -0,0 +1,55 @@ +{ + "metadata": { + "guid": "@guid", + "url": "/v2/apps/@guid", + "created_at": "2018-07-20T18:39:26Z", + "updated_at": "2018-07-20T18:39:30Z" + }, + "entity": { + "name": "@name", + "production": false, + "space_guid": "@space-guid", + "stack_guid": "8e0c91f4-1144-41d7-828b-6da5f66cf24f", + "buildpack": "https://github.com/cloudfoundry/java-buildpack.git#v4.7.1", + "detected_buildpack": "", + "detected_buildpack_guid": null, + "environment_json": { + "SPRING_APPLICATION_INDEX": "${vcap.application.instance_index}", + "SPRING_CLOUD_APPLICATION_GUID": "${vcap.application.name}:${vcap.application.instance_index}", + "SPRING_APPLICATION_JSON": "{}" + }, + "memory": 1024, + "instances": 1, + "disk_quota": 1024, + "state": "STARTED", + "version": "05833bef-5aea-425f-98e8-7ea3a598fe8e", + "command": null, + "console": false, + "debug": null, + "staging_task_id": "5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98", + "package_state": "STAGED", + "health_check_type": "port", + "health_check_timeout": 120, + "health_check_http_endpoint": "/health", + "staging_failed_reason": null, + "staging_failed_description": null, + "diego": true, + "docker_image": null, + "docker_credentials": { + "username": null, + "password": null + }, + "package_updated_at": "2018-07-20T18:39:27Z", + "detected_start_command": "", + "enable_ssh": true, + "ports": [ + 8080 + ], + "space_url": "/v2/spaces/@space-guid", + "stack_url": "/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f", + "routes_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes", + "events_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events", + "service_bindings_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings", + "route_mappings_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings" + } +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-STARTED.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-STARTED.json new file mode 100644 index 0000000..8dd322f --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-STARTED.json @@ -0,0 +1,55 @@ +{ + "metadata": { + "guid": "@guid", + "url": "/v2/apps/@guid", + "created_at": "2018-07-20T18:39:26Z", + "updated_at": "2018-07-20T18:39:30Z" + }, + "entity": { + "name": "@name", + "production": false, + "space_guid": "@space-guid", + "stack_guid": "8e0c91f4-1144-41d7-828b-6da5f66cf24f", + "buildpack": "https://github.com/cloudfoundry/java-buildpack.git#v4.7.1", + "detected_buildpack": null, + "detected_buildpack_guid": null, + "environment_json": { + "SPRING_APPLICATION_INDEX": "${vcap.application.instance_index}", + "SPRING_CLOUD_APPLICATION_GUID": "${vcap.application.name}:${vcap.application.instance_index}", + "SPRING_APPLICATION_JSON": "{}" + }, + "memory": 1024, + "instances": 1, + "disk_quota": 1024, + "state": "STARTED", + "version": "05833bef-5aea-425f-98e8-7ea3a598fe8e", + "command": null, + "console": false, + "debug": null, + "staging_task_id": "5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98", + "package_state": "PENDING", + "health_check_type": "port", + "health_check_timeout": 120, + "health_check_http_endpoint": "/health", + "staging_failed_reason": null, + "staging_failed_description": null, + "diego": true, + "docker_image": null, + "docker_credentials": { + "username": null, + "password": null + }, + "package_updated_at": "2018-07-20T18:39:27Z", + "detected_start_command": "", + "enable_ssh": true, + "ports": [ + 8080 + ], + "space_url": "/v2/spaces/@space-guid", + "stack_url": "/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f", + "routes_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes", + "events_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events", + "service_bindings_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings", + "route_mappings_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings" + } +} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-STOPPED.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-STOPPED.json new file mode 100644 index 0000000..49e390a --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-STOPPED.json @@ -0,0 +1,55 @@ +{ + "metadata": { + "guid": "@guid", + "url": "/v2/apps/@guid", + "created_at": "2018-07-20T18:39:26Z", + "updated_at": "2018-07-20T18:39:30Z" + }, + "entity": { + "name": "@name", + "production": false, + "space_guid": "@space-guid", + "stack_guid": "8e0c91f4-1144-41d7-828b-6da5f66cf24f", + "buildpack": "https://github.com/cloudfoundry/java-buildpack.git#v4.7.1", + "detected_buildpack": null, + "detected_buildpack_guid": null, + "environment_json": { + "SPRING_APPLICATION_INDEX": "${vcap.application.instance_index}", + "SPRING_CLOUD_APPLICATION_GUID": "${vcap.application.name}:${vcap.application.instance_index}", + "SPRING_APPLICATION_JSON": "{}" + }, + "memory": 1024, + "instances": 1, + "disk_quota": 1024, + "state": "STOPPED", + "version": "60d9f82f-9350-4687-9455-696e05154185", + "command": null, + "console": false, + "debug": null, + "staging_task_id": null, + "package_state": "PENDING", + "health_check_type": "port", + "health_check_timeout": 120, + "health_check_http_endpoint": "/health", + "staging_failed_reason": null, + "staging_failed_description": null, + "diego": true, + "docker_image": null, + "docker_credentials": { + "username": null, + "password": null + }, + "package_updated_at": "2018-07-20T18:39:27Z", + "detected_start_command": "", + "enable_ssh": true, + "ports": [ + 8080 + ], + "space_url": "/v2/spaces/@space-guid", + "stack_url": "/v2/stacks/8e0c91f4-1144-41d7-828b-6da5f66cf24f", + "routes_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes", + "events_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events", + "service_bindings_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings", + "route_mappings_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings" + } +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-instances.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-instances.json new file mode 100644 index 0000000..a042ad7 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-instances.json @@ -0,0 +1,7 @@ +{ + "0": { + "state": "RUNNING", + "uptime": 3, + "since": 1532112027 + } +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-stats.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-stats.json new file mode 100644 index 0000000..203011b --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-stats.json @@ -0,0 +1,24 @@ +{ + "0": { + "state": "RUNNING", + "isolation_segment": null, + "stats": { + "name": "@name", + "uris": [ + "@name.apps.example.com" + ], + "host": "192.168.1.107", + "port": 61008, + "uptime": 183684, + "mem_quota": 1073741824, + "disk_quota": 1073741824, + "fds_quota": 16384, + "usage": { + "time": "2018-08-17T22:36:11+00:00", + "cpu": 0.0025520205697755153, + "mem": 338087936, + "disk": 147185664 + } + } + } +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-summary.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-summary.json new file mode 100644 index 0000000..50ec322 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-app-summary.json @@ -0,0 +1,59 @@ +{ + "guid": "@guid", + "name": "@name", + "routes": [ + { + "guid": "@route-guid", + "host": "@name", + "port": null, + "path": "", + "domain": { + "guid": "28e83b6f-3cb4-4df4-a056-4e4ae5d0efad", + "name": "apps.example.com" + } + } + ], + "running_instances": 1, + "services": [ + ], + "available_domains": [ + { + "guid": "28e83b6f-3cb4-4df4-a056-4e4ae5d0efad", + "name": "apps.example.com", + "router_group_guid": null, + "router_group_type": null + } + ], + "production": false, + "space_guid": "c32f8285-5127-42dc-a9b9-6d22bb99fa9d", + "stack_guid": "@stack-guid", + "buildpack": "https://github.com/cloudfoundry/java-buildpack.git#v4.7.1", + "detected_buildpack": "", + "detected_buildpack_guid": null, + "environment_json": { + "SPRING_APPLICATION_INDEX": "${vcap.application.instance_index}", + "SPRING_CLOUD_APPLICATION_GUID": "${vcap.application.name}:${vcap.application.instance_index}", + "SPRING_APPLICATION_JSON": "{}" + }, + "memory": 1024, + "instances": 1, + "disk_quota": 1024, + "state": "STARTED", + "version": "54b1eed3-e30c-40ad-8cc6-a7b87fbfb699", + "command": null, + "console": false, + "debug": null, + "staging_task_id": "66a74858-c432-446d-bec5-13026d4cbb28", + "package_state": "STAGED", + "health_check_type": "port", + "health_check_timeout": 120, + "health_check_http_endpoint": "/health", + "staging_failed_reason": null, + "staging_failed_description": null, + "diego": true, + "docker_image": null, + "package_updated_at": "2018-08-15T19:33:41Z", + "detected_start_command": "JAVA_OPTS=\"-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.12.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext -Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS\" && CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.10.0_RELEASE -totMemory=$MEMORY_LIMIT -stackThreads=300 -loadedClasses=14289 -poolType=metaspace -vmOptions=\"$JAVA_OPTS\") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS=\"$JAVA_OPTS $CALCULATED_MEMORY\" && SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher", + "enable_ssh": true, + "ports": null +} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-info.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-info.json new file mode 100644 index 0000000..a5dee13 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-info.json @@ -0,0 +1,8 @@ +{ + "name": "", + "build": "", + "support": "https://support.pivotal.io", + "version": 0, + "description": "", + "authorization_endpoint": "http://localhost" +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-job-finished.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-job-finished.json new file mode 100644 index 0000000..91ea196 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-job-finished.json @@ -0,0 +1,11 @@ +{ + "metadata": { + "guid": "0", + "created_at": "1970-01-01T00:00:00Z", + "url": "/v2/jobs/0" + }, + "entity": { + "guid": "0", + "status": "finished" + } +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-root.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-root.json new file mode 100644 index 0000000..f414141 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-root.json @@ -0,0 +1,42 @@ +{ + "links": { + "self": { + "href": "http://localhost" + }, + "cloud_controller_v2": { + "href": "http://localhost", + "meta": { + "version": "2.103.0" + } + }, + "cloud_controller_v3": { + "href": "http://localhost", + "meta": { + "version": "3.38.0" + } + }, + "network_policy_v0": { + "href": "http://localhost" + }, + "network_policy_v1": { + "href": "http://localhost" + }, + "uaa": { + "href": "http://localhost" + }, + "credhub": null, + "routing": { + "href": "http://localhost" + }, + "logging": { + "href": "wss://localhost" + }, + "app_ssh": { + "href": "localhost", + "meta": { + "host_key_fingerprint": "8c:db:69:39:90:e1:93:6a:f8:56:e9:a7:68:fc:52:d2", + "oauth_client": "ssh-proxy" + } + } + } +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-route.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-route.json new file mode 100644 index 0000000..f1eb1d8 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-route.json @@ -0,0 +1,11 @@ +{ + "metadata": { + "guid": "@guid", + "created_at": "2018-07-19T23:30:45Z", + "url": "/v2/jobs/4369e78e-7c95-4822-af0f-431f70ca38d2" + }, + "entity": { + "guid": "@guid", + "status": "finished" + } +} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-space.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-space.json new file mode 100644 index 0000000..d60bf98 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-space.json @@ -0,0 +1,27 @@ +{ + "metadata": { + "guid": "@space-guid", + "url": "/v2/spaces/@space-guid", + "created_at": "2018-07-19T20:34:16Z", + "updated_at": "2018-07-19T20:34:16Z" + }, + "entity": { + "name": "development", + "organization_guid": "@org-guid", + "space_quota_definition_guid": null, + "isolation_segment_guid": null, + "allow_ssh": true, + "organization_url": "/v2/organizations/@org-guid", + "developers_url": "/v2/spaces/@space-guid/developers", + "managers_url": "/v2/spaces/@space-guid/managers", + "auditors_url": "/v2/spaces/@space-guid/auditors", + "apps_url": "/v2/spaces/@space-guid/apps", + "routes_url": "/v2/spaces/@space-guid/routes", + "domains_url": "/v2/spaces/@space-guid/domains", + "service_instances_url": "/v2/spaces/@space-guid/service_instances", + "app_events_url": "/v2/spaces/@space-guid/app_events", + "events_url": "/v2/spaces/@space-guid/events", + "security_groups_url": "/v2/spaces/@space-guid/security_groups", + "staging_security_groups_url": "/v2/spaces/@space-guid/staging_security_groups" + } +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-stack.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-stack.json new file mode 100644 index 0000000..27f4d0a --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/get-stack.json @@ -0,0 +1,12 @@ +{ + "metadata": { + "guid": "@guid", + "url": "/v2/stacks/@guid", + "created_at": "2018-03-28T22:15:03Z", + "updated_at": "2018-03-28T22:15:03Z" + }, + "entity": { + "name": "cflinuxfs2", + "description": "Cloud Foundry Linux-based filesystem" + } +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-organizations.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-organizations.json new file mode 100644 index 0000000..78a9570 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-organizations.json @@ -0,0 +1,33 @@ +{ + "total_results": 1, + "total_pages": 1, + "prev_url": null, + "next_url": null, + "resources": [ + { + "metadata": { + "guid": "@org-guid", + "url": "/v2/organizations/@org-guid", + "created_at": "2018-07-19T20:33:45Z", + "updated_at": "2018-07-19T20:33:45Z" + }, + "entity": { + "name": "test", + "billing_enabled": false, + "quota_definition_guid": "7885d305-f247-4d9c-b070-9c65536f09f3", + "status": "active", + "default_isolation_segment_guid": null, + "quota_definition_url": "/v2/quota_definitions/7885d305-f247-4d9c-b070-9c65536f09f3", + "spaces_url": "/v2/organizations/@org-guid/spaces", + "domains_url": "/v2/organizations/@org-guid/domains", + "private_domains_url": "/v2/organizations/@org-guid/private_domains", + "users_url": "/v2/organizations/@org-guid/users", + "managers_url": "/v2/organizations/@org-guid/managers", + "billing_managers_url": "/v2/organizations/@org-guid/billing_managers", + "auditors_url": "/v2/organizations/@org-guid/auditors", + "app_events_url": "/v2/organizations/@org-guid/app_events", + "space_quota_definitions_url": "/v2/organizations/@org-guid/space_quota_definitions" + } + } + ] +} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-routes.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-routes.json new file mode 100644 index 0000000..17eb168 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-routes.json @@ -0,0 +1,20 @@ +{ + "metadata": { + "guid": "@guid", + "url": "/v2/routes/@guid", + "created_at": "2018-07-20T18:39:26Z", + "updated_at": "2018-07-20T18:39:26Z" + }, + "entity": { + "host": "@name", + "path": "", + "domain_guid": "@org-guid", + "space_guid": "@space-guid", + "service_instance_guid": null, + "port": null, + "domain_url": "/v2/shared_domains/@org-guid", + "space_url": "/v2/spaces/@space-guid", + "apps_url": "/v2/routes/@guid/apps", + "route_mappings_url": "/v2/routes/@guid/route_mappings" + } +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-service-bindings.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-service-bindings.json new file mode 100644 index 0000000..c8505fd --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-service-bindings.json @@ -0,0 +1,21 @@ +{ + "entity": { + "app_guid": "@app-guid", + "app_url": "/v2/apps/@app-guid", + "binding_options": {}, + "credentials": {}, + "gateway_data": null, + "gateway_name": "", + "name": null, + "service_instance_guid": "@service-instance-guid", + "service_instance_url": "/v2/service_instances/@service-instance-guid", + "syslog_drain_url": "", + "volume_mounts": null + }, + "metadata": { + "created_at": "2018-08-17T22:01:54Z", + "guid": "@guid", + "updated_at": "2018-08-17T22:01:54Z", + "url": "/v2/service_bindings/@guid" + } +} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-shared-domains.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-shared-domains.json new file mode 100644 index 0000000..2541fc0 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-shared-domains.json @@ -0,0 +1,21 @@ +{ + "total_results": 2, + "total_pages": 1, + "prev_url": null, + "next_url": null, + "resources": [ + { + "metadata": { + "guid": "@org-guid", + "url": "/v2/shared_domains/@org-guid", + "created_at": "2018-03-28T22:15:03Z", + "updated_at": "2018-04-13T20:33:21Z" + }, + "entity": { + "name": "localhost", + "router_group_guid": null, + "router_group_type": null + } + } + ] +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-space-apps.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-space-apps.json new file mode 100644 index 0000000..643c944 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-space-apps.json @@ -0,0 +1,63 @@ +{ + "total_results": 1, + "total_pages": 1, + "prev_url": null, + "next_url": null, + "resources": [ + { + "metadata": { + "guid": "@guid", + "url": "/v2/apps/@guid", + "created_at": "2018-07-20T18:39:26Z", + "updated_at": "2018-07-20T18:39:30Z" + }, + "entity": { + "name": "@name", + "production": false, + "space_guid": "@space-guid", + "stack_guid": "@stack-guid", + "buildpack": "https://github.com/cloudfoundry/java-buildpack.git#v4.7.1", + "detected_buildpack": null, + "detected_buildpack_guid": null, + "environment_json": { + "SPRING_APPLICATION_INDEX": "${vcap.application.instance_index}", + "SPRING_CLOUD_APPLICATION_GUID": "${vcap.application.name}:${vcap.application.instance_index}", + "SPRING_APPLICATION_JSON": "{}" + }, + "memory": 1024, + "instances": 1, + "disk_quota": 1024, + "state": "STARTED", + "version": "05833bef-5aea-425f-98e8-7ea3a598fe8e", + "command": null, + "console": false, + "debug": null, + "staging_task_id": "5d9a895b-b428-4f2c-bd5c-6b7f5ec45f98", + "package_state": "PENDING", + "health_check_type": "port", + "health_check_timeout": 120, + "health_check_http_endpoint": "/health", + "staging_failed_reason": null, + "staging_failed_description": null, + "diego": true, + "docker_image": null, + "docker_credentials": { + "username": null, + "password": null + }, + "package_updated_at": "2018-07-20T18:39:27Z", + "detected_start_command": "", + "enable_ssh": true, + "ports": [ + 8080 + ], + "space_url": "/v2/spaces/@space-guid", + "stack_url": "/v2/stacks/@stack-guid", + "routes_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/routes", + "events_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/events", + "service_bindings_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/service_bindings", + "route_mappings_url": "/v2/apps/cae5e4ca-d856-4473-80fd-6f58f9099401/route_mappings" + } + } + ] +} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-space-service_instances.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-space-service_instances.json new file mode 100644 index 0000000..3909b7d --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-space-service_instances.json @@ -0,0 +1,28 @@ +{ + "total_results": 1, + "total_pages": 1, + "prev_url": null, + "next_url": null, + "resources": [ + { + "metadata": { + "guid": "@guid", + "url": "/v2/user_provided_service_instances/@guid", + "created_at": "2018-07-19T22:29:41Z", + "updated_at": "2018-07-19T22:29:41Z" + }, + "entity": { + "name": "@name", + "credentials": {}, + "space_guid": "@space-guid", + "type": "user_provided_service_instance", + "syslog_drain_url": "", + "route_service_url": "", + "space_url": "/v2/spaces/@space-guid", + "service_bindings_url": "/v2/user_provided_service_instances/@guid/service_bindings", + "service_keys_url": "/v2/user_provided_service_instances/@guid/service_keys", + "routes_url": "/v2/user_provided_service_instances/@guid/routes" + } + } + ] +} \ No newline at end of file diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-spaces.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-spaces.json new file mode 100644 index 0000000..e190957 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/list-spaces.json @@ -0,0 +1,35 @@ +{ + "total_results": 1, + "total_pages": 1, + "prev_url": null, + "next_url": null, + "resources": [ + { + "metadata": { + "guid": "@space-guid", + "url": "/v2/spaces/@space-guid", + "created_at": "2018-07-19T20:34:16Z", + "updated_at": "2018-07-19T20:34:16Z" + }, + "entity": { + "name": "development", + "organization_guid": "@org-guid", + "space_quota_definition_guid": null, + "isolation_segment_guid": null, + "allow_ssh": true, + "organization_url": "/v2/organizations/@org-guid", + "developers_url": "/v2/spaces/@space-guid/developers", + "managers_url": "/v2/spaces/@space-guid/managers", + "auditors_url": "/v2/spaces/@space-guid/auditors", + "apps_url": "/v2/spaces/@space-guid/apps", + "routes_url": "/v2/spaces/@space-guid/routes", + "domains_url": "/v2/spaces/@space-guid/domains", + "service_instances_url": "/v2/spaces/@space-guid/service_instances", + "app_events_url": "/v2/spaces/@space-guid/app_events", + "events_url": "/v2/spaces/@space-guid/events", + "security_groups_url": "/v2/spaces/@space-guid/security_groups", + "staging_security_groups_url": "/v2/spaces/@space-guid/staging_security_groups" + } + } + ] +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/put-app-bits.json b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/put-app-bits.json new file mode 100644 index 0000000..5ed7f57 --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/cloudcontroller/put-app-bits.json @@ -0,0 +1,11 @@ +{ + "metadata": { + "guid": "@guid", + "created_at": "2018-07-20T18:40:32Z", + "url": "/v2/jobs/@guid" + }, + "entity": { + "guid": "@guid", + "status": "finished" + } +} diff --git a/spring-cloud-app-broker-sample/src/test/resources/responses/uaa/put-oauth-token.json b/spring-cloud-app-broker-sample/src/test/resources/responses/uaa/put-oauth-token.json new file mode 100644 index 0000000..a84ce0a --- /dev/null +++ b/spring-cloud-app-broker-sample/src/test/resources/responses/uaa/put-oauth-token.json @@ -0,0 +1,9 @@ +{ + "access_token": "accessToken", + "token_type": "bearer", + "refresh_token": "refreshToken", + "expires_in": 7199, + "scope": "network.write cloud_controller.admin routing.router_groups.read cloud_controller.write network.admin doppler.firehose openid routing.router_groups.write scim.read uaa.user cloud_controller.read password.write scim.write", + "authorization_endpoint": "http://localhost", + "jti": "287353917d704131a78967c13623a705" +} \ No newline at end of file