Commit Graph

23 Commits

Author SHA1 Message Date
Marcin Grzejszczak
04372d9ee4 Added information about Spring Cloud CLI 2017-08-24 15:44:42 +02:00
Marcin Grzejszczak
1623b56876 Merge branch '1.0.x' 2017-05-04 16:31:42 +02:00
Marcin Grzejszczak
808684fd72 Introduction of "stubs per consumer" approach
There are cases in which 2 consumers of the same endpoint want to have 2 different responses. Without this change we don't support it. We don't support that consumers may overlap with their contracts. The outcome of such overlapping is that the first matching stub will be registered in HTTP server stub and the other will be ignored.
With this change we're allowing such a thing to happen. Each consumer can set the `stubrunner.stubs-per-consumer` flag and the `spring.application.name` or `stubrunner.consumer-name` flag will be taken into consideration. If the consumer's name is present in the path of a stub / contract then its mapping / messaging contract will be reused in tests. If not then it will get ignored

fixes #224
2017-05-04 15:15:10 +02:00
Marcin Grzejszczak
e442dcd47b Updated docs 2017-04-27 17:46:39 +02:00
Marcin Grzejszczak
c9538548fd Adds an option to use StubRunner from classpath (#284)
without this change there's no option to use Stub Runner to pick stubs from classpath
with this change we're adding that option. It's enough for the user not to provide neither the `repositoryRoot` nor `workOffline`. If that's the case then Classpath scanning will take place.

fixes #282
2017-04-27 17:13:15 +02:00
Marcin Grzejszczak
08e6493a57 Merge branch '1.0.x' 2017-04-26 13:44:37 +02:00
Marcin Grzejszczak
a075eda67f Added configuration options for JUnit rule & messaging
without this change not only can't you configure messaging for JUnit rule but also the default option is misleading - it fials to send any messages and returns true
with this change we're allowing configuration options and change the default behaviour to throwing unsupported operation exceptions

fixes #280
2017-04-26 13:30:33 +02:00
Marcin Grzejszczak
5f714f13c1 Merge branch '1.0.x' 2017-03-10 13:04:02 +01:00
Marcin Grzejszczak
7c1eb995ae Added links to samples with stub runner cloud
fixes #241
2017-03-10 13:03:45 +01:00
Marcin Grzejszczak
9c96d3de3d Merge branch '1.0.x' 2017-02-28 13:12:27 +01:00
Dennis Kieselhorst
a568f0d89d use local repository path from maven settings (#236)
without this change the local repository maven setup is completely ignored
with this change whatever you have set up locally will be taken into consideration
2017-02-28 13:07:24 +01:00
Marcin Grzejszczak
78ebacd9c5 Merge branch '1.0.x'
fixes #143
2017-01-02 11:35:11 +01:00
Marcin Grzejszczak
d4f5689dc7 Documented potential issues with blocked ports with Stub Runner
fixes #369
2017-01-02 11:30:27 +01:00
Marcin Grzejszczak
a328130418 WireMock done 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
545874c951 Issues #110 user pass (#157)
can now configure username and password authentication and a proxy for accessing stub repository

Fixes #110
2016-12-05 14:56:08 +01:00
Marcin Grzejszczak
cf2dbc24a6 Adds the env prop for every run server (#158)
without this change you can't reference the port of a server as an env var

fixes #147
2016-12-01 22:49:23 +02:00
Marcin Grzejszczak
788b35aedb Stubbing service discovery out completely
without this change if you have a DiscoveryClient bean it's used for delegation. For tests with Stub Runner actually we don't want to delegate. There is an option however to turn on this delegation

fixes #82
2016-09-23 10:41:02 +02:00
Marcin Grzejszczak
64d6d3ef6c Automatic stub registration (#64)
before this change the support for Stub Runner Boot with Service Discovery was pretty useless since Stub Runner stubbed service discovery. That makes a lot of sense in unit / integration tests but not when you want to do some version of end to end tests. 

With this change you can pass a property to enable automated registration of stubs in Service Discovery.

Technical changes:
* Added Zookeeper registration
* Added Eureka registration
* Added Consul registration
* Added checkstyle plugin - fixed part of exceptions
2016-08-26 16:09:16 +02:00
Marcin Grzejszczak
43082d8ca6 Updated the documentation 2016-08-24 17:57:18 +02:00
Marcin Grzejszczak
5d3e99874f Added options to pass props via @AutoConfigureStubRunner (#61)
* Added options to pass props via @AutoConfigureStubRunner

it's much easier to pass props via the annotation instead of property files. With this change the user can provide the properties inside the test via the annotation. The only thing that has to be passed via props is repositoryRoot (typically it's a very constant property that you set once).

fixes #46
2016-08-24 16:14:10 +02:00
Marcin Grzejszczak
19092baabd Updated docs 2016-07-20 18:58:38 +02:00
Marcin Grzejszczak
f389d59798 Updated docs 2016-07-19 19:22:32 +02:00
Dave Syer
4c900f46fe Remove stub tests (already covered in other tests) 2016-07-19 15:22:20 +01:00