Commit Graph

109 Commits

Author SHA1 Message Date
Axel Hodler
58baf76fac Improve docs on contract priority (#675) 2018-06-30 07:28:09 +02:00
Marcin Grzejszczak
b2ee46de1e Merge branch '1.2.x' 2018-05-11 14:36:31 +02:00
Marcin Grzejszczak
45b566111a Fixed missing concrete value generation from a regex for messaging
fixes gh-650
2018-05-11 14:29:51 +02:00
Tim Ysewyn
3fe82362a8 Return the actual object instead of the String used for matching the pattern (#654) 2018-05-11 01:54:20 +02:00
Marcin Grzejszczak
f186a3e14d Merge branch '1.2.x' 2018-04-19 09:12:20 +02:00
Tim Ysewyn
bfb5495ae7 Added the missing $() convenience method for messaging contracts (#623)
Fixes gh-619

(cherry picked from commit 4cf6e19)
2018-04-19 08:56:06 +02:00
Tim Ysewyn
4cf6e199b9 Added the missing $() convenience method for messaging contracts (#623)
Fixes gh-619
2018-04-18 23:19:00 +02:00
Marcin Grzejszczak
b965c49a7e Added support for multipart with content type, fixes gh-599 2018-04-11 15:37:13 +02:00
Marcin Grzejszczak
34f367e62b Merge branch '1.2.x' 2018-04-11 12:48:22 +02:00
Marcin Grzejszczak
d203fe8dea Added tests, dsl -> yml cookies 2018-04-11 12:04:34 +02:00
Marcin Grzejszczak
a0641790a9 Wiremock stubs with cookies + some tests 2018-04-11 10:05:43 +07:00
Alex Xandra Albert Sim
e7996e846e Update @since version for Cookie(s) class 2018-04-10 08:29:36 +07:00
Alex Xandra Albert Sim
c740f8b3dd Add cookie header check to contract verifier 2018-04-09 15:45:08 +07:00
Tim Ysewyn
de529e222e Support for Pact v3 (#569)
* Upgraded pact-jvm-model to 3.5.13
* Enhanced the conversion of Spring Cloud contracts to Pact contracts using the v3 spec.
Introduces breaking change returning a list of `Pact`s instead of one.
* Enhanced the conversion of Pact contracts using the v3 spec tp Spring Cloud contracts.
* Implemented conversion of Pact v3 messaging to/from Spring Cloud contracts
* Updated code based on comments in the PR
* Added null matcher
* Added missing null matcher conversion from SCC to Pact
* Added number, integer and decimal matchers
* Added support for multiple matchers for the same json path.
Currently only the AND rule logic is supported.
* Added value generator functionality
* Refactored `stubMatchers` and `testMatchers` to support multiple types of "matcher groups", eg. header, path & query
* Refactored e37a8c5d82f96da6e1a698331afc62e6cf747bd6 in favor of a less invasive change using deprecation
* Added header matcher conversion
* Add/updated the ASF license header
* Fixed an issue with the header matchers while updating the documentation
* Updated the documentation
* Made some last minute changes to the `bodyMatchers`: `byNull()` isn't supported by WireMock

Closes #583
Fixes #595
2018-04-02 22:06:51 +02:00
Axel Hodler
663e1929d8 Extend matchers (#598)
* Added anyHttpsUrl DslProperty

* Added anyPositiveInt DslProperty
2018-03-25 13:03:59 +02:00
Marcin Grzejszczak
297ee8e2ea Changed the Groovy equals & hashcode usage to manual one
there's a bug in Groovy with autogenerated hashCode and byte arrays
to fix it we've migrated from the AST to manual hashcode and equals generation

fixes gh-546
2018-03-21 14:03:06 +01:00
Marcin Grzejszczak
0078230492 Merge branch '1.2.x' 2018-03-21 11:35:42 +01:00
Marcin Grzejszczak
4e08f77996 escapes all generated strings by Xeger so that the code is java compatible
related to gh-589

fixes gh-588
2018-03-21 11:35:29 +01:00
Marcin Grzejszczak
f70c1dbfdd Added support for patterns inside GStrings in URL
related to gh-589

fixes gh-588
2018-03-21 10:54:24 +01:00
Marcin Grzejszczak
cd07f6d42b Xeger can cause stackoverflow and doesn't understand \d \w \s
fixes gh-589, fixes gh-590
2018-03-21 10:53:30 +01:00
mfeygelson
4d72a2744e Support pattern properties in messaging contracts (#564)
(cherry picked from commit c4ab647)
2018-03-21 08:29:40 +01:00
Marcin Grzejszczak
e4eaafc697 Added Support Content-Transfer-Encoding in Multipart regexp
fixes gh-339
2018-03-19 15:31:42 +01:00
Marcin Grzejszczak
068206f02a Removed private access 2018-03-16 11:52:18 +01:00
Marcin Grzejszczak
8e4360535c Added HttpStatus delegate in the Groovy DSL Response
with this change there are numerous helper methods that should provide a more descriptive DSL for the response status. Instead of a numerical status you can now call a method e.g. instead of 200 call OK()

fixes gh-575
2018-03-15 10:00:45 +01:00
Axel Hodler
f31e9ba137 Added anyDouble DslProperty (#571) 2018-03-14 21:07:20 +01:00
mfeygelson
c4ab64757f Support pattern properties in messaging contracts (#564) 2018-03-05 10:22:31 +01:00
Marcin Grzejszczak
65ee88aa23 Merge branch '1.2.x' 2018-01-19 01:18:33 +01:00
Marcin Grzejszczak
b745d9a7e3 YAML contracts (#522)
with this change we allow the users to use YAML to define contracts

fixes gh-300 gh-508
helps with #501
2018-01-19 00:27:15 +01:00
Marcin Grzejszczak
80f0e66292 Revert "Revert "Merge branch 'master' into 2.0.x""
This reverts commit 822dd4b732.
2017-12-20 16:37:38 +01:00
Marcin Grzejszczak
822dd4b732 Revert "Merge branch 'master' into 2.0.x"
This reverts commit 63a1981f54, reversing
changes made to 0cca942e86.
2017-12-20 16:31:52 +01:00
Marcin Grzejszczak
1aa422e485 Merge branch '1.2.x' 2017-11-28 11:40:52 +01:00
JohannesDorn
be1c57ffbf Fix #471 2017-11-27 11:45:19 +01:00
Marcin Grzejszczak
a6b767a19b Merge branch 'master' into 2.0.x 2017-09-04 13:29:36 +02:00
Marcin Grzejszczak
db642f8849 Merge branch '1.1.x' 2017-09-04 13:29:29 +02:00
Marcin Grzejszczak
4adde109fd Trying to make surefire work 2017-09-04 13:29:19 +02:00
Marcin Grzejszczak
22599b4ef9 Merge branch 'master' into 2.0.x 2017-09-04 12:49:11 +02:00
Marcin Grzejszczak
28e8df2ad7 Merge branch '1.1.x' 2017-09-04 12:34:52 +02:00
Marcin Grzejszczak
d92dbf09ee Fixed Non empty and non blank regex patterns
also catching ClassNotFoundError and printing it in trace level

fixes #412
2017-09-04 12:16:33 +02:00
Marcin Grzejszczak
94703b0c0f Merge branch 'master' into 2.0.x 2017-09-01 17:22:36 +02:00
Marcin Grzejszczak
5f8fd5058c Added support for fromRequest.path
without this change you can't referrence path of the request in the response
with this change that functionality is added

also Removed lang3 dependency and changed it to commons-text

fixes #388
2017-09-01 17:22:28 +02:00
Marcin Grzejszczak
27a481ce25 Inconsistent regex() usage and invalid client stubs after passed server verification
After a short discussion, we came to the conclusion that it's confusing for RegexPatterns to return String. When defining the consumer/producer pair, you can easily create by mistake 2 string values if you forget the regex(...) and then you will only notice the issues on the consumer side due to invalid regular expression.

So the solution would be to change the current return types to Pattern. The regex(String) method will remain but also we need to add regex(Pattern) to maintain the compatibility of current DSLs. regex(Pattern) will return just the Pattern.

After such a change failing fast will be much easier.

fixes #389
2017-09-01 12:25:35 +02:00
Marcin Grzejszczak
735797cc39 Merge branch 'master' into 2.0.x 2017-07-31 10:09:42 +02:00
Marcin Grzejszczak
7e97c8a690 Merge branch '1.1.x' 2017-07-31 10:09:13 +02:00
Rocks360
1727041400 Support for generic top level domain .online in the email regular expression (#371)
* Refactor email regular expression to support email addresses ending with .online

fixes #367
2017-07-31 10:03:49 +02:00
Marcin Grzejszczak
473a2b9197 Merge branch 'master' into 2.0.x 2017-07-18 17:30:48 +02:00
Marcin Grzejszczak
4de7d38a51 Added support for referencing file contents in the contract (#360)
without this change, large bodies can't be parsed by the compiler
with this change we allow those bodies to be read from files

fixes #357
2017-07-18 16:26:44 +02:00
Marcin Grzejszczak
e28e346f77 Merge branch 'master' into 2.0.x 2017-07-13 12:22:21 +02:00
Marcin Grzejszczak
0f91efffd3 Fixed the way we treat headers and matching strategies
fixes #353
2017-07-13 12:09:27 +02:00
Marcin Grzejszczak
33413084cb Moved the code from groovy to Java o avoid bizarre error 2017-06-22 13:45:29 +02:00
Marcin Grzejszczak
1a462893e2 Fixed missing header setting and messaging test indentation
fixes #323
2017-06-09 13:05:42 +02:00