Commit Graph

154 Commits

Author SHA1 Message Date
Marcin Grzejszczak
9fe8362c89 Removed the explicit setting of pact-jvm-model 2018-04-02 23:43:35 +02:00
Marcin Grzejszczak
6402e14f3c Added support for Stub Runner and Pact Broker
fixes gh-191
commit 533f1d3d0e8f6dcd37677bfef555fc2ea86bc1b1
Author: Tim Ysewyn <Tim.Ysewyn@me.com>
Date:   Wed Mar 7 15:56:48 2018 +0100

    Upgraded pact-jvm-model to 3.5.13
2018-04-02 22:50:40 +02:00
Tim Ysewyn
de529e222e Support for Pact v3 (#569)
* Upgraded pact-jvm-model to 3.5.13
* Enhanced the conversion of Spring Cloud contracts to Pact contracts using the v3 spec.
Introduces breaking change returning a list of `Pact`s instead of one.
* Enhanced the conversion of Pact contracts using the v3 spec tp Spring Cloud contracts.
* Implemented conversion of Pact v3 messaging to/from Spring Cloud contracts
* Updated code based on comments in the PR
* Added null matcher
* Added missing null matcher conversion from SCC to Pact
* Added number, integer and decimal matchers
* Added support for multiple matchers for the same json path.
Currently only the AND rule logic is supported.
* Added value generator functionality
* Refactored `stubMatchers` and `testMatchers` to support multiple types of "matcher groups", eg. header, path & query
* Refactored e37a8c5d82f96da6e1a698331afc62e6cf747bd6 in favor of a less invasive change using deprecation
* Added header matcher conversion
* Add/updated the ASF license header
* Fixed an issue with the header matchers while updating the documentation
* Updated the documentation
* Made some last minute changes to the `bodyMatchers`: `byNull()` isn't supported by WireMock

Closes #583
Fixes #595
2018-04-02 22:06:51 +02:00
Marcin Grzejszczak
0fe31ce3a5 Git Stub Downloader (#596)
when stubsMode is set to LOCAL or REMOTE, and repositoryRoot starts with git:// we can clone the provided git repository, and search for the folder with stubs for the given artifact. So if the git repo has a folder structure of groupid/artifactid/version (where group id is either dot or slash separated), then we will provide a path to that repository for the stub runner to harvest the stubs

- externalized versions
- added more debugging messages
- added ContractProjectUpdater that updates the project containing contracts from SCM. ATM supports only git
- added ResourceResolver that retrieves the ProtocolResolvers. It does it via spring.factories entries containing StubDownloaderBuilder. SDP extends ProtocolResovler.
added StubRunner.properties map, that will contain any properties that will be later used by any StubDownloader implementations
- added PUBLISH_STUBS_TO_SCM env var for Docker, so that publishStubsToScm task gets called
- updated docs

Breaking:

- StubDownloaderBuilder extends ProtocolResovler. By default the ProtocolResolver methods return null.
- stubRunnerOptions.stubRepositoryRoot is a Resource not a String
- generateWireMockClientStubs Gradle task got removed
- if folder with contracts has a subfolder called contracts, we will pick contracts from the subfolder

fixes #580
2018-03-31 09:35:00 +02:00
buildmaster
b9740e900d Going back to snapshots 2018-03-22 23:54:47 +00:00
buildmaster
501fefd389 Update SNAPSHOT to 2.0.0.M8 2018-03-22 23:52:03 +00:00
buildmaster
9c2d54453e Going back to snapshots 2018-02-27 01:35:53 +00:00
buildmaster
c0f773ecd3 Update SNAPSHOT to 2.0.0.M7 2018-02-27 01:30:18 +00:00
buildmaster
9a1565b99c Going back to snapshots 2018-02-10 01:05:34 +00:00
buildmaster
b77090ee09 Update SNAPSHOT to 2.0.0.M6 2018-02-10 01:00:21 +00:00
Spencer Gibb
69c63d6e0c Update spring-rabbit to 2.0.0.RC2 2018-02-09 19:13:52 -05:00
Marcin Grzejszczak
d80f31b72a Merge branch '1.2.x' 2018-01-25 12:50:49 +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
ade0b65720 Fixed some tests and broken dependencies 2018-01-20 00:28:32 +01:00
Marcin Grzejszczak
ec10ca8bb9 Fixed wrong version 2018-01-19 01:28:01 +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
Ryan Baxter
470faf7523 bumping netflix, commons, and build 2018-01-15 19:34:44 -05:00
Marcin Grzejszczak
80f0e66292 Revert "Revert "Merge branch 'master' into 2.0.x""
This reverts commit 822dd4b732.
2017-12-20 16:37:38 +01:00
Marcin Grzejszczak
822dd4b732 Revert "Merge branch 'master' into 2.0.x"
This reverts commit 63a1981f54, reversing
changes made to 0cca942e86.
2017-12-20 16:31:52 +01:00
buildmaster
2981b54b82 Going back to snapshots 2017-12-02 04:40:23 +00:00
buildmaster
9e5ac9020b Update SNAPSHOT to 2.0.0.M5 2017-12-02 04:37:52 +00:00
buildmaster
5b2cc6f258 Going back to snapshots 2017-11-16 18:20:37 +00:00
buildmaster
f9908cefd2 Update SNAPSHOT to 2.0.0.M4 2017-11-16 18:17:31 +00:00
Spencer Gibb
f09bb22c03 Removes boot BOM import 2017-11-14 13:10:41 -05:00
Marcin Grzejszczak
a708a770b7 Merge branch 'master' into 2.0.x 2017-11-14 18:55:18 +01:00
Marcin Grzejszczak
835707b391 Not forcing boot version 2017-11-14 18:54:21 +01:00
buildmaster
4cdd7462cc Going back to snapshots 2017-10-28 07:25:37 +00:00
buildmaster
02d6c3e185 Update SNAPSHOT to 2.0.0.M3 2017-10-28 07:23:12 +00:00
Marcin Grzejszczak
ffb146a65f Bumped versions 2017-10-24 18:53:52 +02:00
buildmaster
2c78b99f5a Going back to snapshots 2017-10-24 16:48:01 +00:00
buildmaster
cdfddc91d6 Update SNAPSHOT to 1.2.0.RC1 2017-10-24 16:45:05 +00:00
Marcin Grzejszczak
9026e08b16 Bumping boot to snapshots 2017-10-06 14:13:58 +02:00
Marcin Grzejszczak
ddbe2de516 Merge branch 'master' into 2.0.x 2017-09-19 23:23:49 +01:00
Marcin Grzejszczak
d103a7f930 Referencing checkstyle from the sc-build 2017-09-19 23:12:28 +01:00
Marcin Grzejszczak
f4ec52d4ac Removed Camel support (#387)
until https://issues.apache.org/jira/browse/CAMEL-11430 gets fixed

fixes #386
2017-09-05 15:14:31 +02:00
Marcin Grzejszczak
94703b0c0f Merge branch 'master' into 2.0.x 2017-09-01 17:22:36 +02:00
Marcin Grzejszczak
5f8fd5058c Added support for fromRequest.path
without this change you can't referrence path of the request in the response
with this change that functionality is added

also Removed lang3 dependency and changed it to commons-text

fixes #388
2017-09-01 17:22:28 +02:00
Marcin Grzejszczak
0000d408b6 Merge branch 'master' into 2.0.x 2017-08-29 15:40:52 +02:00
Marcin Grzejszczak
5381ef8447 Merge branch '1.1.x' 2017-08-29 15:40:30 +02:00
Marcin Grzejszczak
113d4e2a4d Migrated to new docs 2017-08-29 15:39:55 +02:00
Marcin Grzejszczak
587a0c37a0 New docs; fixes #395 2017-08-29 09:53:47 +02:00
Marcin Grzejszczak
93d66f9f2f Bumped libs' 2017-08-29 09:24:29 +02:00
Marcin Grzejszczak
af1cfc6848 Bumped libs 2017-08-29 09:23:24 +02:00
Marcin Grzejszczak
a2dddff057 Bumped libs 2017-08-29 08:57:07 +02:00
Marcin Grzejszczak
1bdbd046ad Going back to snapshots 2017-08-25 15:12:32 +02:00
Marcin Grzejszczak
1550f9fe0f Update SNAPSHOT to 2.0.0.M2 2017-08-25 15:10:01 +02:00
Marcin Grzejszczak
ccdeda1fe1 Going back to snapshots 2017-08-25 14:58:18 +02:00
Marcin Grzejszczak
9782ec10ea Update SNAPSHOT to 1.2.0.M1 2017-08-25 14:55:31 +02:00