Commit Graph

823 Commits

Author SHA1 Message Date
Marcin Grzejszczak
1e9e7a4792 Added foreward compatibility with WireMock stubs
fixes #213
2017-02-02 17:00:17 +01:00
Marcin Grzejszczak
79c6a2e72c 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:27:46 +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
87ec2a0f62 Merge branch '1.0.x' 2017-02-01 13:28:54 +01:00
Marcin Grzejszczak
032a1637ab Fixing broken json outputs 2017-02-01 13:28:47 +01:00
Marcin Grzejszczak
e36a6e2b56 Going back to snapshots 2017-01-30 11:47:27 +01:00
Marcin Grzejszczak
dfceed2ce1 Bumping versions before release 2017-01-30 11:41:56 +01:00
Marcin Grzejszczak
c8784dccac Made the tests less brittle 2017-01-26 12:20:01 +01:00
Marcin Grzejszczak
374a9916ed Fixed the broken test 2017-01-25 17:13:11 +01:00
Marcin Grzejszczak
dc670f7f1f Merge branch '1.0.x' 2017-01-25 16:53:17 +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
Marcin Grzejszczak
68d36841ee Merge branch '1.0.x' 2017-01-17 13:46:43 +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
f59107fd62 Merge branch '1.0.x' 2017-01-16 13:45:59 +01:00
Marcin Grzejszczak
8d23d934c9 Bumped copyrights 2017-01-16 12:40:34 +01:00
Marcin Grzejszczak
22a5e44471 Pact Contract (#188)
with this change we're providing support for Pact based contracts. No longer do you have to set up your contracts using the Groovy DSL. In the same way as with the DSL you can use the Pact contracts to generate tests and the stubs on the producer side.

fixes #96
2017-01-13 18:06:32 +01:00
Marcin Grzejszczak
da6046f342 Fixed the test 2017-01-13 16:47:49 +01:00
Marcin Grzejszczak
3d1da49eba Merge branch '1.0.x'
fixes #189
2017-01-13 16:41:44 +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
7ed97e1423 Merge branch '1.0.x' 2017-01-13 12:53:31 +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
9644b0b790 Merge branch '1.0.x' 2017-01-12 13:25:59 +01:00
Marcin Grzejszczak
897bce6b16 Fixed wrong comparison of size 2017-01-12 12:32:06 +01:00
Marcin Grzejszczak
6ee7f0cf0d Merge branch '1.0.x' 2017-01-11 19:13:59 +01:00
Marcin Grzejszczak
2bd95b6edb Changed byValue to byEquality 2017-01-11 19:13:49 +01:00
Marcin Grzejszczak
f605237136 Merge branch '1.0.x' 2017-01-11 14:32:54 +01:00
Marcin Grzejszczak
76966a985c Added equality check to matchers 2017-01-11 14:16:53 +01:00
Marcin Grzejszczak
9543434ef7 Merge branch '1.0.x'
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 17:21:38 +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
b404369341 Added isoDate, isoTime, isoDateTime
fixes #183
2017-01-03 18:14:10 +01:00
Marcin Grzejszczak
150f7fdc43 Added isoDate, isoTime, isoDateTime
fixes #183
2017-01-03 18:13:06 +01:00
Marcin Grzejszczak
fef078d2eb Bumped up boot version in samples 2016-12-28 19:57:07 +01:00
Marcin Grzejszczak
fb134a473d Merge branch '1.0.x'
fixes #179 #117
2016-12-28 19:40:42 +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
2ecb426814 Merge branch '1.0.x'
fixes #167
2016-12-28 12:52:15 +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
492fc93511 Merge branch '1.0.x'
fixes #85
2016-12-27 14:18:53 +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
eda0e1d061 Merge branch '1.0.x'
fixes #178
2016-12-27 12:26:13 +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
c334733993 Merge branch '1.0.x'
fixes #169
2016-12-23 14:31:15 +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
c1b2fd4432 Merge branch '1.0.x' 2016-12-22 18:50:58 +01:00
Marcin Grzejszczak
1fe79521ac Response body with text content type header still being verified using json matchers
- fixed the way that text/plain is dealt with
 - added compilation checks for Groovy / Java
 - added compilation check for JaxRs

This is an important commit since it's compiling the generated code to ensure that the tests we're generating
are compilable. It turned out that a couple of regex for Groovy were not properly set. With this change
if we produce code that doesn't compile

fixes #177 #172
2016-12-22 18:34:02 +01:00
Marcin Grzejszczak
9f71e50349 Fixed invalid OptionalProperty conversion
without this change a toString was executed on an optional property due to a missing method that parses those kind of props.
with this change we've added a missing method and also we've made optional property toString return the proper pattern

fixes #173
2016-12-21 16:14:49 +01:00
Marcin Grzejszczak
73d4d652ff Fixed invalid OptionalProperty conversion
without this change a toString was executed on an optional property due to a missing method that parses those kind of props.
with this change we've added a missing method and also we've made optional property toString return the proper pattern

fixes #173
2016-12-21 16:14:30 +01:00
koslowskyj
a646ca5be7 use method queryParam provided by MockMvc instead of appending Url 2016-12-19 16:29:49 +01:00