Commit Graph

2798 Commits

Author SHA1 Message Date
Marcin Grzejszczak
50f04284cb Ensures reversed order of body matchers
without this change if in json paths we have .a[0].b[0] and .a[0].b[1] when the first entry is removed, then there is no longer any .a[0].b[1] since it becomes .a[0].b[0].
with this change we're first deleting enties without removing the trailing containers, then we're reversing the order of jsonpaths so that we delete starting from .a[0].b[1] and only then .a[0].b and finally we're removing the containers

fixes gh-1125
2020-01-02 10:23:00 +01:00
Marcin Grzejszczak
e3d5f9bfff When using file(...) we can guess the content type; fixes gh-880 2019-12-31 10:41:06 +01:00
Marcin Grzejszczak
bb85b353ed Fixed broken tests 2019-12-31 09:46:29 +01:00
Marcin Grzejszczak
630c03d02b Fixing the iso format for regex patterns; fixes gh-1296 2019-12-31 09:36:32 +01:00
Marcin Grzejszczak
6bd0e8cc60 Added NPE guard 2019-11-20 14:15:42 +01:00
buildmaster
24b997f765 Bumping versions to 2.1.5.BUILD-SNAPSHOT after release 2019-11-18 16:14:31 +00:00
buildmaster
b41772176c Going back to snapshots 2019-11-18 16:14:30 +00:00
buildmaster
40fc9b011f Update SNAPSHOT to 2.1.4.RELEASE 2019-11-18 16:04:55 +00:00
Marcin Grzejszczak
732b7d401c Added NPE guard when there are no bytes returned 2019-11-18 14:20:00 +01:00
Marcin Grzejszczak
703e0f2b15 Added tests for an example with complex body inside the c() or p()
added a small fix for duplicate when().async()

fixes gh-1263
2019-11-15 14:20:11 +01:00
Marcin Grzejszczak
2f03472659 Usage of fixedTimeoutMillis requires async()
fixes gh-1262
2019-11-15 13:35:17 +01:00
Marcin Grzejszczak
9906508593 Updated Boot 2019-11-15 11:12:09 +01:00
Marcin Grzejszczak
f6f51cdae6 Shading guava, not keeping provided deps
fixes gh-1041
2019-11-15 10:58:03 +01:00
Marcin Grzejszczak
207617d4ce Fixed the error when using optional() and anyOf() together
fixes gh-1215
2019-11-08 14:57:48 +01:00
Marcin Grzejszczak
22d7be7e96 Ensures that regex is asserted also for RegexProperty not only Pattern
fixes gh-1200
2019-11-08 14:31:00 +01:00
Marcin Grzejszczak
7326dec3d1 Fixed wrong wrapping of execute() in JaxRs test generation
fixes gh-1252
2019-11-08 14:12:35 +01:00
Marcin Grzejszczak
cacd9bb938 MAde tests less brittle 2019-11-08 11:00:50 +01:00
Marcin Grzejszczak
1128449c2d Fixed missing L for longs in messaging; fixes gh-1052 2019-11-08 10:48:01 +01:00
Marcin Grzejszczak
746fff410d Supports custom charset when reading body from bytes
fixes gh-1199
2019-11-06 16:09:24 +01:00
Marcin Grzejszczak
ccdc1a9185 Resolves templated test text regardless of whether there is a response body or not
fixes gh-1163
2019-11-06 14:48:28 +01:00
Marcin Grzejszczak
d2fe5f6bee Ensures that non java.lang classes have a fqn class reference
without this change BigDecimal wasn't properly imported in the assertion. Also, even if it would, assertj has a string comparison of the big decimal value
with this change we're providing a fqn class for non java.lang classes and for BigDecimal comparison we're using the String [isEqualTo] method

fixes gh-1139
2019-11-06 14:09:38 +01:00
Marcin Grzejszczak
aca585ed12 Added support for cookies when integrating with Pact
fixes gh-1134
2019-11-06 13:22:34 +01:00
Marcin Grzejszczak
de372ed224 Fixed the issue that a null value wasn't considered an optional property
without this change an optional property was such that had an empty or non empty string. Null wasn't supported
with this change we're adding null back

fixes gh-1257
2019-11-06 12:29:39 +01:00
Marcin Grzejszczak
ddc714b91b Should fix NPE in eclipse 2019-11-05 16:42:46 +01:00
Marcin Grzejszczak
483b877b99 StubRunnerWireMockTestExecutionListener marks context as dirty even when random port used
without this change we weren't marking properly that the stub should run with a random port
with this change we do reflect random port picking

