Commit Graph

3290 Commits

Author SHA1 Message Date
Marcin Grzejszczak
ffcca47722 Merge branch '1.0.x' 2017-03-07 22:59:29 +01:00
Marcin Grzejszczak
b3ee45a48c Made tests less brittle 2017-03-07 22:57:10 +01:00
Marcin Grzejszczak
5d0c63f5c3 Bumped libs 2017-03-07 16:36:34 +01:00
Marcin Grzejszczak
d8b4452c2a Merge branch '1.0.x' 2017-03-03 17:34:47 +01:00
Marcin Grzejszczak
c25e375241 Elaborated more on base class config in step by step part
fixes #239
2017-03-03 17:17:22 +01:00
Marcin Grzejszczak
6247b4ccf5 Updated versions 2017-03-03 12:34:52 +01:00
Marcin Grzejszczak
5a0882d2b5 Merge branch '1.0.x' 2017-03-02 11:22:11 +01:00
Marcin Grzejszczak
dec7c1e428 Trying to limit the memory for circleci 2017-03-02 11:22:04 +01:00
Marcin Grzejszczak
2cae0c620f Merge branch '1.0.x' 2017-03-02 10:36:38 +01:00
Marcin Grzejszczak
59bde4b640 Made headers private 2017-03-02 10:36:30 +01:00
Marcin Grzejszczak
1e82a3b9db Updated docs 2017-03-02 10:16:22 +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
7340f2893d Merge branch '1.0.x' 2017-02-28 14:27:30 +01:00
Marcin Grzejszczak
a4007cc3cb Updated Gradle and removed gradle deamon 2017-02-28 14:26:48 +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
79fb8be4c3 Merge branch '1.0.x' 2017-02-27 09:41:16 +01:00
linzhaoming
bf2207a043 Fixed a typo in docs (#234) 2017-02-27 09:40:52 +01:00
Marcin Grzejszczak
255b996ba5 Fixed a typo in docs 2017-02-23 17:52:28 +01:00
Marcin Grzejszczak
10c28a3eea Merge branch '1.0.x' 2017-02-23 17:49:52 +01:00
Marcin Grzejszczak
31f1727bdb Fixed a typo in docs 2017-02-23 17:48:36 +01:00
Marcin Grzejszczak
0048ebd756 Merge branch '1.0.x' 2017-02-23 17:37:40 +01:00
Marcin Grzejszczak
7e19f9fceb Adds option to generate contracts from RestDocs
with this change we're giving an option to not only generate stubs but also generate contracts from the RestDocs test

    fixes #14
2017-02-23 17:37: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
265815db61 Merge branch '1.0.x' 2017-02-23 11:12:16 +01:00
Marcin Grzejszczak
14f18dcdd3 Added information in the docs about execute method and concatation
without this it can be misunderstood that execute() can be used with Strings
with this we're informing the users that the value of the given property (url, header, body) has to be uniquely a execute command

fixes #231
2017-02-23 11:09:27 +01:00
Marcin Grzejszczak
5d72fc2071 Merge branch '1.0.x' 2017-02-22 13:38:26 +01:00
Marcin Grzejszczak
19120f55fc Fixed the way we clone bodies in response
without this change we are not doing a deep copy of a collection thus we're accidentaly removing the original value
with this change we ensure that a deep copy is made

fixes #229
2017-02-22 13:30:59 +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
6d1c9cb89a Merge branch '1.0.x' 2017-02-14 14:28:39 +01:00
Marcin Grzejszczak
266bc8e25e Fixing tests 2017-02-14 14:28:32 +01:00
Marcin Grzejszczak
c78e5ebfd5 Merge branch '1.0.x' 2017-02-14 14:28:13 +01:00
Marcin Grzejszczak
99d393b8e3 Fixed the way we work with body that is just a number
fixes #226
2017-02-14 14:04:39 +01:00
Marcin Grzejszczak
6b561eb3b0 Merge branch '1.0.x' 2017-02-13 17:33:57 +01:00
Marcin Grzejszczak
902934f9e3 Fixed the order of tasks
without this change generate contract tests task wasn't forced to be before any test compilation tasks
with this change that's fixed

fixes #223
2017-02-13 17:32:47 +01:00
Marcin Grzejszczak
bb1cf960c8 Merge branch '1.0.x' 2017-02-10 15:54:17 +01:00
Marcin Grzejszczak
047addfe84 Fixed the missing setup of path inclusion in generateContractTests task
without this change the Gradle plugin works only by chance since the stub creation task is setting the proper paths. If you execute the task manually it will fail

fixes #222
2017-02-10 15:51:04 +01:00
Marcin Grzejszczak
3351bb3751 Ignored a test due to Netflix Retry issue 2017-02-10 14:13:54 +01:00
Marcin Grzejszczak
270907fbd9 Fixed broken tests 2017-02-10 13:42:47 +01:00
Marcin Grzejszczak
a1eb124e0c Updated docs 2017-02-10 13:40:49 +01:00
Marcin Grzejszczak
47102d722b Added the byCommand matcher
with this change the users can pass their own custom methods for the given matcher

hopefully fixes #217
2017-02-10 13:30:09 +01:00
Marcin Grzejszczak
0de8b383ae Merge branch '1.0.x' 2017-02-09 16:55:05 +01:00
Marcin Grzejszczak
576330652f Added support for .. in the path
when one provides .. in the path it's actually a collection. So if regex is there now we support it. If it's size check - exception will be thrown

fixes #217
2017-02-09 16:36:37 +01:00
Marcin Grzejszczak
8b91361bc1 Added flattened size assertion and refactored collection assertions
with this change we no longer call the integer assertions on the size. We have our own custom size assertions.
Also we can do a flattened size assertion. If in the jsonpath there is [*] we can finally check the whole size and assert it properly

related to #217
2017-02-09 16:13:28 +01:00
Marcin Grzejszczak
a2c48dd1ba Revert "Disabling support for size checks when path contains [*]"
This reverts commit dc1c230b3d.
2017-02-09 15:08:43 +01:00
Marcin Grzejszczak
0a3e5a979c Merge branch '1.0.x' 2017-02-09 15:08:25 +01:00