use of org.springframework.cloud.servicebroker.model.binding.GetServiceInstanceBindingRequest in project spring-cloud-open-service-broker by spring-cloud.
the class ServiceInstanceBindingControllerIntegrationTest method getBindingToRouteSucceeds.
@Test
void getBindingToRouteSucceeds() throws Exception {
setupServiceInstanceBindingService(GetServiceInstanceRouteBindingResponse.builder().build());
client.get().uri(buildGetUrl(PLATFORM_INSTANCE_ID)).header(API_INFO_LOCATION_HEADER, API_INFO_LOCATION).header(ORIGINATING_IDENTITY_HEADER, buildOriginatingIdentityHeader()).accept(MediaType.APPLICATION_JSON).exchange().expectStatus().isOk();
GetServiceInstanceBindingRequest actualRequest = verifyGetBinding();
assertHeaderValuesSet(actualRequest);
}
use of org.springframework.cloud.servicebroker.model.binding.GetServiceInstanceBindingRequest in project spring-cloud-open-service-broker by spring-cloud.
the class ServiceInstanceBindingControllerIntegrationTest method getBindingToAppWithParamsSucceeds.
@Test
void getBindingToAppWithParamsSucceeds() throws Exception {
setupServiceInstanceBindingService(GetServiceInstanceAppBindingResponse.builder().build());
client.get().uri(buildGetUrl(PLATFORM_INSTANCE_ID, "service-definition-id", "plan-id", false)).header(API_INFO_LOCATION_HEADER, API_INFO_LOCATION).header(ORIGINATING_IDENTITY_HEADER, buildOriginatingIdentityHeader()).accept(MediaType.APPLICATION_JSON).exchange().expectStatus().isOk();
GetServiceInstanceBindingRequest actualRequest = verifyGetBinding();
assertHeaderValuesSet(actualRequest);
}
use of org.springframework.cloud.servicebroker.model.binding.GetServiceInstanceBindingRequest in project spring-cloud-open-service-broker by spring-cloud.
the class ServiceInstanceBindingControllerIntegrationTest method getBindingToAppSucceeds.
@Test
void getBindingToAppSucceeds() throws Exception {
setupServiceInstanceBindingService(GetServiceInstanceAppBindingResponse.builder().build());
client.get().uri(buildGetUrl(PLATFORM_INSTANCE_ID)).header(API_INFO_LOCATION_HEADER, API_INFO_LOCATION).header(ORIGINATING_IDENTITY_HEADER, buildOriginatingIdentityHeader()).accept(MediaType.APPLICATION_JSON).exchange().expectStatus().isOk();
GetServiceInstanceBindingRequest actualRequest = verifyGetBinding();
assertHeaderValuesSet(actualRequest);
}
Aggregations