Commit Graph

155 Commits

Author SHA1 Message Date
buildmaster
ca4abc62e8 Bumping versions to 2.2.3.BUILD-SNAPSHOT after release 2020-03-04 20:55:26 +00:00
buildmaster
9c1feef77c Going back to snapshots 2020-03-04 20:55:25 +00:00
buildmaster
c510829c55 Update SNAPSHOT to 2.2.2.RELEASE 2020-03-04 20:39:33 +00:00
buildmaster
d451d5fd8e Bumping versions to 2.2.2.BUILD-SNAPSHOT after release 2019-12-20 14:31:45 +00:00
buildmaster
a4d6a67f0b Going back to snapshots 2019-12-20 14:31:45 +00:00
buildmaster
c97e6e82d0 Update SNAPSHOT to 2.2.1.RELEASE 2019-12-20 14:17:56 +00:00
Spencer Gibb
4d1f32c80b Updates for Horsham.SR1 2019-12-19 16:53:14 -05:00
Marcin Grzejszczak
d1daa08e78 Added support for the new spring-cloud-stream test binder mechanism
fixes gh-1278
2019-12-17 12:17:19 +01:00
buildmaster
3fb03b2b80 Bumping versions to 2.2.1.BUILD-SNAPSHOT after release 2019-11-26 12:08:31 +00:00
buildmaster
330cfa42ed Going back to snapshots 2019-11-26 12:08:31 +00:00
buildmaster
00d9e52c47 Update SNAPSHOT to 2.2.0.RELEASE 2019-11-26 11:58:40 +00:00
buildmaster
50a1da1058 Going back to snapshots 2019-11-10 00:44:33 +00:00
buildmaster
a2d343d542 Update SNAPSHOT to 2.2.0.RC2 2019-11-10 00:37:32 +00:00
buildmaster
b3228306ba Going back to snapshots 2019-10-24 21:38:41 +00:00
buildmaster
bc042bd0e3 Update SNAPSHOT to 2.2.0.RC1 2019-10-24 21:30:13 +00:00
buildmaster
2e3b77c3db Going back to snapshots 2019-10-03 20:48:30 +00:00
buildmaster
90c2d88b81 Update SNAPSHOT to 2.2.0.M3 2019-10-03 20:40:02 +00:00
Marcin Grzejszczak
25ada9ea0a Bumped WireMock to 2.25.0
fixes gh-1230
fixes gh-1231
2019-10-01 14:39:43 +02:00
Marcin Grzejszczak
b59398878f Bumped Maven to 3.6.2
migrated aether to maven-provider

