Commit Graph

44 Commits

Author SHA1 Message Date
Marcin Grzejszczak
88e27ede80 Removed jetbrains imports 2020-11-16 08:19:11 +01:00
Marcin Grzejszczak
4ed8402567 Updated Pact to 4.0.10 2020-11-09 11:21:19 +01:00
Stessy Delcroix
a9c862f9f8 Rewrite spring-cloud-contract-pact module (#1520)
part of gh-1470
2020-09-29 18:41:30 +02:00
buildmaster
ffd6574532 Bumping versions 2020-09-17 00:23:53 +00:00
Marcin Grzejszczak
906c771c6c Bumps versions
Groovy to 2.5.10
Camel to 3.1.0
Pact to 4.0.9
2020-04-06 11:31:20 +02:00
Marcin Grzejszczak
1581abdf75 Merge branch '2.2.x' 2020-02-14 08:23:20 +01:00
Tim Ysewyn
f72cb335b1 Fixed issues with Pact conversion after upgrade (#1323) 2020-02-13 22:44:57 +01:00
Marcin Grzejszczak
9e02b7c902 Updated Copyrights 2020-01-28 20:00:13 +01:00
Marcin Grzejszczak
104acf518e Merge branch '2.1.x' 2019-11-06 13:42:20 +01:00
Marcin Grzejszczak
aca585ed12 Added support for cookies when integrating with Pact
fixes gh-1134
2019-11-06 13:22:34 +01:00
Marcin Grzejszczak
02b1886f40 Merge branch '2.1.x' 2019-11-04 12:33:14 +01:00
Marcin Grzejszczak
7bc560b897 Added a test to ensure that no additional array size check takes place for PACT; fixes gh-1043 2019-11-04 12:33:08 +01:00
Marcin Grzejszczak
945601189b Bumped pact to 3.6.14; fixes gh-1232 2019-10-01 16:25:21 +02:00
Marcin Grzejszczak
796103cb48 Bumped libs
fixes gh-1193
fixes gh-1194
fixes gh-1195
fixes gh-1196
fixes gh-1197
fixes gh-1198
2019-09-04 17:24:47 +02:00
Tim Ysewyn
05f9486852 Merge branch 'master' into feature/kotlin-contract-support 2019-08-07 23:29:55 +02:00
Tim Ysewyn
551d4dde59 Made helper functions static 2019-08-05 20:48:37 +02:00
Marcin Grzejszczak
dbb1af8d98 Generate stubs at runtime (#1152)
* Generate stubs at runtime

without this change the producer side must publish the stubs for the consumer side to use them
with this change the consumer can toggle a switch so that the stubs get generated at runtime. This might of course lead to false positivies but we assume that the users know what they're doing

fixes gh-881
2019-08-05 10:44:35 +02:00
Tim Ysewyn
3e49e7f4ae Formatting 2019-08-02 12:11:13 +02:00
Tim Ysewyn
b07e50bd8d Removed unwanted changed 2019-08-02 12:09:00 +02:00
Tim Ysewyn
9935b24a25 First implementation based on existing tests 2019-08-02 11:13:45 +02:00
Marcin Grzejszczak
6b9e377487 Rewriting to java (#1131)
* Rewritting to java

- rewritten a lot of Spring Cloud Contract Spec module to Java
- extracted all Groovy stuff to a separate package
- will now continue writing extension modules
- spring-cloud-contract-spec will be written purely in java
- spring-cloud-contract-spec-groovy will have Groovy extensions

fixes gh-1130
2019-07-08 14:15:21 +02:00
Marcin Grzejszczak
d739efc50b Bumped pact to 3.6.7; fixes gh-1099 2019-06-28 17:17:32 +02:00
Marcin Grzejszczak
74e65ec724 License 2019-03-22 12:42:00 +01:00
Marcin Grzejszczak
55a0ae86c5 Fixed https 2019-03-22 11:41:20 +01:00
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
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
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
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
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
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