Commit Graph

253 Commits

Author SHA1 Message Date
Marcin Grzejszczak
39be0aef0e Merge branch '2.1.x' 2019-03-22 11:42:28 +01:00
Marcin Grzejszczak
55a0ae86c5 Fixed https 2019-03-22 11:41:20 +01:00
Marcin Grzejszczak
fbea35edf4 Hoxton 2019-03-08 17:07:28 +01:00
buildmaster
029312f814 Bumping versions to 2.1.2.BUILD-SNAPSHOT after release 2019-03-05 20:30:55 +00:00
buildmaster
73c0122a79 Going back to snapshots 2019-03-05 20:30:54 +00:00
buildmaster
be3dd56cd8 Update SNAPSHOT to 2.1.1.RELEASE 2019-03-05 20:21:45 +00:00
Marcin Grzejszczak
9c62f3bd82 Merge branch '2.0.x' 2019-02-26 15:03:54 +01:00
Marcin Grzejszczak
6d3877fe8c Allows localhost to be there in the URL pattern; fixes gh-896 2019-02-26 12:17:42 +01:00
buildmaster
0b77c0d704 Bumping versions to 2.0.4.BUILD-SNAPSHOT after release 2019-02-22 20:47:28 +00:00
buildmaster
3db5ceca54 Going back to snapshots 2019-02-22 20:47:27 +00:00
buildmaster
8d5a771683 Update SNAPSHOT to 2.0.3.RELEASE 2019-02-22 20:38:31 +00: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
Marcin Grzejszczak
8ebc749d2f Fixed the way regex entries are generated for message bodies; fixes gh-858 2019-01-22 09:14:08 +01:00
Marcin Grzejszczak
a2d6137340 Fixed the way regex entries are generated for message bodies
fixes gh-858
2019-01-22 09:13:16 +01:00
Marcin Grzejszczak
d41d79b887 Added javadocs 2019-01-20 22:42:36 +01: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
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
Marcin Grzejszczak
59e5f8b1eb Convert Contract Definitions to YAML (#827)
without this change, if you're using some external libraries and you reference them in your DSL, those libraries need to also be used on the consumer side.

with this change, you can set the contractsToYaml property of the plugin, that will convert the contract definitions into YAML, and then generate tests and stubs. We will store the original contract definitions under the originals folder.

fixes #744
2018-12-27 11:14:31 +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
Marcin Grzejszczak
9c7c896115 Assert size of collections on the request side; fixes gh-824 2018-12-20 14:53:38 +01:00
Marcin Grzejszczak
c00949a15c Revert "Added as type for backward compatibility"
This reverts commit 296f9c5091.
2018-12-17 09:24:12 +01:00
Marcin Grzejszczak
296f9c5091 Added as type for backward compatibility 2018-12-17 09:03:02 +01:00
Marcin Grzejszczak
4464800512 Improved reading from file 2018-12-16 23:10:30 +01:00
Marcin Grzejszczak
e68448281f Revert "Fixed invalid multiline json reading"
This reverts commit 923faef7d3.
2018-12-16 22:54:57 +01:00
Marcin Grzejszczak
923faef7d3 Fixed invalid multiline json reading 2018-12-16 22:39:28 +01:00
Marcin Grzejszczak
0058b987ae Adds support for binary payloads (#818)
with this change we're adding support for binary payloads both for HTTP and messaging.

fixes #664
2018-12-15 14:06:17 +01: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
Marcin Grzejszczak
38a70b5b75 Fixed the documentation 2018-12-03 14:34:55 +01:00
Olga Maciaszek-Sharma
9bafbf66c8 Code cleanup. 2018-11-19 11:37:33 +01:00
Marcin Grzejszczak
4d423b8b5d Removed cookies from messaging; fixes gh-759 2018-11-13 19:13:53 +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
51e6c73938 Asserts that contracts are valid; fixes gh-769 2018-10-26 21:08:01 +02: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
fc12375b76 Merge branch '2.0.x' 2018-10-23 20:25:27 +02:00
Marcin Grzejszczak
38afb59076 Fixed conversion of GString to String; fixes gh-762 2018-10-23 20:21:44 +02:00
Marcin Grzejszczak
4e301c7d9a Fixed flakey test 2018-10-08 11:43:01 +02:00
Marcin Grzejszczak
4d6cd416b5 Revert "Maybe now?"
This reverts commit ab44d89
2018-10-05 18:38:21 +02:00
Marcin Grzejszczak
ab44d8935a Maybe now? 2018-10-05 18:35:11 +02:00
Marcin Grzejszczak
3743701515 Revert "Please work"
This reverts commit e9bbf44
2018-10-05 18:33:43 +02:00
Marcin Grzejszczak
e9bbf44856 Please work 2018-10-05 18:31:31 +02:00