Commit Graph

2040 Commits

Author SHA1 Message Date
Marcin Grzejszczak
e2b61cd125 Added Stub Runner entry in the readme
fixes gh-530
2018-02-19 15:56:47 +01:00
Marcin Grzejszczak
7a724c88f7 REmoved stub runner boot readme; fixes gh-530 2018-02-19 14:46:05 +01:00
Marcin Grzejszczak
f05aa45704 Fixed a test; fixes gh-542 2018-02-19 10:52:00 +01:00
Axel Hodler
82fb1cdac3 Avoid quoting of floating point numbers 2018-02-19 10:15:51 +01:00
Marcin Grzejszczak
91d686cd52 Explicitly added starter-web for stub runner starter 2018-02-16 21:45:34 +01:00
Marcin Grzejszczak
c8ec61c1c2 Changed the snapshot skip test property 2018-02-16 14:06:33 +01:00
Marcin Grzejszczak
a2d866dd39 Bumped versions 2018-02-16 13:37:11 +01:00
Marcin Grzejszczak
d87e669a23 Adding a mechanism to disable the local vs remote stub location
When fetching stubs / contracts in a CI, shared environment, what might happen is that
both the producer and the consumer reuse the same local Maven repository. Due to this,
the framework, responsible for downloading a stub JAR from remote location,
can't decide which JAR should be picked, local or remote one. That caused
the `"The artifact was found in the local repository but you have explicitly
stated that it should be downloaded from a remote one"` exception
and failed the build.

For such cases we're introducing the property mechanism:

- via `stubrunner.snapshot-check.skip` system property
- via `STUBRUNNER_SNAPSHOT_CHECK_SKIP` environment variable

if either of these values is set to `true`, then the stub downloader will not
verify the origin of the downloaded JAR.