fixes gh-1093
2019-11-05 14:36:48 +01:00
Marcin Grzejszczak
380d2535bd WireMock RestDocs stub() method is a no-op
deprecating the method and going towards document()
fix by @dsyer

fixes gh-1092
2019-11-05 14:03:22 +01:00
Marcin Grzejszczak
4e375b99e1 Don't escape chars when building WireMock JSON response
fixes gh-1038
fixes gh-1064
2019-11-05 13:32:06 +01:00
Marcin Grzejszczak
7bc560b897 Added a test to ensure that no additional array size check takes place for PACT; fixes gh-1043 2019-11-04 12:33:08 +01:00
Marcin Grzejszczak
dfce30d23a Updated JDK for Docker 2019-11-04 12:02:54 +01:00
Marcin Grzejszczak
e2999d9f8b Updates the parsing of a json body containing a regex in the body 2019-11-04 09:20:25 +01:00
Marcin Grzejszczak
cf37bc666a Should not fail when matchers don't have dots
fixes gh-894
2019-10-31 14:58:40 +01:00
Marcin Grzejszczak
3f834e6062 Parses properly the full regex body on the request side
fixes gh-94
2019-10-31 14:24:24 +01:00
Marcin Grzejszczak
0933d9f31c Updated circle setup 2019-10-22 11:29:18 +02:00
Marcin Grzejszczak
b93e4c73a8 Bumped jdk to adopt jdk for docker image 2019-10-21 15:55:03 +02:00
Karol Lipiec
a2845713a1 Added support of query parameters for RestDocs for WireMock stubs (#1237)
* Added support of query parameters for RestDocs for Stubs

fixes #112
2019-10-02 14:53:42 +02:00
Olga Maciaszek-Sharma
9450bb3a73 Fix flattened size counter. Fixes gh-1108. (#1229)
Signed-off-by: Olga Maciaszek-Sharma <olga.maciaszek@gmail.com>
2019-09-28 10:28:35 +02:00
Olga Maciaszek-Sharma
3cb5d8a0f9 Merge remote-tracking branch 'origin/2.1.x' into 2.1.x 2019-09-27 14:51:10 +02:00
Marcin Grzejszczak
3158e6fe86 Makes the BatchStubRunner bean initialized as early as possible
without this change beans that require the property with stub port might have already been initialized before BatchStubRunner was setup
with this change we're initilizing that bean as early as possible

fixes gh-1225
2019-09-26 17:48:51 +02:00
Marcin Grzejszczak
0a67fcbab3 Additional stub resetting, updated wiremock listener conditions
fixes gh-1027
2019-09-26 14:14:34 +02:00
Marcin Grzejszczak
84e259fe13 Updated docs with the new plugins api for Gradle
fixes gh-1217
2019-09-26 12:23:03 +02:00
Olga Maciaszek-Sharma
04c7ab307f Merge remote-tracking branch 'origin/2.1.x' into 2.1.x 2019-09-18 11:39:46 +02:00
Marcin Grzejszczak
876be130ed Added npe guard; fixes gh-1154 2019-09-17 17:17:45 +02:00
Snyk bot
95c134c8d2 fix: pom.xml to reduce vulnerabilities (#1214)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JAVA-COMFASTERXMLJACKSONCORE-174736
- https://snyk.io/vuln/SNYK-JAVA-COMFASTERXMLJACKSONCORE-450207
- https://snyk.io/vuln/SNYK-JAVA-COMFASTERXMLJACKSONCORE-450917
- https://snyk.io/vuln/SNYK-JAVA-COMFASTERXMLJACKSONCORE-455617

Signed-off-by: Olga Maciaszek-Sharma <olga.maciaszek@gmail.com>
# Conflicts:
#	pom.xml
2019-09-16 17:19:08 +02:00
buildmaster
de94a14a9a Bumping versions to 2.1.4.BUILD-SNAPSHOT after release 2019-09-10 18:47:36 +00:00
buildmaster
882cee887d Going back to snapshots 2019-09-10 18:47:35 +00:00
buildmaster
4750b4e60e Update SNAPSHOT to 2.1.3.RELEASE 2019-09-10 18:38:17 +00:00
Marcin Grzejszczak
93c5679949 Fixing the wrong task 2019-09-10 20:26:18 +02:00
Marcin Grzejszczak
d2ff700f18 Parametrizing gradle publishPlugins task in maven 2019-09-10 20:09:01 +02:00
Marcin Grzejszczak
764c13b6bf I love Gradle 2019-09-10 18:59:24 +02:00
Marcin Grzejszczak
0a1b9b9060 I love Gradle 2019-09-10 18:34:56 +02:00