From 49fc12ff01969acbe926df95f84e5ea7a473642a Mon Sep 17 00:00:00 2001 From: buildmaster Date: Mon, 13 Nov 2017 10:05:21 +0000 Subject: [PATCH] Sync docs from 1.1.x to gh-pages --- ...ulti__spring_cloud_contract_stub_runner.html | 17 ++--------------- 1.1.x/single/spring-cloud-contract.html | 17 ++--------------- 1.1.x/spring-cloud-contract.xml | 17 ++--------------- 3 files changed, 6 insertions(+), 45 deletions(-) diff --git a/1.1.x/multi/multi__spring_cloud_contract_stub_runner.html b/1.1.x/multi/multi__spring_cloud_contract_stub_runner.html index 60b41da9c9..e8ad6c97eb 100644 --- a/1.1.x/multi/multi__spring_cloud_contract_stub_runner.html +++ b/1.1.x/multi/multi__spring_cloud_contract_stub_runner.html @@ -414,15 +414,7 @@ its methods as presented below:

@AutoConfigureStubRunner.
+    - org.springframework.cloud.contract.verifier.stubs:bootService

Instead of using the properties you can also use the properties inside the @AutoConfigureStubRunner. Below you can find an example of achieving the same result by setting values on the annotation.

@AutoConfigureStubRunner(
 		ids = ["org.springframework.cloud.contract.verifier.stubs:loanIssuance",
 		"org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer",
@@ -438,12 +430,7 @@ or DiscoveryClient directly, to call those stubbed
 	and: 'Stubs can be reached via load service discovery'
 		restTemplate.getForObject('http://loanIssuance/name', String) == 'loanIssuance'
 		restTemplate.getForObject('http://someNameThatShouldMapFraudDetectionServer/name', String) == 'fraudDetectionServer'
-}

for the following configuration file

spring.cloud:
-  zookeeper.enabled: false
-  consul.enabled: false
-eureka.client.enabled: false
-stubrunner:
-  camel.enabled: false
+}

for the following configuration file

stubrunner:
   idsToServiceIds:
     ivyNotation: someValueInsideYourCode
     fraudDetectionServer: someNameThatShouldMapFraudDetectionServer

Test profiles and service discovery

In your integration tests you typically don’t want to call neither a discovery service (e.g. Eureka) diff --git a/1.1.x/single/spring-cloud-contract.html b/1.1.x/single/spring-cloud-contract.html index fb192d964c..1e37ea778f 100644 --- a/1.1.x/single/spring-cloud-contract.html +++ b/1.1.x/single/spring-cloud-contract.html @@ -1460,15 +1460,7 @@ its methods as presented below:

@AutoConfigureStubRunner.
+    - org.springframework.cloud.contract.verifier.stubs:bootService

Instead of using the properties you can also use the properties inside the @AutoConfigureStubRunner. Below you can find an example of achieving the same result by setting values on the annotation.

@AutoConfigureStubRunner(
 		ids = ["org.springframework.cloud.contract.verifier.stubs:loanIssuance",
 		"org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer",
@@ -1484,12 +1476,7 @@ or DiscoveryClient directly, to call those stubbed
 	and: 'Stubs can be reached via load service discovery'
 		restTemplate.getForObject('http://loanIssuance/name', String) == 'loanIssuance'
 		restTemplate.getForObject('http://someNameThatShouldMapFraudDetectionServer/name', String) == 'fraudDetectionServer'
-}

for the following configuration file

spring.cloud:
-  zookeeper.enabled: false
-  consul.enabled: false
-eureka.client.enabled: false
-stubrunner:
-  camel.enabled: false
+}

for the following configuration file

stubrunner:
   idsToServiceIds:
     ivyNotation: someValueInsideYourCode
     fraudDetectionServer: someNameThatShouldMapFraudDetectionServer

Test profiles and service discovery

In your integration tests you typically don’t want to call neither a discovery service (e.g. Eureka) diff --git a/1.1.x/spring-cloud-contract.xml b/1.1.x/spring-cloud-contract.xml index c20c38b9ae..27df09690a 100644 --- a/1.1.x/spring-cloud-contract.xml +++ b/1.1.x/spring-cloud-contract.xml @@ -2459,15 +2459,7 @@ class StubRunnerConfigurationSpec extends Specification { ids: - org.springframework.cloud.contract.verifier.stubs:loanIssuance - org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer - - org.springframework.cloud.contract.verifier.stubs:bootService - cloud: - enabled: false - camel: - enabled: false - -spring.cloud: - consul.enabled: false - service-registry.enabled: false + - org.springframework.cloud.contract.verifier.stubs:bootService Instead of using the properties you can also use the properties inside the @AutoConfigureStubRunner. Below you can find an example of achieving the same result by setting values on the annotation. @AutoConfigureStubRunner( @@ -2525,12 +2517,7 @@ or DiscoveryClient directly, to call those stubbed servers in restTemplate.getForObject('http://someNameThatShouldMapFraudDetectionServer/name', String) == 'fraudDetectionServer' } for the following configuration file -spring.cloud: - zookeeper.enabled: false - consul.enabled: false -eureka.client.enabled: false -stubrunner: - camel.enabled: false +stubrunner: idsToServiceIds: ivyNotation: someValueInsideYourCode fraudDetectionServer: someNameThatShouldMapFraudDetectionServer