From 4dd8f0c515a2c07839952e19ae09cca70832a8d7 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Mon, 13 Nov 2017 10:55:09 +0100 Subject: [PATCH] Polish --- spring-cloud-contract-stub-runner/README.adoc | 4 ++-- .../src/test/resources/application-test.yml | 2 ++ .../src/test/resources/application.yml | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/spring-cloud-contract-stub-runner/README.adoc b/spring-cloud-contract-stub-runner/README.adoc index b712d7b9e3..372d700057 100644 --- a/spring-cloud-contract-stub-runner/README.adoc +++ b/spring-cloud-contract-stub-runner/README.adoc @@ -312,7 +312,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`. @@ -363,7 +363,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 diff --git a/spring-cloud-contract-stub-runner/src/test/resources/application-test.yml b/spring-cloud-contract-stub-runner/src/test/resources/application-test.yml index 9f6948c9e1..1381be8b05 100644 --- a/spring-cloud-contract-stub-runner/src/test/resources/application-test.yml +++ b/spring-cloud-contract-stub-runner/src/test/resources/application-test.yml @@ -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 camel: diff --git a/spring-cloud-contract-stub-runner/src/test/resources/application.yml b/spring-cloud-contract-stub-runner/src/test/resources/application.yml index ccdd6c32f8..f880e5f7ce 100644 --- a/spring-cloud-contract-stub-runner/src/test/resources/application.yml +++ b/spring-cloud-contract-stub-runner/src/test/resources/application.yml @@ -2,8 +2,10 @@ spring.cloud: zookeeper.enabled: false consul.enabled: false eureka.client.enabled: false +stubrunner.camel.enabled: false +# tag::ids[] stubrunner: - camel.enabled: false idsToServiceIds: ivyNotation: someValueInsideYourCode - fraudDetectionServer: someNameThatShouldMapFraudDetectionServer \ No newline at end of file + fraudDetectionServer: someNameThatShouldMapFraudDetectionServer +# end::ids[] \ No newline at end of file