Commit Graph

492 Commits

Author SHA1 Message Date
buildmaster
be3dd56cd8 Update SNAPSHOT to 2.1.1.RELEASE 2019-03-05 20:21:45 +00:00
Marcin Grzejszczak
05b3ea5519 Added a note on Maven version for going offline; fixes gh-640 2019-03-04 10:34:03 +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
313d5ef586 Fix WebFlux usage section in docs. Remove unused method (#857)
Remove unused method and implementation for processing xml body verification (class is package-
scope, so not backwards incompatible change).
2019-01-21 18:51:35 +01:00
Marcin Grzejszczak
1eed5c606d Merge branch '2.0.x' 2019-01-20 20:33:57 +01:00
Marcin Grzejszczak
fb1e081dda Added a test and docs on how to add all stubs from the classpath; fixes gh-591 2019-01-20 20:33:49 +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
ea65ae3553 Added latest version support for git storage
without this change you always have to pass the concrete version for git based storage
with this change we support passing of a latests version

fixes gh-745
2019-01-10 16:04:32 +01:00
Marcin Grzejszczak
e12b0b74b6 Migrated the destination for Pact to meta-data 2019-01-08 15:08:51 +01:00
Marcin Grzejszczak
d90bf2ccab Polish 2019-01-01 11:58:04 +01:00
Marcin Grzejszczak
6464513878 Allow fetching contract definitions from file system and pushing them to GIT; fixes gh-773 2019-01-01 11:49:59 +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
a57a8e6548 Polish 2018-12-20 14:58:32 +01: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
204c6a97f7 Merge branch '2.0.x' 2018-12-18 13:24:17 +01:00
Marcin Grzejszczak
7b2cce7513 Fixed issues with bound ports 2018-12-18 13:20:39 +01:00
Marcin Grzejszczak
4ca8091494 Removed cross compilation 2018-12-17 13:31:24 +01:00
Marcin Grzejszczak
1973c28550 Merge branch '2.0.x' 2018-12-16 14:08:23 +01:00
Marcin Grzejszczak
51f7ef6f67 web dependency is optional, StubRunner listener conditional
without this change we always include `spring-boot-starter-web` to Stub Runner. With this change the dependency is optional. Thanks to this reactive applications will be able to work fine with contract on the classpath.

without this change we always run Stub Runner test execution listener, even if the test class is not annotated. With this change we run the listener only, if the test class was annotated with `@AutoConfigureStubRunner`.

Also we add information about the `java.net.SocketException: Unexpected end of file from server` exception to the docs and how to override that issue.

Fixes gh-798, gh-809, gh-799
2018-12-16 13:44:00 +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
Marcin Grzejszczak
19c1140110 Fixed readme 2018-12-15 00:51:18 +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
Jarle Hansen
7fdae659df small fix in doc (#808) 2018-12-07 09:55:55 +01:00
Marcin Grzejszczak
38a70b5b75 Fixed the documentation 2018-12-03 14:34:55 +01:00
Marcin Grzejszczak
72f171ed6c targetFramework to testFramework 2018-11-12 11:17:13 +01:00
Marcin Grzejszczak
7123d25f61 Merge branch '2.0.x' 2018-11-08 17:21:34 +01:00
Marcin Grzejszczak
ba2e67275a Merge branch '1.2.x' into 2.0.x 2018-11-08 17:21:26 +01:00
Marcin Grzejszczak
182aa430b5 Added fixedDelayMilliseconds in yaml and docs; fixes gh-788 2018-11-08 17:18:20 +01:00
Stefan Stus
5abf2d7c17 Added support for camel with Boot 2.0; gh-673 (#786)
fixes #673
2018-11-08 15:44:44 +01:00
Marcin Grzejszczak
8c77386816 Deprecated targetFramework in Gradle; fixes gh-725 2018-11-06 17:31:07 +01:00
Ivan Golovko
4ebfb3c537 Improved spring-cloud-wiremock documentation (#780)
Sometimes people want to use methods like `addMockServiceRequestListener`, which are not static. But there is no any notes about  `WireMockServer` in spring-cloud-wiremock documentation. 

I saw how the developers did not know about it and made a mistake. 
They mixed junit4 and junit5 even for new services, because `WireMockRule` inherits from `WireMockServer` and  provides non static methods.

This situation may seem funny, but many can get into it.
2018-11-06 13:51:51 +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
OlgaMaciaszek
53d7827495 Fix readme. 2018-10-22 21:31:31 +02:00
Olga Maciaszek-Sharma
cf21f18938 Webtestclient support (#757)
* Fix incorrect spring cloud dependencies versioning.
* Test fix and minor refactoring.
* Add docs.
* Fixes after code review.

fixes gh-422
2018-10-22 14:34:03 +02:00
Stessy Delcroix
fea5c743ce Update verifier_faq.adoc (#747)
Small hiccup in the FAQ.
2018-10-22 13:41:31 +02:00
Marcin Grzejszczak
bd4783eefd Moving an ignored test to samples
since the releaser ignores the modules that do not get deployed, then it's safe to bring back this test

fixes gh-626
2018-10-18 08:21:17 +02:00
buildmaster
c20ecc91ed Bumping versions to 1.2.7.BUILD-SNAPSHOT after release 2018-10-16 00:27:32 +00:00
buildmaster
697b5ac37f Going back to snapshots 2018-10-16 00:27:30 +00:00
buildmaster
621c99fba8 Update SNAPSHOT to Edgware.SR5 2018-10-16 00:08:01 +00:00