Commit Graph

183 Commits

Author SHA1 Message Date
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
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
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
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
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
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
97380129a4 Fixed wrong contract pattern scanning
e.g. this worked

com/example/foo/...

this didn't

/contract/com/example/foo/...

fixes #335
2017-06-20 21:46:22 +02:00
Marcin Grzejszczak
0905469866 Shades aether (#326)
That way we do not interfere with whatever Maven brings on its classpath

without this change deployment might fail due to being unauthorized.
with this change we're shading aether and maven in stub runner. Due to this there is no classpath clash any more

fixes #325
2017-06-14 14:30:56 +02:00
Marcin Grzejszczak
6e61b5b8f3 Fixed broken test 2017-06-14 13:50:40 +02:00
Marcin Grzejszczak
69d1be515d Added helper methods for contract extension
without these methods to use  and  fields you need to prepend the  word - otherwise you're setting it on the project

fixes #328
2017-06-14 12:46:58 +02:00
Marcin Grzejszczak
88c959beea Fixed wrong classifier setting
without this change the classifier is picked from the `classifier` field in the extension and not from the parsed string notation

fixes #327
2017-06-14 12:36:10 +02:00
Dave Syer
186886029b Switch to Boot 1.5.4.RELEASE for samples in Gradle 2017-06-13 14:52:43 +01:00
Marcin Grzejszczak
84b0cc6478 Checking if the root project has .idea folder
fixes #286
2017-05-30 13:23:03 +02:00
Marcin Grzejszczak
4dc8ea4b9b -x test disables test generation
fixes #306
2017-05-30 12:37:44 +02:00
Marcin Grzejszczak
464e886bb8 Added versions 2017-05-26 22:03:29 +02:00
Marcin Grzejszczak
76de9cec36 Bumped versions after release 2017-05-26 14:57:34 +02:00
Marcin Grzejszczak
e0ea1b27f0 Bumping versions to 1.1.2.BUILD-SNAPSHOT after release 2017-05-22 23:57:24 +02:00
Marcin Grzejszczak
82f68347fa Going back to snapshots 2017-05-22 23:57:23 +02:00
Marcin Grzejszczak
7a10b3bf34 Update SNAPSHOT to 1.1.1.RELEASE 2017-05-22 23:51:18 +02:00
Marcin Grzejszczak
15ef2cab35 Merge branch '1.0.x' 2017-05-05 11:41:39 +02:00
Marcin Grzejszczak
1e16934fce Bumped jsonassert to 0.4.9
without this change we analyze empty sets of jsonpath results improperly

fixes #289
2017-05-05 11:25:19 +02:00
Marcin Grzejszczak
551f77d0ca Merge branch '1.0.x' 2017-04-28 15:08:06 +02:00
Marcin Grzejszczak
d0841400ef Fixed the test resources for Gradle
wiuthout this change Intellij support wasn't great if one hasn't applied the idea plugin
with this change if someone's using Intellij (we check that by verifying the presence of .idea folder) then we apply the plugin automatically

fixes #286
2017-04-28 15:05:56 +02:00
Marcin Grzejszczak
c9538548fd Adds an option to use StubRunner from classpath (#284)
without this change there's no option to use Stub Runner to pick stubs from classpath
with this change we're adding that option. It's enough for the user not to provide neither the `repositoryRoot` nor `workOffline`. If that's the case then Classpath scanning will take place.

fixes #282
2017-04-27 17:13:15 +02:00
Marcin Grzejszczak
a804894c9a Updated code and docs 2017-04-26 12:42:33 +02:00
Marcin Grzejszczak
cf52e6baa6 Added support fot dots in keys
without this change it's impossible to work with jsons that have dots in keys
    with this change that's possible again

    fixes #269
2017-04-26 12:12:17 +02:00
Marcin Grzejszczak
e9770c6ac2 Fixed the build 2017-04-24 15:05:43 +02:00
Marcin Grzejszczak
bca972df63 Updated test 2017-04-14 10:01:22 +02:00
Marcin Grzejszczak
b142195d09 Merge branch '1.0.x' 2017-04-14 09:59:31 +02:00
Marcin Grzejszczak
5843234fa1 Fixed invalid escaping of characters for regex
without this change some regex contained invalid characters. Even though the code compiles the regular expressions passed to json assert are invalid.
with this change that gets fixed and tests are added. We're now checking if the code can be executed and not only compiled. We also check if WireMock fed with the stubs generated from these cases works fine and not only do we check if stub mappings are properly generated.

fixes #250
2017-04-14 09:40:15 +02:00
Marcin Grzejszczak
ef5020986f Bumping versions to 1.1.1.BUILD-SNAPSHOT after release 2017-04-11 11:26:11 +02:00
Marcin Grzejszczak
fe14d5c7d9 Going back to snapshots 2017-04-11 11:23:13 +02:00
Marcin Grzejszczak
c167df4fd6 Update SNAPSHOT to 1.1.0.RELEASE 2017-04-11 11:08:00 +02:00
Dave Syer
d9ff5667a7 Remove duplicate plugin 2017-03-22 12:06:55 +00:00
Marcin Grzejszczak
a6cd890b50 Going back to snapshots 2017-03-17 10:09:33 +01:00
Marcin Grzejszczak
47dc54cad4 Update SNAPSHOT to 1.1.0.RC1 2017-03-17 10:04:52 +01:00
Marcin Grzejszczak
169d1f11c1 Merge branch '1.0.x' 2017-03-10 16:25:25 +01:00
Marcin Grzejszczak
2473408a73 Updated maven docs 2017-03-10 16:24:08 +01:00
Marcin Grzejszczak
ef9c567d46 Going back to snapshots 2017-03-10 15:00:53 +01:00
Marcin Grzejszczak
63180de4fe Bumping versions before release 2017-03-10 14:46:47 +01:00
Marcin Grzejszczak
a3c1167df4 Polish 2017-03-10 14:25:18 +01:00
Marcin Grzejszczak
2520a681c1 Polish 2017-03-10 14:22:38 +01:00
Marcin Grzejszczak
87b374c1ad Merge branch '1.0.x' 2017-03-10 14:22:00 +01:00