Commit Graph

1612 Commits

Author SHA1 Message Date
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
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
953f98d494 Fixed intellij shading dependencies 2017-06-20 21:46:13 +02:00
Marcin Grzejszczak
c286bf15aa Trying to make things work 2017-06-20 17:24:47 +02:00
Marcin Grzejszczak
3ff0ed942c Trying to make the shading work in intellij (again) 2017-06-20 17:24:32 +02:00
Dave Syer
d67e69624a Revert change the fails tests (committed by mistake) 2017-06-19 11:28:50 +01:00
Dave Syer
8cdad73158 Add support for placeholder resolution in stub file names
E.g. document("{method-name}/{step}").

Fixes gh-84
2017-06-16 14:47:38 +01: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
cec5d29f1c Less noise from WireMockHttpServerStub; fixes #329 2017-06-14 14:16:26 +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
Dave Syer
ac28dd204c Switch to Boot 1.5.4.RELEASE for samples 2017-06-13 14:46:05 +01:00
Marcin Grzejszczak
1a462893e2 Fixed missing header setting and messaging test indentation
fixes #323
2017-06-09 13:05:42 +02:00
Marcin Grzejszczak
2b527b5579 Added a null check if someone passes null as headers for amqp 2017-06-09 12:15:43 +02:00
Marcin Grzejszczak
325afbe3ec Fixed wrong condition on jsonpath for rest docs
fixes #298
2017-06-06 13:28:31 +02:00
Marcin Grzejszczak
b158ed4919 Fixed broken response headers assertions
fixes #318
2017-06-05 11:29:43 +02:00
Marcin Grzejszczak
4631ab6ea8 Adds support for execute in request body
fixes #313
2017-06-01 17:50:10 +02:00
Marcin Grzejszczak
fe299de7c2 Throwing exception when wanted remote repo and got a local m2 instance
without this change even though we want a remote repo to be used for the artifact we return a cached instance
with this change we're throwing an exception if we can't download the artifact and we found one cached in the local repo

fixes #312
2017-06-01 15:48:13 +02:00
Marcin Grzejszczak
066dd20709 Upgraded jacoco to 0.7.7 - without this moco tests fail 2017-05-31 17:06:37 +02:00
Marcin Grzejszczak
bd5a3b39ca Downgraded jacoco 2017-05-31 16:50:50 +02:00
Marcin Grzejszczak
cd67e1f0ea Revert "Trying to make moco thing work"
This reverts commit 29f1d614eb.
2017-05-31 16:42:50 +02:00
Marcin Grzejszczak
29f1d614eb Trying to make moco thing work 2017-05-31 16:30:42 +02:00
Marcin Grzejszczak
baf294dbbf Updated the contracts 2017-05-31 16:14:06 +02:00
Marcin Grzejszczak
8979b79c56 Added examples of multipart support
fixes #304
2017-05-31 15:40:35 +02:00
Marcin Grzejszczak
9fd4a21c43 Added backward compatibility with previous versions in terms of rabbitmq connection factory mocking
without this change we're not mocking all necessary methods in connection factory. When someone used the rabbittemplate, accidentaly we mocked the proper method to return a mocked connection factory. When rabbitmq started using different version of the `newConnection` in all places where rabbittemplate was used the real connection factory was created.
with this change we're mocking all `newConnection` methods to return a mocked connection

fixes #303
2017-05-31 14:28:49 +02:00
Marcin Grzejszczak
85a37345e3 Adding debug to see why the test is failing 2017-05-30 17:33:23 +02:00
Marcin Grzejszczak
766f90363b Trying to fix the build 2017-05-30 15:36:29 +02: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
d5e933f169 Fixed tests 2017-05-26 22:27:46 +02:00
Marcin Grzejszczak
abcb82fad5 Fixed the wrong UUID regex
it allowed more letters than it should

fixes #302
2017-05-26 22:18:06 +02:00
Marcin Grzejszczak
464e886bb8 Added versions 2017-05-26 22:03:29 +02:00
Marcin Grzejszczak
5a82609e41 Added docs for byCommand and execute
without this there's no knowledge of what type should the method in byCommand and execute

fixes #299
2017-05-26 21:30:34 +02:00
Marcin Grzejszczak
05ca8f909b Added messagingContentType
without this change you can by mistake use the http headers in a messaging headers which will fail to work
with this change we're adding the messagingContentType() method that allows to properly set the content type

fixes #296
2017-05-26 20:43:44 +02:00
Marcin Grzejszczak
f599a8d745 Updated versions 2017-05-26 20:34:29 +02:00
Marcin Grzejszczak
9ffd9d8f6a Added stream doc updates 2017-05-26 19:37:41 +02:00
Marcin Grzejszczak
459448cb27 Asserting on the payload before converting it
without this change an NPE is thrown instead of a meaningful message

fixes #307
2017-05-26 18:45:53 +02:00
Marcin Grzejszczak
76de9cec36 Bumped versions after release 2017-05-26 14:57:34 +02:00
Marcin Grzejszczak
3c8b8ac81d Added workshops to the docs 2017-05-26 14:51:32 +02:00