Commit Graph

548 Commits

Author SHA1 Message Date
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
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
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
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
Olga Maciaszek-Sharma
97928c8e6d Add docs. 2018-10-12 22:05:22 +02:00
Marcin Grzejszczak
47afbfcead Merge branch '2.0.x' 2018-09-28 11:01:20 -04:00
Olga Maciaszek-Sharma
1352283a62 Add info about the flow with contracts with producer and stubs in other
repo.
2018-09-28 10:55:34 -04:00
Olga Maciaszek-Sharma
0cb5776fc8 Add info on generating and running Spock contract tests with Maven. 2018-09-11 14:32:43 +02:00
Marcin Grzejszczak
a0bc2eb1c4 Deprecating skipSnapshotCheck and providing fake m2 for Aether
without this change Aether, when having both local and remote JARs, always picks the local one, even though we don't want it to. There seems to be no way to change it via an API. We had a check in Spring Cloud Contract to throw an exception when we wanted a remote JAR but the local one was fetched. You could have changed it by providing a system property or a plugin property called `skipSnapshotCheck` or `contractsSkipSnapshotCheck`

with this change we're deprecating that flag since we're moving this logic to the internals of how we integrate with Aether. If the problem was that there was both the local and the remote JAR, what we could do is get rid of the local JAR. Obviously we don't want to remove it so what we're doing is when someone provides the REMOTE stub mode, we're creating a temporary directory and we're temporarily pointing Aether to that directory as our local m2. Since it's empty, Aether will not assume that we have any stubs stored locally. Thus, we will never have conflicts of remote vs local jars.

fixes gh-643

additional links:
- http://maven.40175.n5.nabble.com/Resolving-an-Artifact-from-Remote-Repository-instead-of-Local-td5875134.html
- https://stackoverflow.com/questions/9123004/maven-is-it-possible-to-override-location-of-local-repository-via-the-use-of-co
2018-08-23 13:30:56 +02:00
Marcin Grzejszczak
9ed08fb31b Updated branches 2018-08-22 16:17:00 +02:00
Marcin Grzejszczak
ae40e48c17 Merge branch '2.0.x' 2018-08-22 16:16:24 +02:00
Marcin Grzejszczak
814dd06cea Fixed broken links; fixes gh-710 2018-08-22 16:16:16 +02:00
Marcin Grzejszczak
f8b142ddea Merge branch '2.0.x' 2018-08-08 18:03:18 +02:00
Marcin Grzejszczak
8bb61176ea Removed dirties context on any tests 2018-08-08 18:00:58 +02:00
Marcin Grzejszczak
740dd97ea4 Added a very brief history of the project; fixes gh-671 2018-08-01 15:11:53 +02:00
Marcin Grzejszczak
983e0e4d0f Merge branch '2.0.x' 2018-08-01 13:05:56 +02:00
Marcin Grzejszczak
e7946c8b08 Polished the docs 2018-07-27 14:14:55 +02:00
Marcin Grzejszczak
dceb752d85 Fixed conflicts 2018-07-27 09:01:36 +02:00
Marcin Grzejszczak
7b710a0fd9 Trying to fix the doc 2018-07-24 21:51:03 +02:00
Olga Maciaszek-Sharma
b48d50edcc Add junit5 support (#690)
* Refactoring: extract class building methods.
* Move imports to import providers.
* Switch to new TestFramework implementation with TestFrameworkDefinition
delegate. Handle ignoring tests correctly in JUnit5.
* Implement handling JUnit5 rules.
* Add tests for JUNIT5.
* Update docs.

fixes gh-489
2018-07-19 15:03:42 +02:00
Marcin Grzejszczak
036e3bf117 Fixed invalid docs 2018-07-19 08:40:21 +02:00
Marcin Grzejszczak
cb5d1a1465 Added documentation on how to set up webflux; fixes gh-688 2018-07-17 12:44:17 +02:00
Marcin Grzejszczak
adcdf30be5 Updated the docs with proper links; fixes gh-672 2018-07-02 14:19:10 +02:00
Marcin Grzejszczak
e67b969762 Removed camel reference 2018-06-18 13:15:46 +02:00
Marcin Grzejszczak
30614360be Updated docs with missing stubs mode env var; gixes gh-666 2018-06-15 11:29:19 +02:00
onikytchuk
544c1d8a42 Fixed docs issue 2018-05-10 11:24:01 +03:00
onikytchuk
12e6170283 [#584] Added inclusion configuration 'includeFiles' that allow producers to filter common repository structure and define the list of messaging topics that would be processed during the tests autogeneration. 2018-05-10 09:23:13 +03:00
Marcin Grzejszczak
b7baea3dee Fixed a typo 2018-05-09 08:03:15 +02:00
Tim Ysewyn
8c5f2f5567 Updated documentation for generating Spring REST Docs snippets (#648)
* Updated documentation with examples how to generate Spring REST Docs snippets from the generated tests.

fixes gh-613
2018-05-09 07:57:13 +02:00
Yura Nosenko
e5d844d4b7 Matchers documentation improvements (#644) 2018-05-08 10:05:12 +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