Commit Graph

561 Commits

Author SHA1 Message Date
Marcin Grzejszczak
73c71241ca Fixed the build 2019-03-18 13:32:12 +01:00
Marcin Grzejszczak
fbea35edf4 Hoxton 2019-03-08 17:07:28 +01:00
Marcin Grzejszczak
4da781b214 HTTP to HTTPS 2019-03-07 13:50:15 +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
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
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
ab452206f9 Should provide an option to remove folders that are not empty in Windows; fixes gh-834 2019-01-18 16:15:31 +01:00
Marcin Grzejszczak
6de903368a Added support for additional configuration of HTTP Server stubs
without this change it's hard to add HTTPs support for the stubs ran by stub runner. It's close to impossible to alter the default configuration of HTTP server stubs at all (e.g. lower the logging level of WireMock stubs etc.)
    with this change we allow to pass a class as a property to stub runner either via annotation, JUnit rule / extension or just system properties. That way the configurer will be applied at runtime for WireMock stubs (implementors of custom HTTP server stubs will need to perform some additional work to allow this)

    fixes gh-742
2019-01-11 13:47:40 +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
e22f5ec76e Fixed cloning of objects 2019-01-03 10:59:02 +01:00
Marcin Grzejszczak
120820ff9c Warn message if scm not matched 2019-01-02 19:00:40 +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
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
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
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
David Suárez
7e1a6941d6 fix stub runner application when is in real stream mode (#805)
* fix stub runner application when is in real stream mode

* fix stub runner application when is in real stream mode. Adding @ConditionalOnClass(TestSupportBinderAutoConfiguration.class)
2018-11-28 15:17:55 +01:00
Olga Maciaszek-Sharma
9bafbf66c8 Code cleanup. 2018-11-19 11:37:33 +01:00
Marcin Grzejszczak
6c65bc550e Merge branch '2.0.x' 2018-11-13 19:07:22 +01:00
Marcin Grzejszczak
2d173bcb95 Removes the contracts & mappings folders for the given version before committing and pushing new stubs; fixes gh-790 2018-11-13 19:07:05 +01:00
Marcin Grzejszczak
62c1886cc0 Merged camel routes into a single one for multiple contracts for the same exchange; fixes gh-791 2018-11-13 18:36:49 +01:00
Marcin Grzejszczak
05ddc5aa5c Polish 2018-11-13 00:06:29 +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
04a292775f Merge branch '2.0.x' 2018-11-08 17:07:05 +01:00
Marcin Grzejszczak
d5c4597193 Merge branch '1.2.x' into 2.0.x 2018-11-08 16:52:18 +01:00
Marcin Grzejszczak
e01af34151 Fixed the issue with round robin of stream / integration flows; fixes gh-787 2018-11-08 16:44:50 +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
1b1d4049d4 Bumped
- cglib to 3.2.9
- commons-text to 1.6
- handlebars to 4.1.2
- jgit to 5.1.3.201810200350-r
- gmaven to 1.6.2
- boot to 2.1.0
- aether to 1.1.0
2018-11-06 17:06:43 +01:00
Marcin Grzejszczak
836a8b9a6a Merge branch '2.0.x' 2018-11-06 16:23:30 +01:00
Marcin Grzejszczak
1d7a86a6a3 Added deleteStubsAfterTests in annotation; fixes gh-779 2018-11-06 16:20: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
Olga Maciaszek-Sharma
64d1372fd6 Set jupiter dependencies as optional. Remove boot plugin dependency from
wiremock standalone sample.
2018-10-18 18:24:26 +02:00
buildmaster
c20ecc91ed Bumping versions to 1.2.7.BUILD-SNAPSHOT after release 2018-10-16 00:27:32 +00:00