Commit Graph

190 Commits

Author SHA1 Message Date
Marcin Grzejszczak
04372d9ee4 Added information about Spring Cloud CLI 2017-08-24 15:44:42 +02:00
Marcin Grzejszczak
8ba58d3ab8 Ensure that /tmp files get removed upon process termination
fixes #359
2017-08-22 16:16:25 +02:00
Marcin Grzejszczak
b99bf95ff9 Bumping versions to 1.1.4.BUILD-SNAPSHOT after release 2017-08-21 12:33:24 +02:00
Marcin Grzejszczak
237ee85dc3 Going back to snapshots 2017-08-21 12:33:24 +02:00
Marcin Grzejszczak
b81bb2a489 Update SNAPSHOT to 1.1.3.RELEASE 2017-08-21 12:28:10 +02:00
Marcin Grzejszczak
8af5134b28 Fixed javadocs #378 2017-08-18 17:41:36 +02:00
Marcin Grzejszczak
e4af835b8e Going back to snapshots 2017-07-21 14:30:45 +02:00
Marcin Grzejszczak
85f458e34c Update SNAPSHOT to 1.1.2.RELEASE 2017-07-21 14:06:43 +02:00
Marcin Grzejszczak
28abd6fdce Added username and password for Gradle contract downloading
without this change you can't generate tests when working with Gradle that is to download contracts from an external repo

fixes #333
2017-07-13 18:59:20 +02:00
Marcin Grzejszczak
f6d5ee1baa Not using File.separator in ant path pattern
should fix issues for Windows

fixes #349
2017-07-05 12:47:51 +02:00
Marcin Grzejszczak
8c96a21abf Fixed caching of downloaded contracts in Gradle
without this change when using a daemon, for snapshot versions of downloaded contracts allways the same folder is returned
with this change we cache only non snapshot artifacts; also there's a switch you can set to disable caching at all

fixes #343
2017-07-03 12:52:48 +02:00
Marcin Grzejszczak
0fbefbaf24 Trying to make the stub runner logic work with changes in sc-common 2017-07-02 14:05:27 +02:00
Marcin Grzejszczak
49a542e214 Fixed the logging level for #329 2017-06-21 06:57:13 +02:00
Marcin Grzejszczak
97380129a4 Fixed wrong contract pattern scanning
e.g. this worked

com/example/foo/...

this didn't

/contract/com/example/foo/...

fixes #335
2017-06-20 21:46:22 +02:00
Marcin Grzejszczak
0905469866 Shades aether (#326)
That way we do not interfere with whatever Maven brings on its classpath

without this change deployment might fail due to being unauthorized.
with this change we're shading aether and maven in stub runner. Due to this there is no classpath clash any more

fixes #325
2017-06-14 14:30:56 +02:00
Marcin Grzejszczak
cec5d29f1c Less noise from WireMockHttpServerStub; fixes #329 2017-06-14 14:16:26 +02:00
Marcin Grzejszczak
fe299de7c2 Throwing exception when wanted remote repo and got a local m2 instance
without this change even though we want a remote repo to be used for the artifact we return a cached instance
with this change we're throwing an exception if we can't download the artifact and we found one cached in the local repo

fixes #312
2017-06-01 15:48:13 +02:00
Marcin Grzejszczak
e0ea1b27f0 Bumping versions to 1.1.2.BUILD-SNAPSHOT after release 2017-05-22 23:57:24 +02:00
Marcin Grzejszczak
82f68347fa Going back to snapshots 2017-05-22 23:57:23 +02:00
Marcin Grzejszczak
7a10b3bf34 Update SNAPSHOT to 1.1.1.RELEASE 2017-05-22 23:51:18 +02:00
Marcin Grzejszczak
5d4da96544 Added missing code 2017-05-04 16:34:03 +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
36541edefa Merge branch '1.0.x' 2017-04-26 15:00:02 +02:00
Marcin Grzejszczak
8f838a8a28 Not running HTTP server if there are no mappings / contracts
without this change we're forcing the users to turn on web components even they don't use them
with this change if there are no mappings or contracts then we do not start the web server

fixes #279
2017-04-26 14:36:48 +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
2d6abb246b Merge branch '1.0.x' 2017-04-14 10:13:03 +02:00
Marcin Grzejszczak
5903aaa689 Added a printing of exceptions when failing to download a stub
without this change the root reason for exception is not presented
with this change we're printing that reason

fixes #248
2017-04-14 10:11:58 +02:00
Marcin Grzejszczak
ef5020986f Bumping versions to 1.1.1.BUILD-SNAPSHOT after release 2017-04-11 11:26:11 +02:00
Marcin Grzejszczak
fe14d5c7d9 Going back to snapshots 2017-04-11 11:23:13 +02:00
Marcin Grzejszczak
c167df4fd6 Update SNAPSHOT to 1.1.0.RELEASE 2017-04-11 11:08:00 +02:00
Marcin Grzejszczak
a6cd890b50 Going back to snapshots 2017-03-17 10:09:33 +01:00
Marcin Grzejszczak
47dc54cad4 Update SNAPSHOT to 1.1.0.RC1 2017-03-17 10:04:52 +01:00
Marcin Grzejszczak
ef9c567d46 Going back to snapshots 2017-03-10 15:00:53 +01:00
Marcin Grzejszczak
63180de4fe Bumping versions before release 2017-03-10 14:46:47 +01: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
d6f2227f89 Referencing request from response (#238)
The best situation is to provide fixed values but sometimes you need to reference a request in your response. In order to do this you can profit from the fromRequest() method that allows you to reference a bunch of elements from the HTTP request. You can use the following options:

- `fromRequest().url()` - return the request URL
- `fromRequest().query(String key)` - return the first query parameter with a given name
- `fromRequest().query(String key, int index)` - return the nth query parameter with a given name
- `fromRequest().header(String key)` - return the first header with a given name
- `fromRequest().header(String key, int index)` - return the nth header with a given name
- `fromRequest().body()` - return the full request body
- `fromRequest().body(String jsonPath)` - return the element from the request that matches the JSON Path

fixes #237
2017-03-02 10:14:10 +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
764714ccd8 Merge branch '1.0.x' 2017-02-23 11:44:46 +01:00
Marcin Grzejszczak
a6a8c79b75 Added tests for runtime running stubs interpolation 2017-02-23 11:44:32 +01:00
Marcin Grzejszczak
4139052942 Merge branch '1.0.x' 2017-02-15 14:33:54 +01:00
Marcin Grzejszczak
60e35be082 Fixed bad javadoc 2017-02-15 14:33:45 +01:00
Marcin Grzejszczak
317ed548cf Merge branch '1.0.x' 2017-02-15 14:32:54 +01:00
Marcin Grzejszczak
e9771a08cc Fixed bad javadoc 2017-02-15 14:32:20 +01:00
Marcin Grzejszczak
14182adba0 Merge branch '1.0.x' 2017-02-08 17:41:43 +01:00