Commit Graph

389 Commits

Author SHA1 Message Date
Marcin Grzejszczak
a0bc2eb1c4 Deprecating skipSnapshotCheck and providing fake m2 for Aether
without this change Aether, when having both local and remote JARs, always picks the local one, even though we don't want it to. There seems to be no way to change it via an API. We had a check in Spring Cloud Contract to throw an exception when we wanted a remote JAR but the local one was fetched. You could have changed it by providing a system property or a plugin property called `skipSnapshotCheck` or `contractsSkipSnapshotCheck`

with this change we're deprecating that flag since we're moving this logic to the internals of how we integrate with Aether. If the problem was that there was both the local and the remote JAR, what we could do is get rid of the local JAR. Obviously we don't want to remove it so what we're doing is when someone provides the REMOTE stub mode, we're creating a temporary directory and we're temporarily pointing Aether to that directory as our local m2. Since it's empty, Aether will not assume that we have any stubs stored locally. Thus, we will never have conflicts of remote vs local jars.

fixes gh-643

additional links:
- http://maven.40175.n5.nabble.com/Resolving-an-Artifact-from-Remote-Repository-instead-of-Local-td5875134.html
- https://stackoverflow.com/questions/9123004/maven-is-it-possible-to-override-location-of-local-repository-via-the-use-of-co
2018-08-23 13:30:56 +02:00
Marcin Grzejszczak
983e0e4d0f Merge branch '2.0.x' 2018-08-01 13:05:56 +02:00
buildmaster
5375cf51ff Bumping versions to 2.0.2.BUILD-SNAPSHOT after release 2018-07-31 20:10:10 +00:00
buildmaster
2e92b65169 Going back to snapshots 2018-07-31 20:10:09 +00:00
buildmaster
c9758f5d4c Update SNAPSHOT to 2.0.1.RELEASE 2018-07-31 19:50:29 +00:00
Marcin Grzejszczak
dceb752d85 Fixed conflicts 2018-07-27 09:01:36 +02:00
Olga Maciaszek-Sharma
b48d50edcc Add junit5 support (#690)
* Refactoring: extract class building methods.
* Move imports to import providers.
* Switch to new TestFramework implementation with TestFrameworkDefinition
delegate. Handle ignoring tests correctly in JUnit5.
* Implement handling JUnit5 rules.
* Add tests for JUNIT5.
* Update docs.

fixes gh-489
2018-07-19 15:03:42 +02:00
Marcin Grzejszczak
fbee744992 Bump to Greenwich, 2.1.0 2018-07-19 15:00:13 +02:00
Marcin Grzejszczak
a8447cf6b8 Merge branch '1.2.x' 2018-07-13 11:02:02 -04:00
Marcin Grzejszczak
58ce759ce6 Bumped jsonassert to 0.4.13; fixes gh-689 2018-07-13 10:59:46 -04:00
buildmaster
63418e0400 Bumping versions to 1.2.6.BUILD-SNAPSHOT after release 2018-06-29 20:38:49 +00:00
buildmaster
983b363512 Going back to snapshots 2018-06-29 20:38:47 +00:00
buildmaster
7d9dd84431 Update SNAPSHOT to 1.2.5.RELEASE 2018-06-29 20:22:31 +00:00
buildmaster
3be8122604 Bumping versions to 2.0.1.BUILD-SNAPSHOT after release 2018-06-19 01:35:06 +00:00
buildmaster
8540c6ffdd Going back to snapshots 2018-06-19 01:35:04 +00:00
buildmaster
ffeb8f74eb Update SNAPSHOT to 2.0.0.RELEASE 2018-06-19 01:22:57 +00:00
Ryan Baxter
0e4a92c1e7 Merge remote-tracking branch 'origin/1.2.x' 2018-06-11 11:09:48 -04:00
Ryan Baxter
8e4af644b2 adding spring boot autoconfigure processor 2018-06-11 10:57:13 -04:00
Marcin Grzejszczak
142effe786 Merge branch '1.2.x' 2018-06-08 12:27:19 +02:00
Henry Jonathan
d72524173d Contract for multipart/mixed endpoint backport to 1.2.x (#662)
* apply cherry pick based on b965c49a7e and fix conflict
2018-06-08 12:25:37 +02:00
Marcin Grzejszczak
ca7ce7522c Bumped WireMock to 2.18.0; fixes gh-659 2018-05-29 17:08:39 +02:00
buildmaster
af93d926cb Going back to snapshots 2018-05-25 13:31:27 +00:00
buildmaster
1e14427889 Update SNAPSHOT to 2.0.0.RC2 2018-05-25 13:22:50 +00:00
Olga Maciaszek-Sharma
75c082a9c6 Fix pluginGroups entry info. Fix plugin call examples. Add info about (#656)
necessary directory setup.
2018-05-13 19:14:51 +02:00
Olga Maciaszek-Sharma
57cded7c76 Fix pluginGroups entry info. Fix plugin call examples. Add info about (#656)
necessary directory setup.
2018-05-13 18:05:01 +02:00
onikytchuk
12e6170283 [#584] Added inclusion configuration 'includeFiles' that allow producers to filter common repository structure and define the list of messaging topics that would be processed during the tests autogeneration. 2018-05-10 09:23:13 +03:00
Marcin Grzejszczak
7341b570b8 Added better support for XML in RestDocs; fixes gh-647 2018-05-08 20:38:00 +02:00
Marcin Grzejszczak
4ed8c44e0f Flakey test ignored 2018-05-07 20:52:25 +02:00
Marcin Grzejszczak
b30d53cbe7 Flakey test ignored 2018-05-07 20:41:10 +02:00
Marcin Grzejszczak
54bb355c57 Flakey test ignored 2018-05-07 20:38:13 +02:00
Tim Ysewyn
eb2809765b Credential properties for pact broker (#642)
* Fallback to `contractsRepositoryUsername` and `contractsRepositoryPassword` (maven) or `contractRepository.username` and `contractRepository.password` (gradle) in case the pact broker options for the username and password are not set.

Closes gh-636
2018-05-06 10:14:24 -04:00
Yura Nosenko
1078ae8072 snapshotCheckSkip javadoc enhancement (#634) 2018-05-03 07:32:06 -04:00
buildmaster
7484fc339c Going back to snapshots 2018-04-23 15:16:20 +00:00
buildmaster
7a6037cafe Update SNAPSHOT to 2.0.0.RC1 2018-04-23 15:09:43 +00:00
Marcin Grzejszczak
25b6041036 Updated WireMock to 2.17.0; fixes gh-618 2018-04-17 15:58:57 +02:00
Marcin Grzejszczak
4010144136 Merge branch '1.2.x' 2018-04-12 16:32:15 +02:00
Marcin Grzejszczak
7de5c7c4dd Bumped JSON Assert to 0.4.12, fixes gh-610 2018-04-12 15:48:29 +02:00
Marcin Grzejszczak
73d6032255 Fixed accidental commit 2018-04-11 16:03:49 +02:00
Marcin Grzejszczak
1be323d029 Merge branch '1.2.x' 2018-04-11 16:00:21 +02:00
Marcin Grzejszczak
264757d114 Fixed broken JaxRs cookie test 2018-04-11 16:00:08 +02:00
Marcin Grzejszczak
b965c49a7e Added support for multipart with content type, fixes gh-599 2018-04-11 15:37:13 +02:00
Marcin Grzejszczak
34f367e62b Merge branch '1.2.x' 2018-04-11 12:48:22 +02:00
Marcin Grzejszczak
a0641790a9 Wiremock stubs with cookies + some tests 2018-04-11 10:05:43 +07:00
Marcin Grzejszczak
85576b231f BUmped all boot versions to 2.0.1.RELEASE 2018-04-07 08:55:45 +02:00
Marcin Grzejszczak
43d076f466 Bumped boot to 2.0.1.R 2018-04-06 15:54:10 +02:00
Marcin Grzejszczak
482f000f72 Added a guard to point to a missing type in YAML 2018-04-03 21:25:06 +02:00
Marcin Grzejszczak
bf19d06329 Fixed the tests 2018-04-03 21:10:57 +02:00
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