From 89ed40c547ce73b3abdc10451bc86425411abc35 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Wed, 4 May 2016 23:42:12 +0200 Subject: [PATCH] Updated docs for Stub Runner Spring Cloud fixes #264 --- stub-runner/stub-runner-spring-cloud/README.adoc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stub-runner/stub-runner-spring-cloud/README.adoc b/stub-runner/stub-runner-spring-cloud/README.adoc index d874c8f9d6..25e0ca4341 100644 --- a/stub-runner/stub-runner-spring-cloud/README.adoc +++ b/stub-runner/stub-runner-spring-cloud/README.adoc @@ -9,6 +9,17 @@ io.codearte.accurest:stub-runner-spring-cloud and the Stub Runner autoconfiguration should be picked up. +==== Stubbing Service Discovery + +The most important feature of `Stub Runner Spring Cloud` is the fact that it's stubbing + +- `DiscoveryClient` +- `Ribbon` `ServerList` + +that means that regardles of the fact whether you're using Zookeeper, Consul, Eureka or anything else, you don't need that in your tests. +We're starting WireMock instances of your dependencies and we're telling your application whenever you're using `Feign`, load balanced `RestTemplate` +or `DiscoveryClient` directly, to call those stubbed servers instead of calling the real Service Discovery tool. + ==== Additional Configuration You can match the artifactId of the stub with the name of your app by using the `stubrunner.stubs.idsToServiceIds:` map.