Merge branch 'master' into 2.0.x

This commit is contained in:
Marcin Grzejszczak
2017-11-13 10:55:29 +01:00
3 changed files with 8 additions and 3 deletions

View File

@@ -363,7 +363,7 @@ for the following configuration file:
[source,yml,indent=0]
----
include::src/test/resources/application-test.yml[]
include::src/test/resources/application-test.yml[tags=test]
----
Instead of using the properties you can also use the properties inside the `@AutoConfigureStubRunner`.
@@ -414,7 +414,7 @@ for the following configuration file
[source,yml,indent=0]
----
include::src/test/resources/application.yml[]
include::src/test/resources/application.yml[tags=ids]
----
===== Test profiles and service discovery

View File

@@ -1,9 +1,11 @@
# tag::test[]
stubrunner:
repositoryRoot: classpath:m2repo/repository/
ids:
- org.springframework.cloud.contract.verifier.stubs:loanIssuance
- org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer
- org.springframework.cloud.contract.verifier.stubs:bootService
# end::test[]
cloud:
enabled: false

View File

@@ -2,7 +2,10 @@ spring.cloud:
zookeeper.enabled: false
consul.enabled: false
eureka.client.enabled: false
stubrunner.camel.enabled: false
# tag::ids[]
stubrunner:
idsToServiceIds:
ivyNotation: someValueInsideYourCode
fraudDetectionServer: someNameThatShouldMapFraudDetectionServer
fraudDetectionServer: someNameThatShouldMapFraudDetectionServer
# end::ids[]