fixes gh-545
2018-02-16 13:35:56 +01:00
Marcin Grzejszczak
5de9959561 Bumped to WireMock 2.15.0; fixes gh-548 2018-02-12 17:09:21 +01:00
Marcin Grzejszczak
215aa4e473 Added poms downloading; fixes gh-547 2018-02-12 15:07:45 +01:00
Marcin Grzejszczak
0fe931b3e8 Allows execute property in multipart; fixes gh-541 2018-02-09 17:10:58 +01:00
buildmaster
a8e3b64fe6 Bumping versions to 1.2.4.BUILD-SNAPSHOT after release 2018-02-09 16:08:54 +00:00
buildmaster
ab660f8944 Going back to snapshots 2018-02-09 16:08:53 +00:00
buildmaster
c510a555b7 Update SNAPSHOT to 1.2.3.RELEASE 2018-02-09 15:54:44 +00:00
Marcin Grzejszczak
8b0240ac6b Fixed invalid field reference in docs; fixes gh-539 2018-02-09 15:13:50 +01:00
Marcin Grzejszczak
3b8a091dfc Fixed asm versions 2018-02-09 15:03:48 +01:00
Marcin Grzejszczak
14c0600f8b Contract converters shouldn't require java 8 2018-02-09 10:04:26 +01:00
Ryan Baxter
1598f97575 using latest spring-cloud-dependencies-parent 2018-02-07 16:34:38 -05:00
Ryan Baxter
2bef31d7a5 using latest spring-cloud-build 2018-02-07 16:33:20 -05:00
Marcin Grzejszczak
83e304008e Bumped jsonassert to 0.4.11
fixes gh-538, gh-537
2018-02-05 14:48:04 +01:00
Dave Syer
3ee5c4c308 Revert "Remove unnecessary placeholder resolution"
This reverts commit 2d9c505715.
2018-01-30 11:16:45 +00:00
Marcin Grzejszczak
af463792ca Updated the docs 2018-01-29 15:19:06 +01:00
Dave Syer
15ac841360 Put jsonPaths into request matchers (not response)
The correct WireMock JSON stubs should be available after this change.
Otherwise the json paths that were applied to the request in the
RESTdocs test were being translated into response matchers in the
contract (which doesn't even do anything in WireMock).
2018-01-29 13:52:11 +00:00
Dave Syer
2d9c505715 Remove unnecessary placeholder resolution 2018-01-29 13:52:08 +00:00
Marcin Grzejszczak
a49630bade Added debug information 2018-01-25 17:57:56 +01:00
Marcin Grzejszczak
01f55db2c6 Bumped WireMock to 2.14; fixes #506 2018-01-25 10:50:32 +01:00
Marcin Grzejszczak
0da705520e Trying to fix Circle build 2018-01-24 18:25:03 +01:00
Marcin Grzejszczak
1808923b43 Fixed docker org name 2018-01-24 17:29:14 +01:00
Marcin Grzejszczak
37d7e8cfd3 Docker images (#527)
with this change we're adding generation of 2 docker images - verifier and stub runner
we also added a project `spring-cloud-contract-stub-runner-boot` which contains a far jar with stub runner boot

fixes gh-526, gh-516
2018-01-24 17:07:22 +01:00
Marcin Grzejszczak
a5bdb32b7c Fixing the build? 2018-01-19 09:33:43 +01:00
Marcin Grzejszczak
ec10ca8bb9 Fixed wrong version 2018-01-19 01:28:01 +01:00
Marcin Grzejszczak
ca51769f98 Using unique port for standalone tests 2018-01-19 01:20:34 +01:00
Marcin Grzejszczak
f486eeb85b Added 1.2.x to whitelist 2018-01-19 00:47:20 +01:00
Marcin Grzejszczak
2fc0c75c44 Bumped parent 2018-01-19 00:42:16 +01:00
Marcin Grzejszczak
b745d9a7e3 YAML contracts (#522)
with this change we allow the users to use YAML to define contracts

fixes gh-300 gh-508
helps with #501
2018-01-19 00:27:15 +01:00
buildmaster
b2428c5f13 Bumping versions to 1.2.3.BUILD-SNAPSHOT after release 2018-01-16 17:20:16 +00:00
buildmaster
f5561d3f9b Going back to snapshots 2018-01-16 17:20:15 +00:00
buildmaster
19deb01269 Update SNAPSHOT to 1.2.2.RELEASE 2018-01-16 17:09:51 +00:00
Marcin Grzejszczak
3c0dcad1d6 Numbers are acceptable in the method name
fixes gh-518
2018-01-16 17:19:47 +01:00
Ryan Baxter
470faf7523 bumping netflix, commons, and build 2018-01-15 19:34:44 -05:00
Tom Hombergs
659545a774 replace invalid characters in generated method names with underscore (#519)
* replace invalid characters in generated method names with underscore

fixes #518
2018-01-12 23:35:03 +01:00
Tom Hombergs
833a7114ab matcher now correctly matches response instead of request 511 (#517) 2018-01-12 22:51:59 +01:00
Marcin Grzejszczak
bea0d4f78d Added pact evaluation of $.body type matcher
fixes #511
2018-01-12 15:24:15 +01:00
Marcin Grzejszczak
709df3e291 Unescaping any json body entries
without this change we're escaping the json body response and then wiremock is escaping it again
with this change we're unescaping the first json body escaping so that wiremock applies it only once

fixes gh-515
2018-01-12 12:56:09 +01:00
Tom Hombergs
6e65f36c31 replaced ".class" with ".getClass()" (#513)
... so that the actual class of the object is returned instead of
potentially an element with key "class" if object is a Map
2018-01-11 10:18:37 +01:00
Marcin Grzejszczak
6ed344e976 Added WireMockConfigurationCustomizer
with this change it's possible to customize the WireMockConfiguration set up by Spring Cloud Contract

fixes gh-502
2017-12-27 13:15:14 +01:00
Marcin Grzejszczak
b3e6159bbb Using the new registration mechanism
without this change we're using Eureka lite to register the apps. However we're not reusing any mechanisms that are bound to registration of the main app. That's why we also loose the OAuth2 instrumentation of Spring Cloud Services.
with this change we're reusing the default mechanism. For Cloud based applications we also register the stubs under a different route so as to support the multiple port binding.

fixes gh-490
2017-12-22 12:23:09 +01:00
Marcin Grzejszczak
3054b3e8a4 Merge branch '1.1.x' into 1.2.x 2017-12-20 17:12:35 +01:00
Marcin Grzejszczak
5ea48987ea Fixed lack of triple quotes in json paths for generated contracts from rest docs
fixes #494
2017-12-20 17:12:01 +01:00
Marcin Grzejszczak
640f8e493e Merge branch '1.1.x' into 1.2.x 2017-12-20 16:34:31 +01:00