Commit Graph

1419 Commits

Author SHA1 Message Date
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
Marcin Grzejszczak
dc1c230b3d Disabling support for size checks when path contains [*]
we'll need to flatten the array before checking the size. That logic will end up in our custom assertions.

related to #217
2017-02-09 15:07:31 +01:00
Marcin Grzejszczak
14182adba0 Merge branch '1.0.x' 2017-02-08 17:41:43 +01:00
Marcin Grzejszczak
ab5d47e7a6 Changed the taken port
fixes #221
2017-02-08 17:41:26 +01:00
Marcin Grzejszczak
f586cf298d Changing the default layout of stubs
without this change the stubs are just placed under the contracts|mappings folders. If you have many of these JARs on the classpath then you might have a problem to say which stubs belong to which server.
    with this change we're changing the default location to META-INF/groupid/artifactid/version/contract|mappings . That way you can easily discern stubs

    fixes #54
2017-02-08 14:58:04 +01:00
Marcin Grzejszczak
d75636169f Merge branch '1.0.x' 2017-02-08 14:04:24 +01:00
Marcin Grzejszczak
92349595e5 Fixed unnecessary slash (#218)
without this change the pattern for stubs contains an unnecessary / which corrupts the location search (e.g. /_files is converted to //_files and there is no such path)
with this change we're removing that value

fixes #216
2017-02-08 14:04:07 +01:00
Marcin Grzejszczak
f34039bbfb Added SpringCloudContractAssertions
we're hiding the details related to assertions in our new abstraction over assertj assertions. That way we'll be able to add new methods in an easy way. There will be no need to create annonymous conditions etc.
2017-02-08 14:02:29 +01:00
Marcin Grzejszczak
b94a074e41 Merge branch '1.0.x' 2017-02-08 11:42:12 +01:00
Marcin Grzejszczak
ab7fe13aac Adding an option to validate children nodes in an array (#219)
without this change it's impossible to assert with response matchers all elements of an array
with this change we're using AssertJs conditions in case the pattern contains [*]

fixes #217
2017-02-08 11:41:59 +01:00
Marcin Grzejszczak
0c39063cce Merge branch '1.0.x' 2017-02-08 11:07:10 +01:00
Marcin Grzejszczak
8449382110 Added info about the dependencies 2017-02-08 11:06:58 +01:00
Marcin Grzejszczak
824e00ef34 Removed adding the dependency by the Gradle plugin 2017-02-08 11:05:09 +01:00
Marcin Grzejszczak
f7582d2f14 Fixed the broken Gradle build 2017-02-07 19:03:40 +01:00
Marcin Grzejszczak
bb7f2f1cd5 Merge branch '1.0.x' 2017-02-07 14:09:25 +01:00
Marcin Grzejszczak
5db234dc0f Trying to fix the NPE 2017-02-07 14:09:01 +01:00
Marcin Grzejszczak
d86e205c7d Merge branch '1.0.x' 2017-02-07 13:59:19 +01:00
Marcin Grzejszczak
7549e14a26 Fixed checkstyle 2017-02-07 13:59:10 +01:00
Marcin Grzejszczak
6d078dead4 Merge branch '1.0.x' 2017-02-07 13:56:43 +01:00
Marcin Grzejszczak
b8890febfd Fixed NPE due to missing bean 2017-02-07 13:56:17 +01:00
Marcin Grzejszczak
0c14acc412 Merge branch '1.0.x' 2017-02-03 10:49:57 +01:00
Marcin Grzejszczak
e1816681dd Fixed the condition for min / max assertions to use 0 too
without this change due to Groovy Truth, size 0 is ignored
with this change we're checking for null, thus size 0 is not ignored

fixes #204
2017-02-03 10:49:47 +01:00