fixes gh-1218
2019-09-19 17:03:07 +02:00
Marcin Grzejszczak
4d45bdf31d Added support for Spring Kafka
fixes gh-877
2019-09-16 22:39:36 +02:00
Marcin Grzejszczak
c7b4f0125b Added integration for JMS
fixes gh-1141
2019-09-09 14:22:02 +02:00
Marcin Grzejszczak
395656bbc2 Bumped commons-beanutils; fixes gh-1178 2019-08-30 09:47:43 +02:00
buildmaster
6b5d4860b9 Going back to snapshots 2019-08-14 16:21:05 +00:00
buildmaster
16902f4338 Update SNAPSHOT to 2.2.0.M2 2019-08-14 16:07:47 +00:00
Marcin Grzejszczak
706044bfe5 Added support for writing contracts in Java
fixes gh-1161
2019-08-12 13:40:58 +02:00
janeisklar
c55031e094 Add TestNG support for spring-cloud-contract-verifier (#1101) (#1135)
fixes #1101
2019-07-12 12:17:12 +02:00
buildmaster
1d56bdd1d7 Going back to snapshots 2019-07-03 20:38:29 +00:00
buildmaster
880c7bdb54 Update SNAPSHOT to 2.2.0.M1 2019-07-03 20:31:51 +00:00
Marcin Grzejszczak
972a50265f Refactored class and method generation (#1116)
following two event storming sessions with @pilloPl and @OlgaMaciaszek and the Spring Cloud Contract community we've decided to refactor the core modules of Spring Cloud Contract Verifier.

The main idea is that the current `JavaTestGenerator`'s implementation no longer uses complex logic to generate classes and methods.

We've introduced abstractions such as:

-    class body builder (to build classes)
-    groovy and java class metadata
-    imports (for various frameworks)
-    default setup for json, xml, restassured, jaxrs
-    class annotations for spock, junit and junit5
-    field insertion e.g. for messaging
2019-06-27 23:01:37 +02:00
Marcin Grzejszczak
809c925266 Merge branch '2.1.x' 2019-04-19 19:19:53 +04:00
Marcin Grzejszczak
88b7871e98 Standardized plugins and setup the JUnit5 to run JUnit4 tests too
fixes gh-1047
2019-04-19 19:19:15 +04:00
Marcin Grzejszczak
d82afd5a24 Bumped WireMock to 2.23.2 jre8
fixes gh-943
2019-04-16 10:25:36 +04:00
Spring Operator
3eca2df6f9 URL Cleanup (#944)
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://foo.bar (UnknownHostException) with 1 occurrences migrated to:
  https://foo.bar ([https](https://foo.bar) result UnknownHostException).
* http://link/to/your/nexus/or/artifactory/or/sth (UnknownHostException) with 1 occurrences migrated to:
  https://link/to/your/nexus/or/artifactory/or/sth ([https](https://link/to/your/nexus/or/artifactory/or/sth) result UnknownHostException).
* http://www.puppycrawl.com/dtds/suppressions_1_1.dtd (404) with 1 occurrences migrated to:
  https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ([https](https://www.puppycrawl.com/dtds/suppressions_1_1.dtd) result 404).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/assembly-1.1.3.xsd with 3 occurrences migrated to:
  https://maven.apache.org/xsd/assembly-1.1.3.xsd ([https](https://maven.apache.org/xsd/assembly-1.1.3.xsd) result 200).
* http://maven.apache.org/xsd/maven-4.0.0.xsd with 82 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.springframework.org/schema/beans/spring-beans.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* http://www.springframework.org/schema/integration/spring-integration.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/integration/spring-integration.xsd ([https](https://www.springframework.org/schema/integration/spring-integration.xsd) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 164 occurrences
* http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 with 6 occurrences
* http://www.springframework.org/schema/beans with 4 occurrences
* http://www.springframework.org/schema/integration with 4 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 87 occurrences
2019-03-27 19:31:29 +01:00
Spring Operator
070c3b0268 URL Cleanup (#944)
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://foo.bar (UnknownHostException) with 1 occurrences migrated to:
  https://foo.bar ([https](https://foo.bar) result UnknownHostException).
* http://link/to/your/nexus/or/artifactory/or/sth (UnknownHostException) with 1 occurrences migrated to:
  https://link/to/your/nexus/or/artifactory/or/sth ([https](https://link/to/your/nexus/or/artifactory/or/sth) result UnknownHostException).
* http://www.puppycrawl.com/dtds/suppressions_1_1.dtd (404) with 1 occurrences migrated to:
  https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ([https](https://www.puppycrawl.com/dtds/suppressions_1_1.dtd) result 404).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/assembly-1.1.3.xsd with 3 occurrences migrated to:
  https://maven.apache.org/xsd/assembly-1.1.3.xsd ([https](https://maven.apache.org/xsd/assembly-1.1.3.xsd) result 200).
* http://maven.apache.org/xsd/maven-4.0.0.xsd with 82 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.springframework.org/schema/beans/spring-beans.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* http://www.springframework.org/schema/integration/spring-integration.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/integration/spring-integration.xsd ([https](https://www.springframework.org/schema/integration/spring-integration.xsd) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 164 occurrences
* http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 with 6 occurrences
* http://www.springframework.org/schema/beans with 4 occurrences
* http://www.springframework.org/schema/integration with 4 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 87 occurrences
2019-03-27 17:58:23 +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
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
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
4ca8091494 Removed cross compilation 2018-12-17 13:31:24 +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