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:bootServiceInstead 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: someNameThatShouldMapFraudDetectionServerIn 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:bootServiceInstead 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: someNameThatShouldMapFraudDetectionServerIn 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