Commit Graph

1288 Commits

Author SHA1 Message Date
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
8449382110 Added info about the dependencies 2017-02-08 11:06:58 +01:00
Marcin Grzejszczak
5db234dc0f Trying to fix the NPE 2017-02-07 14:09:01 +01:00
Marcin Grzejszczak
7549e14a26 Fixed checkstyle 2017-02-07 13:59:10 +01:00
Marcin Grzejszczak
b8890febfd Fixed NPE due to missing bean 2017-02-07 13:56:17 +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
Marcin Grzejszczak
8621a3258b Added support for ranges of versions
fixes #210
2017-02-03 09:57:56 +01:00
Marcin Grzejszczak
7af3a75ac4 Removed info about missing contracts
fixes #212
2017-02-02 17:25:58 +01:00
Marcin Grzejszczak
e135e618ec Polish 2017-02-02 17:16:36 +01:00
Marcin Grzejszczak
1e9e7a4792 Added foreward compatibility with WireMock stubs
fixes #213
2017-02-02 17:00:17 +01:00
Marcin Grzejszczak
e5b9eb9843 Asserting empty array in the response (#211)
with this change we're using new JSONAssert that allows to check if an array is empty

fixes #203
2017-02-02 13:24:10 +01:00
Marcin Grzejszczak
032a1637ab Fixing broken json outputs 2017-02-01 13:28:47 +01:00
Marcin Grzejszczak
91e2a8f6bf Reusing the org.skyscreamer:jsonassert from boot's BOM
fixes #209
2017-02-01 13:14:22 +01:00
Patrice Conil
1337bb0dea Implement JSON matching with JSON Content-Type (#208)
fixes #116
2017-02-01 10:13:24 +01:00
Marcin Grzejszczak
ed30fc6aa5 Fixed the not setting of response status for rest docs
without this change the status recorded in the test was not properly placed in the stub
with this change it gets fixed

fixes #199
2017-01-26 13:11:37 +01:00
Marcin Grzejszczak
e10a752c45 Polish 2017-01-25 16:51:59 +01:00
Marcin Grzejszczak
d0149353c0 Fixed missing @Ignored import
fixes #200
2017-01-25 16:43:03 +01:00
Koichi Sakata
46f0c99e2e Fixed dirty jar with contracts 2017-01-20 13:48:26 +01:00
Marcin Grzejszczak
762ab4ee3a Stub Runner Boot fails to start due to missing class
we're adding the  dependency to stub runner

fixes #197
2017-01-18 12:24:07 +01:00
Marcin Grzejszczak
4d82abc52d Fixed missing support for execute method in URL
without this change the execute method in URL is quoted and treated as string
with this change we're supporting it OOB

fixes #11
2017-01-17 13:46:26 +01:00
Marcin Grzejszczak
9be467ed51 Fixed the order of tests in parallel build 2017-01-16 14:41:14 +01:00
Marcin Grzejszczak
11c9509a42 Fixed the parallel build
first we need to build the libs and ony then run the integration tests
2017-01-16 13:37:06 +01:00
Marcin Grzejszczak
12aa340e46 Added an option to build the project in parallel
with this change we've added some scripts to run the build in parallel. It makes the build ~ 2 times faster

fixes #190
2017-01-16 13:05:15 +01:00
Marcin Grzejszczak
8d23d934c9 Bumped copyrights 2017-01-16 12:40:34 +01:00
Marcin Grzejszczak
edf30b73d6 Made tests pass in parallel 2017-01-14 22:08:34 +01:00
Marcin Grzejszczak
fca7e1935f Updated docs 2017-01-13 18:10:05 +01:00
Marcin Grzejszczak
8a878b286a Fixed broken indentation
without this change tests are improperly indented

fixes #189
2017-01-13 16:41:37 +01:00
Marcin Grzejszczak
6c6f1d3c68 Fixed the messaging indents
currently in messaging we were not properly indenting part of the body assertion.
with this change we're fixing that issue

fixes #187
2017-01-13 12:52:02 +01:00
Marcin Grzejszczak
bacde76798 Going back to snapshots 2017-01-12 15:58:06 +01:00
Marcin Grzejszczak
bc37cc9a1a Bumping version before release 2017-01-12 15:28:20 +01:00
Marcin Grzejszczak
897bce6b16 Fixed wrong comparison of size 2017-01-12 12:32:06 +01:00
Marcin Grzejszczak
2bd95b6edb Changed byValue to byEquality 2017-01-11 19:13:49 +01:00
Marcin Grzejszczak
76966a985c Added equality check to matchers 2017-01-11 14:16:53 +01:00
Marcin Grzejszczak
9ccc5bc0fd Polish 2017-01-10 18:45:42 +01:00
Marcin Grzejszczak
27bf2af8fd Stub / Test Matchers (#186)
Without this change we're forcing users to embed their dynamic properties inside the body. For some this is natural and acceptable, but especially for the users coming from the Pact world this sounds bizarre. Also some other people have a problem with remembering who the consumer / producer is etc.

With this change we're introducing the stubMatchers and testMatchers section. Thanks to this one can separate the body from defining the dynamic properties. Especially for Pact users this is more natural. Speaking of which this is a prerequisite for #96

fixes #185
2017-01-10 16:47:10 +01:00
Marcin Grzejszczak
2d0d06b6f6 Added snapshot repos 2017-01-09 10:48:59 +01:00
Marcin Grzejszczak
150f7fdc43 Added isoDate, isoTime, isoDateTime
fixes #183
2017-01-03 18:13:06 +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
7d739cc3bd Updated info about Groovy plugins
fixes #122
2017-01-02 11:20:23 +01:00
Marcin Grzejszczak
4ceaff5b66 Added missing body pattern comparison
without this change the eact contents of the body were mostly ignored
with this change we support all WireMock body matching patterns

fixes #135
2016-12-29 15:38:34 +01:00
Marcin Grzejszczak
a57ac0a5ea Updated the readme 2016-12-29 14:15:02 +01:00
Marcin Grzejszczak
e4d8e1f6e2 Added missing method verification
without this change the only criterion for matching of requests was URL / headers / content. The method check was missing
with this change we verify if the HTTP method matches too

fixes #163
2016-12-29 14:10:13 +01:00
Marcin Grzejszczak
cb803320cd Updated tests for the context path
without this change the explicit mode is broken and context path scenario can't be tested
    with this change you can provide the EXPLICIT mode with which you can set the RestAssured to send real requests. That way you can set up your application to listen on a socket and have the context path setup. The contracts need to include the context path too since in real world you'll send a request to a URL that contains a context path element.

    fixes #179 #117
2016-12-28 19:38:39 +01:00
Marcin Grzejszczak
0fd91976f3 Added excludeBuildFolders property
without this change when we work with the repo with common contracts then in the logs we can see that a lot of unnecessary files are processed. Those files are related to the fact that `target` / `build` folders are created and reside in the path in which we're searching for contracts. Due to this we have duplicates in terms of converting files.
with this change we add the `excludeBuildFolders` property that is by default turned off. If you enable it in the `pom.xml` that is used by the consumers to install stubs locally then the target folder gets ignored.

fixes #167
2016-12-28 12:28:07 +01:00
Marcin Grzejszczak
60648f6203 Updated video in the docs 2016-12-27 19:54:05 +01:00
Marcin Grzejszczak
07bf0cb9c7 Fixed the way in JUnit we address list indices
without this change for some reason we're using .get() to address an entry in the list via a index
with this change we're doing it in the proper JSON path format which is `$[index]`

fixes #85
2016-12-27 14:18:40 +01:00
Marcin Grzejszczak
b7beb322b5 Fixed deserialization of byte array
without this fix we're not assuming that the payload can be an array of bytes
with this fix we're converting an array of bytes into a String

fixes #178
2016-12-27 12:24:34 +01:00
Marcin Grzejszczak
a509124976 Added info about WireMock exclusions to the docs
without this change if someone used the Spring Cloud BOM one could have some dependency related issues coming from exclusions of WireMock dependencies in SPring CLoud COntract
with this change we're informing the user about this

fixes #146
2016-12-23 14:38:46 +01:00
Marcin Grzejszczak
6da0cb25ac Unescaping escaped quotes
without this change we're escapng an already escaped quotes in a regex
with this change we're doing a hack to unescape a double escaped quote

fixes #169
2016-12-23 14:26:29 +01:00
Marcin Grzejszczak
4582a6a3bf Fixed invalid parsing of ids
without this change when someone has provided an empty value of port then a default classifier was set instead of picking the provided one

fixes #176
2016-12-22 19:10:42 +01:00