Commit Graph

1652 Commits

Author SHA1 Message Date
Marcin Grzejszczak
113d4e2a4d Migrated to new docs 2017-08-29 15:39:55 +02:00
Marcin Grzejszczak
a2dddff057 Bumped libs 2017-08-29 08:57:07 +02:00
Marcin Grzejszczak
8975aee9a8 Using testMatchers in DSL other than byRegex adds unsolicited isEmpty check for an array
The converted body looks different when done via the String notation than it does when done via a map notation. When working with String body and when matchers are provided, even when all entries of a map / list got removed, the map / list itself remains. That leads to unnecessary creation of checks for empty collection. With this method we're checking if the JSON path matcher is related to array checking and we're trying to remove that trailing collection. All in all it's better to use the Groovy based notation for defining body...

fixes #391
2017-08-28 17:31:05 +02:00
WhyINeedToFillUsername
08f20afd91 Updated description of byType testMatcher (#394)
fixes #393
2017-08-28 16:27:03 +02:00
Marcin Grzejszczak
49df7bf472 Wrong assertion type is picked for Iterables
without this change in the generated test when SpringCloudContractAssertions are used the compiler is picking an invalid type of Assertj Assertions.
with this change we're explicitly casting to the appropriate interface so that the SpringCloudContractAssertions methods are picked

fixes #381
2017-08-28 16:09:51 +02:00
Marcin Grzejszczak
4c82cf1b58 Revert "Wrong assertion type is picked for Iterables"
This reverts commit 8d2549fecf.
2017-08-28 16:04:13 +02:00
Marcin Grzejszczak
8d2549fecf Wrong assertion type is picked for Iterables
without this change in the generated test when SpringCloudContractAssertions are used, we're casting the read element of the JSON to a Collection class whereas we should be casting to an Iterable.

fixes #381
2017-08-28 15:39:34 +02:00
Marcin Grzejszczak
7b144df594 Cannot set fixed port in mvn stub runner (httpPort is ignored)
without this change the value of `spring.cloud.contract.verifier.http.port` gets executed via the `httpPort` method in options builder. The problem is that this method applies the port to the previously started stub. In this case we're not providing any stubs explicitly thus things don't work as they should.

with this change we reuse the min / max port mechanism to limit the range of port to the provided http port

fixes #384
2017-08-28 14:55:40 +02:00
Marcin Grzejszczak
e4806b7797 Fixed wrong docs 2017-08-28 14:08:03 +02:00
Marcin Grzejszczak
1c0d4e56cf Added more documentation to the byCommand assertion; #299 2017-08-28 10:02:13 +02:00
Marcin Grzejszczak
04372d9ee4 Added information about Spring Cloud CLI 2017-08-24 15:44:42 +02:00
Marcin Grzejszczak
13bc6aa93c Removed unnecessary gson dep fixes #58 2017-08-22 17:40:48 +02:00
Marcin Grzejszczak
8ba58d3ab8 Ensure that /tmp files get removed upon process termination
fixes #359
2017-08-22 16:16:25 +02:00
Marcin Grzejszczak
0b3233fd03 Bumped maven samples 2017-08-21 12:56:19 +02:00
Marcin Grzejszczak
7f2833a868 Bumped Gradle plugin version in samples 2017-08-21 12:35:44 +02:00
Marcin Grzejszczak
b99bf95ff9 Bumping versions to 1.1.4.BUILD-SNAPSHOT after release 2017-08-21 12:33:24 +02:00
Marcin Grzejszczak
237ee85dc3 Going back to snapshots 2017-08-21 12:33:24 +02:00
Marcin Grzejszczak
b81bb2a489 Update SNAPSHOT to 1.1.3.RELEASE 2017-08-21 12:28:10 +02:00
Marcin Grzejszczak
9df0a18344 Added gradle substitution property 2017-08-21 12:10:11 +02:00
Marcin Grzejszczak
1cebf3f450 Add documentation that matchers are removing only part of request / response
fixes #383
2017-08-18 18:04:17 +02:00
Marcin Grzejszczak
32cc52a4c2 Spock tests don't have the proper static import
without this change the `org.springframework.cloud.contract.verifier.assertion.SpringCloudContractAssertions.assertThat` was missing in Spock tests
with this change it is added and matchers work fine again

fixes #382
2017-08-18 18:02:29 +02:00
Marcin Grzejszczak
8af5134b28 Fixed javadocs #378 2017-08-18 17:41:36 +02:00
Marcin Grzejszczak
f37869e348 Spring Integration Stub Messages shouldn't be @Component annotated 2017-08-18 14:57:48 +02:00
Marcin Grzejszczak
7f22c14371 Lowered number of elements in toc 2017-08-07 17:07:35 +02:00
Marcin Grzejszczak
2dd22d6646 Added 1.1.x to whitelisted branches 2017-08-07 16:37:07 +02:00
Marcin Grzejszczak
c32da1a96e Updated the documentation layout and style 2017-08-07 16:34:42 +02:00
Cástor Rodríguez
3b44533905 Test generation to place queryParameters before async on RestAssured when chain (#373)
fixes #372
2017-07-31 11:57:06 +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
e4af835b8e Going back to snapshots 2017-07-21 14:30:45 +02:00
Marcin Grzejszczak
85f458e34c Update SNAPSHOT to 1.1.2.RELEASE 2017-07-21 14:06:43 +02:00
Marcin Grzejszczak
7d25a1822a Changed the project building via the releaser 2017-07-21 13:13:18 +02:00
Marcin Grzejszczak
11b864dada Updated Boot version 2017-07-19 11:14:56 +02:00
Marcin Grzejszczak
e549837f4f Added Circle CI 2.0 support 2017-07-18 10:25:56 +02:00
Marcin Grzejszczak
af634bc403 fixing heap space 2017-07-17 23:30:22 +02:00
Marcin Grzejszczak
db51f1339e Lowering memory usage for circleci 2017-07-17 23:10:32 +02:00
Felipe Adorno
421b669361 Tests fail to compile when the contract contains a long value (#358)
without this change when a contract contains a long value inside the body, then the code fails to compile since the provided number is assumed to be an integer.
with this change we're appending an L literal to that value for the compiler to assume that it's a long value.
2017-07-17 22:35:37 +02:00
Marcin Grzejszczak
28abd6fdce Added username and password for Gradle contract downloading
without this change you can't generate tests when working with Gradle that is to download contracts from an external repo

fixes #333
2017-07-13 18:59:20 +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
f6d5ee1baa Not using File.separator in ant path pattern
should fix issues for Windows

fixes #349
2017-07-05 12:47:51 +02:00
Dmitri Karpovich
f0f6a26d04 fixed wrong path of the contracts in documentation 2017-07-04 13:19:39 +02:00
Dmitri Karpovich
06a3a5ff2d fixed typo 2017-07-04 13:12:36 +02:00
Marcin Grzejszczak
8c96a21abf Fixed caching of downloaded contracts in Gradle
without this change when using a daemon, for snapshot versions of downloaded contracts allways the same folder is returned
with this change we cache only non snapshot artifacts; also there's a switch you can set to disable caching at all

fixes #343
2017-07-03 12:52:48 +02:00
Marcin Grzejszczak
b54c36ce8b Polish 2017-07-03 11:10:02 +02:00
Tomasz Kopczynski
9d0075f586 gh-342: Rest Docs stubs with no body 2017-07-02 22:59:38 +02:00
Marcin Grzejszczak
0fbefbaf24 Trying to make the stub runner logic work with changes in sc-common 2017-07-02 14:05:27 +02:00
Marcin Grzejszczak
99deaad17e Contracts path cannot be overriden
without this change there's no way to change the default path of the path to the contracts when trying to execute the convert / generateTests task for another project
with this change we're setting properly the `spring.cloud.contract.verifier.contractsDirectory` for both tasks

fixes #338
2017-06-28 14:45:33 +02:00
Marcin Grzejszczak
aa68196b27 Added tests for #336
fixes #336
2017-06-28 12:46:56 +02:00
Marcin Grzejszczak
39be73ac13 Fixed checkstyle 2017-06-28 12:08:20 +02:00
Marcin Grzejszczak
36409ac400 Fixing the way queue binding key gets used for rabbit listener
without this change we're very strict in terms of the number of called send methods on the rabbittemplate
with this change we accept that the method could have been called more than once

fixes #332
2017-06-28 11:46:22 +02:00
Marcin Grzejszczak
49a542e214 Fixed the logging level for #329 2017-06-21 06:57:13 +02:00