Updated docs for Stub Runner Spring Cloud

fixes #264
This commit is contained in:
Marcin Grzejszczak
2016-05-04 23:42:12 +02:00
parent b4ab8b06bf
commit 89ed40c547

View File

@@ -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.