@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user