Commit Graph

201 Commits

Author SHA1 Message Date
Marcin Grzejszczak
1cd2ce9722 Fixed broken tests 2018-03-16 06:53:37 +01:00
Marcin Grzejszczak
7a38ab9867 Added the deleteStubsAfterTest flag to remove stubs after tests are finished
if `deleteStubsAfterTest` is set to false then stubs will NOT be deleted after tests are executed

fixes gh-512
2018-03-16 01:08:37 +01:00
Marcin Grzejszczak
903094d8b4 Merge branch '1.2.x' 2018-03-15 17:14:04 +01:00
Marcin Grzejszczak
13902ecf1d Documented custom settings.xml setup; fixes gh-552 2018-03-15 17:13:51 +01:00
Marcin Grzejszczak
05d4bb3a57 Merge branch '1.2.x' 2018-03-15 16:43:42 +01:00
Marcin Grzejszczak
8fa57f5832 Added additional tests 2018-03-15 16:43:32 +01:00
Marcin Grzejszczak
8e4360535c Added HttpStatus delegate in the Groovy DSL Response
with this change there are numerous helper methods that should provide a more descriptive DSL for the response status. Instead of a numerical status you can now call a method e.g. instead of 200 call OK()

fixes gh-575
2018-03-15 10:00:45 +01:00
Eddú Meléndez Gonzales
97a8e3c2f5 Add missing configuration properties metadata for stub-runner (#572)
See gh-566
2018-03-13 10:35:49 +01:00
Marcin Grzejszczak
f6b6b43c9f Merge branch '1.2.x'
also accidentally fixed gh-507
2018-02-16 16:05:54 +01:00
Marcin Grzejszczak
c8ec61c1c2 Changed the snapshot skip test property 2018-02-16 14:06:33 +01:00
Marcin Grzejszczak
d87e669a23 Adding a mechanism to disable the local vs remote stub location
When fetching stubs / contracts in a CI, shared environment, what might happen is that
both the producer and the consumer reuse the same local Maven repository. Due to this,
the framework, responsible for downloading a stub JAR from remote location,
can't decide which JAR should be picked, local or remote one. That caused
the `"The artifact was found in the local repository but you have explicitly
stated that it should be downloaded from a remote one"` exception
and failed the build.

For such cases we're introducing the property mechanism:

- via `stubrunner.snapshot-check.skip` system property
- via `STUBRUNNER_SNAPSHOT_CHECK_SKIP` environment variable

if either of these values is set to `true`, then the stub downloader will not
verify the origin of the downloaded JAR.

fixes gh-545
2018-02-16 13:35:56 +01:00
Marcin Grzejszczak
fb1bffd7fc Merge branch '1.2.x' 2018-01-25 17:58:10 +01:00
Marcin Grzejszczak
a49630bade Added debug information 2018-01-25 17:57:56 +01:00
Marcin Grzejszczak
65ee88aa23 Merge branch '1.2.x' 2018-01-19 01:18:33 +01:00
Marcin Grzejszczak
b745d9a7e3 YAML contracts (#522)
with this change we allow the users to use YAML to define contracts

fixes gh-300 gh-508
helps with #501
2018-01-19 00:27:15 +01:00
Marcin Grzejszczak
748e512f4d Introduces explicit mode of stub downloading (#503)
* Introduces explicit mode of stub downloading

you have to explicitly provide the mode [CLASSPATH, REMOTE, LOCAL] of how you want to fetch and register stubs

fixes gh-287
2018-01-03 08:25:29 +01:00
Marcin Grzejszczak
09a1de01aa Merge branch '1.2.x' 2017-12-22 12:41:03 +01:00
Marcin Grzejszczak
b3e6159bbb Using the new registration mechanism
without this change we're using Eureka lite to register the apps. However we're not reusing any mechanisms that are bound to registration of the main app. That's why we also loose the OAuth2 instrumentation of Spring Cloud Services.
with this change we're reusing the default mechanism. For Cloud based applications we also register the stubs under a different route so as to support the multiple port binding.

fixes gh-490
2017-12-22 12:23:09 +01:00
Biju Kunjummen
0398148a3e Support loading limited context for stub runner tests (#496)
* Support loading limited context for stub runner tests
* Removes slice test runner
2017-12-21 11:31:12 +01:00
Marcin Grzejszczak
48c1d7ba2c Updated code' 2017-12-20 17:06:19 +01:00
Marcin Grzejszczak
80f0e66292 Revert "Revert "Merge branch 'master' into 2.0.x""
This reverts commit 822dd4b732.
2017-12-20 16:37:38 +01:00
Marcin Grzejszczak
2b17370bba Merge branch '1.1.x' into 1.2.x 2017-12-20 16:33:24 +01:00
Marcin Grzejszczak
822dd4b732 Revert "Merge branch 'master' into 2.0.x"
This reverts commit 63a1981f54, reversing
changes made to 0cca942e86.
2017-12-20 16:31:52 +01:00
rbrody
5d9ffc3059 #491 - Stubs are registered to consul with localhost 2017-12-10 14:38:40 +02:00
rbrody
32e5f84dec #491 - Stubs are registered to consul with localhost 2017-12-10 14:18:39 +02:00
rbrody
9a297437d8 #491 - Stubs are registered to consul with localhost 2017-12-10 14:06:41 +02:00
Marcin Grzejszczak
99ad52c2dd Fixed stub runner cloud registration 2017-12-09 07:03:08 -08:00
Marcin Grzejszczak
8be95a0a2e bumping wiremock to 2.12.0
; fixes #477
2017-12-08 11:01:37 -08:00
Marcin Grzejszczak
7caa3102aa Removed server delegation; fixes #487 2017-12-08 10:25:00 -08:00
Biju Kunjummen
f898993856 Fix the order of version and classifier (#475)
Fixes a minor typo - order of version and classifier in javadoc.
2017-12-01 19:50:06 +01:00
Marcin Grzejszczak
19973a2320 Merge branch 'master' into 2.0.x 2017-11-23 12:00:36 +01:00
Marcin Grzejszczak
470ea54fff Ensuring that we don't print any credentials 2017-11-23 11:59:31 +01:00
Marcin Grzejszczak
a792a48620 Merge branch 'master' into 2.0.x 2017-11-23 11:53:40 +01:00
Marcin Grzejszczak
4c073c8a52 Fixing the way StubRunnerBuilder options are built
without this change we're completely ignoring the option of using system properties to set the stub runner builder options
with this change we set it up with defaults from system properties and then we override it with the user's code

fixes #462
2017-11-23 11:53:15 +01:00
Marcin Grzejszczak
0358629a1e Options are passed to StubRunnerRule; fixes #466 2017-11-23 11:25:49 +01:00
Marcin Grzejszczak
1cee74932d Merge branch 'master' into 2.0.x 2017-11-21 16:35:31 +01:00
Marcin Grzejszczak
c354bffafb Lower the logging level where password can be printed; fixes #463 2017-11-21 16:35:22 +01:00
Marcin Grzejszczak
8ae5988dcb Merge branch 'master' into 2.0.x 2017-11-13 10:55:29 +01:00
Marcin Grzejszczak
72b72d83a0 Merge branch '1.1.x' 2017-11-13 10:55:17 +01:00
Marcin Grzejszczak
4dd8f0c515 Polish 2017-11-13 10:55:09 +01:00
Marcin Grzejszczak
232854d8f4 Merge branch 'master' into 2.0.x 2017-11-13 10:45:07 +01:00
Marcin Grzejszczak
99649a0437 Updated WireMock code 2017-11-13 10:44:48 +01:00
Spencer Gibb
0d7ac46e2e Remove uses of DiscoveryClient.getLocalServiceInstance()
This was previously deprecated previously and removed in spring-cloud-commons 2.0.x
2017-10-19 11:15:52 -04:00
Marcin Grzejszczak
7242649f9c Almost there 2017-10-11 12:33:13 +02:00
Marcin Grzejszczak
7756921cdb Ignored one test - have to think how to fix the stream deserialization 2017-10-10 08:22:15 +02:00
Marcin Grzejszczak
43eef1a1a8 Fixed quite a few tests 2017-10-09 18:22:19 +02:00
Marcin Grzejszczak
8da33723a4 Merge branch 'master' into 2.0.x 2017-10-06 11:24:21 +02:00
Marcin Grzejszczak
0758f4ec38 Introduced adding of custom WireMock extensions (#429)
without this change we set only a single extension "response-transformer" without an option to provide any other ones
with this change we introduce the "spring.factories" based extension model. It's enough to provide your own implementation of `org.springframework.cloud.contract.verifier.dsl.wiremock.WireMockExtensions` and register it in `spring.factories`. That way you can control all extensions (request / response).

fixes #425
2017-10-05 15:52:27 +02:00
Marcin Grzejszczak
f4ec52d4ac Removed Camel support (#387)
until https://issues.apache.org/jira/browse/CAMEL-11430 gets fixed

fixes #386
2017-09-05 15:14:31 +02:00
Marcin Grzejszczak
22599b4ef9 Merge branch 'master' into 2.0.x 2017-09-04 12:49:11 +02:00