Commit Graph

97 Commits

Author SHA1 Message Date
Marcin Grzejszczak
fbe999be55 Merge branch '2.0.x' 2019-02-19 13:53:19 +01:00
Marcin Grzejszczak
f53476974c Fixed wrong method delegation; fixes gh-889 2019-02-19 13:51:42 +01:00
Marcin Grzejszczak
8ce80e6e7f Applied checkstyle rules 2019-02-08 18:20:59 +01:00
buildmaster
6597c6eec2 Bumping versions to 2.1.1.BUILD-SNAPSHOT after release 2019-01-22 20:46:19 +00:00
buildmaster
1314163825 Going back to snapshots 2019-01-22 20:46:18 +00:00
buildmaster
cd239d8c39 Update SNAPSHOT to 2.1.0.RELEASE 2019-01-22 20:39:11 +00:00
Olga Maciaszek-Sharma
6c3caddb7b Add xml support (#855)
* Start working on generating stub requests from Xml.

* Start implementing matching by xpath.

* Handle xml request body matchers.

* Merge branch 'master' into add-xml-support

* Implement analysing xmls and converting nodes to matchers.

* Handle attributes in xml analysis and generate stubs with xml body matchers.

* Make XmlToXPathsConverter statically compiled.

* Start extracting json test generation logic out of the MethodBodyBuilder.

* Fix extracted JsonBodyVerificationBuilder. Fix processing attributes
from xml while generating stubs. Fix and adjust tests to recent changes.

* Merge branch 'master' into add-xml-support

# Conflicts:
#	spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/builder/MethodBodyBuilder.groovy
#	spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/converter/ContractsToYaml.groovy
#	spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/dsl/wiremock/WireMockRequestStubStrategy.groovy
#	spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/util/JsonToJsonPathsConverter.groovy
#	spring-cloud-contract-verifier/src/test/groovy/org/springframework/cloud/contract/verifier/converter/YamlContractConverterSpec.groovy

* Implement test generation for XML body matchers. Start implementing handling XML lists in assertions.

* Fix generating list element assertions and regex body matcher assertions.
Move XML-assert lib content to project sources. Add tests.

* Fix recognising XML content from String body. Minor refactoring.

* Adjust yaml contracts to new xml handling.

* Add tests for handling XML with yaml contracts. Handle incorrect request
matchers processing.

* Minor refactoring.

* Add docs.

* Fix docs.

* Fixes after code review.

* Switch to apache commons logger in `XmlAsserter`.
2019-01-18 20:16:19 +01:00
Marcin Grzejszczak
e12b0b74b6 Migrated the destination for Pact to meta-data 2019-01-08 15:08:51 +01:00
Stephan
70adb02ec9 Workaround for missing message destination in message-pacts: Description field is used. 2019-01-08 14:59:52 +01:00
Marcin Grzejszczak
120820ff9c Warn message if scm not matched 2019-01-02 19:00:40 +01:00
Marcin Grzejszczak
56fbc11f62 Allows passing of regex type (#832)
without this change if one does $(regex("[0-9]")) we have no knowledge of whether the result should be text or a number. What we do ATM is we always generate a String
with this change once can pass the type of regular expression and we will generate the concrete value of that given type

fixes gh-768
2018-12-28 16:29:32 +01:00
buildmaster
e6640350bc Going back to snapshots 2018-12-20 21:43:00 +00:00
buildmaster
f47d0d3406 Update SNAPSHOT to 2.1.0.RC3 2018-12-20 21:37:41 +00:00
buildmaster
ba02983ff6 Going back to snapshots 2018-12-11 22:34:06 +00:00
buildmaster
eae5866fba Update SNAPSHOT to 2.1.0.RC2 2018-12-11 22:28:39 +00:00
buildmaster
cb401b9cc2 Going back to snapshots 2018-12-11 19:03:21 +00:00
buildmaster
ca9bd89614 Update SNAPSHOT to 2.1.0.RC1 2018-12-11 18:57:39 +00:00
Olga Maciaszek-Sharma
9bafbf66c8 Code cleanup. 2018-11-19 11:37:33 +01:00
Marcin Grzejszczak
a0aaee7578 Converted the storer's interface to byte[] 2018-11-12 22:23:14 +01:00
Marcin Grzejszczak
6210c42162 Add an option to dump contracts into a common representation
Allow an option to dump contracts as files for the given ContractConverter. In other words, if you have contracts written in e,g, groovy and yml, by providing a FQN of org.springframework.cloud.contract.verifier.converter.YamlContractConverter, you will be able to dump all files in a folder in a yml format.

fixes gh-793
2018-11-10 23:53:18 +01:00
Marcin Grzejszczak
3109d5b610 Groups pacts by name and parses to get consumer and provider
fixes gh-792
2018-11-10 21:25:04 +01:00
buildmaster
15344a159c Bumping versions to 2.0.3.BUILD-SNAPSHOT after release 2018-10-23 19:56:38 +00:00
buildmaster
55be026c4a Going back to snapshots 2018-10-23 19:56:36 +00:00
buildmaster
02d5a01025 Update SNAPSHOT to 2.0.2.RELEASE 2018-10-23 19:42:37 +00:00
Marcin Grzejszczak
107ed195f1 Bumped to work with jdk11 2018-10-05 18:27:18 +02:00
buildmaster
1d275c346a Going back to snapshots 2018-09-21 23:48:07 +00:00
buildmaster
19fca03627 Update SNAPSHOT to Greenwich.M1 2018-09-21 23:41:27 +00:00
Marcin Grzejszczak
cac0ce3e27 Removed the web starter 2018-08-29 15:06:15 +02:00
Marcin Grzejszczak
9ef24e7240 Polish 2018-08-29 14:25:08 +02:00
Marcin Grzejszczak
096790e04d Upgraded to Greenwhich 2018-08-29 14:04:28 +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
fbee744992 Bump to Greenwich, 2.1.0 2018-07-19 15:00:13 +02: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
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
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
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
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