Commit Graph

2083 Commits

Author SHA1 Message Date
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
5dbac1f210 Generated messaging tests could create compilation errors for certain regexes in headers (#622)
* Fixed an issue with the generation of messaging tests where the regex pattern was creating compilation errors

fixes gh-620

(cherry picked from commit f64feaf)
2018-04-19 08:54:27 +02:00
Marcin Grzejszczak
d467341427 Ensured that stub part of the body gets returned form WIreMock response, fixes gh-611 2018-04-12 15:49:18 +02:00
Marcin Grzejszczak
7de5c7c4dd Bumped JSON Assert to 0.4.12, fixes gh-610 2018-04-12 15:48:29 +02:00
Marcin Grzejszczak
264757d114 Fixed broken JaxRs cookie test 2018-04-11 16:00:08 +02:00
Marcin Grzejszczak
6ace68284c Added docs 2018-04-11 12:34:23 +02:00
Marcin Grzejszczak
d203fe8dea Added tests, dsl -> yml cookies 2018-04-11 12:04:34 +02:00
Marcin Grzejszczak
ddbd097b39 Merge branch '1.2.x_cookies' of https://github.com/bertzzie/spring-cloud-contract into bertzzie-1.2.x_cookies 2018-04-11 10:41:28 +02:00
Alex Xandra Albert Sim
2068fdc8ca Added more tests to have better coverage 2018-04-11 14:47:17 +07:00
Alex Xandra Albert Sim
a181c6576f YAML cookie support 2018-04-11 14:47:00 +07:00
Marcin Grzejszczak
a0641790a9 Wiremock stubs with cookies + some tests 2018-04-11 10:05:43 +07:00
Marcin Grzejszczak
f771f00fbb Invalid equality check of messaging headers in input / output scenario
fixes gh-609
2018-04-10 16:47:46 +02: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
bca6c14350 Added compilation test to cookie assertion tests 2018-04-10 08:27:56 +07:00
Alex Xandra Albert Sim
c740f8b3dd Add cookie header check to contract verifier 2018-04-09 15:45:08 +07:00
Marcin Grzejszczak
7652bcff48 Fixed missing support for predefined matchers for messages; fixes #604 2018-04-03 20:58:10 +02:00
Marcin Grzejszczak
8c87ed16bf Added docker modules in deploy profile 2018-04-02 23:27:21 +02:00
Marcin Grzejszczak
625780615c Bump remaining wiremock versions 2018-03-31 18:46:05 +02:00
Marcin Grzejszczak
9aa1eab483 Bumped wiremock to 2.16.0; fixes gh-600 2018-03-31 18:43:39 +02:00
buildmaster
766cd59f64 Bumping versions to 1.2.5.BUILD-SNAPSHOT after release 2018-03-27 00:44:45 +00:00
buildmaster
ce62f7f77a Going back to snapshots 2018-03-27 00:44:43 +00:00
buildmaster
71061a7d7f Update SNAPSHOT to 1.2.4.RELEASE 2018-03-27 00:33:17 +00:00
Marcin Grzejszczak
1e0ea34c91 Parametrized and bumped rest assured; fixes gh-597
(cherry picked from commit f6a8f49)
2018-03-25 13:16:16 +02:00
Marcin Grzejszczak
841a7bdfca Added a test for regular expressions in wiremock stubs; fixes gh-449 2018-03-21 16:03:49 +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
Marcin Grzejszczak
f57cefc68a Ensured that regular expressions are generated properly; fixes gh-587 2018-03-21 09:13:19 +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
67019774e1 Fixed missing conversion of messaging patterns to java
without this change patterns were not escaped the way they should

fixes gh-587
2018-03-20 21:08:24 +01:00
Marcin Grzejszczak
c7250a8d62 Added support for RoutingKey in AMQP stub messages
fixed via @KazuoD suggestion

fixes gh-585
2018-03-20 14:17:05 +01:00
Marcin Grzejszczak
8ad4865fb5 Fixed the docs 2018-03-19 16:33:22 +01:00
Marcin Grzejszczak
51564ab444 Discouraged users from using spring-cloud-contract-wiremock dependency directly
the preferred option is to use `spring-cloud-starter-stub-runner`

fixes gh-348
2018-03-19 16:31:12 +01:00
Marcin Grzejszczak
13902ecf1d Documented custom settings.xml setup; fixes gh-552 2018-03-15 17:13:51 +01:00
Marcin Grzejszczak
8fa57f5832 Added additional tests 2018-03-15 16:43:32 +01:00
Marcin Grzejszczak
08025963a8 Docker images built only in integration mode (to speed up build) 2018-03-15 14:55:45 +01:00
Marcin Grzejszczak
c33ad02550 Added support for Docker and external contracts repo
These environment variables are used when contracts lay in an external repository. To enable
this feature you must set the `EXTERNAL_CONTRACTS_ARTIFACT_ID` environment variable.

- `EXTERNAL_CONTRACTS_GROUP_ID` - group id of the project with contracts. Defaults to `com.example`
- `EXTERNAL_CONTRACTS_ARTIFACT_ID`- artifact id of the project with contracts.
- `EXTERNAL_CONTRACTS_CLASSIFIER`- classifier of the project with contracts. Empty by default
- `EXTERNAL_CONTRACTS_VERSION` - version of the project with contracts. Defaults to `+`, equivalent to picking the latest
- `EXTERNAL_CONTRACTS_REPO_WITH_BINARIES_URL` - URL of your Artifact Manager. Defaults to value of `REPO_WITH_BINARIES_URL` env var.
If that's not set, defaults to `http://localhost:8081/artifactory/libs-release-local`
which is the default URL of https://jfrog.com/artifactory/[Artifactory] running locally
- `EXTERNAL_CONTRACTS_PATH` - path to contracts for the given project, inside the project with contracts.
Defaults to slash separated `EXTERNAL_CONTRACTS_GROUP_ID` concatenated with `/` and `EXTERNAL_CONTRACTS_ARTIFACT_ID`. E.g.
for group id `foo.bar` and artifact id `baz`, would result in `foo/bar/baz` contracts path.
- `EXTERNAL_CONTRACTS_WORK_OFFLINE` - if set to `true` then will retrieve artifact with contracts
from the container's `.m2`. Mount your local `.m2` as a volume available at the container's `/root/.m2` path.
You must not set both `EXTERNAL_CONTRACTS_WORK_OFFLINE` and `EXTERNAL_CONTRACTS_REPO_WITH_BINARIES_URL`.

fixes gh-576
2018-03-15 14:48:28 +01:00
Marcin Grzejszczak
38cb54eab2 Added fast switch for circle 2018-03-13 18:05:36 +01:00
Marcin Grzejszczak
2740496d86 Added one more ant pattern to gradle and maven plugins
The bug is related to the fact that initially, we were supporting slash-separated paths to projects. E.g. if the group id was `a.b.c` then we did checked for `a/b/c` folder. At certain point we've started building stubs with the `groupid` folder as such e.g. `a.b.c/artifact-id`. This is where the bug comes in. For Maven and Gradle we're using ant patterns for copying files. We're only providing the slash-separated ant pattern. With this fix, we're backward compatible (we're leaving the slash-separated one) and we're adding support for dot-delimited group id.

fixes gh-555
2018-03-13 17:47:00 +01:00
Alexey Nesterov
e89062f58d Fix disabling of publish task when env property is set (#574)
Because of Gradle's project lifecycle, disabling tasks in the script doesn't
work as expected, ./gradlew publish will still try to execute
:publishMavenJavaPublicationToMavenRepository and fail even if PUBLISH_ARTIFACTS
is set to false. To avoid that and make sure all publish tasks are disabled
script need to listen for tasks graph event to be ready and then disable the tasks.
2018-03-13 10:34:48 +01:00
Marcin Grzejszczak
90354dace5 Lower memory requirements for Gradle 2018-03-11 19:27:49 +01:00
Marcin Grzejszczak
9c4758b069 Removed empty if statement 2018-03-09 17:23:29 +01:00
Marcin Grzejszczak
2fc413755b Fixed unnecessary quoting of non string value when referencing request from response
fixes gh-559
2018-03-09 16:56:47 +01:00
Marcin Grzejszczak
e2b61cd125 Added Stub Runner entry in the readme
fixes gh-530
2018-02-19 15:56:47 +01:00
Marcin Grzejszczak
7a724c88f7 REmoved stub runner boot readme; fixes gh-530 2018-02-19 14:46:05 +01:00
Marcin Grzejszczak
f05aa45704 Fixed a test; fixes gh-542 2018-02-19 10:52:00 +01:00
Axel Hodler
82fb1cdac3 Avoid quoting of floating point numbers 2018-02-19 10:15:51 +01:00
Marcin Grzejszczak
91d686cd52 Explicitly added starter-web for stub runner starter 2018-02-16 21:45:34 +01:00
Marcin Grzejszczak
c8ec61c1c2 Changed the snapshot skip test property 2018-02-16 14:06:33 +01:00
Marcin Grzejszczak
a2d866dd39 Bumped versions 2018-02-16 13:37:11 +01:00