From 44432c4c9b07ebf2834d0b08b38b54a09afb0511 Mon Sep 17 00:00:00 2001
From: buildmaster
In order to do that, use the usual producer setup, and then add the pushStubsToScm goal and set
contractsRepositoryUrl to the repository where you want to keep the stubs.
On the consumer side when passing the repositoryRoot parameter,
either from the @AutoConfigureStubRunner annotation, the
-JUnit rule or properties, it’s enough to pass the URL of the
+JUnit rule, JUnit 5 extension or properties, it’s enough to pass the URL of the
SCM repository, prefixed with the protocol. For example
@AutoConfigureStubRunner(
stubsMode="REMOTE",
repositoryRoot="git://https://github.com/spring-cloud-samples/spring-cloud-contract-nodejs-contracts-git.git",
@@ -602,8 +602,8 @@ with pact:// protocol. E.g. p
the Section 10.7, “Using the Pact Stub Downloader” section.The generated tests all boil down to RestAssured in some form or fashion which relies on Apache HttpClient. HttpClient has a facility called wire logging which logs the entire request and response to HttpClient. Spring Boot has a logging common application property for doing this sort of thing, just add this to your application properties
logging.level.org.apache.http.wire=DEBUGStarting from version 1.2.0 we turn on WireMock logging to
info and the WireMock notifier to being verbose. Now you will
exactly know what request was received by WireMock server and which
-matching response definition was picked.
To turn off this feature just bump WireMock logging to ERROR
logging.level.com.github.tomakehurst.wiremock=ERRORYou can use the mappingsOutputFolder property on @AutoConfigureStubRunner or StubRunnerRule
-to dump all mappings per artifact id. Also the port at which the given stub server was
-started will be attached.
Yes! With version 1.2.0 we’ve added such a possibility. It’s enough to call file(…) method in the
+matching response definition was picked.
To turn off this feature just bump WireMock logging to ERROR
logging.level.com.github.tomakehurst.wiremock=ERRORYou can use the mappingsOutputFolder property on @AutoConfigureStubRunner, StubRunnerRule or
+`StubRunnerExtension`to dump all mappings per artifact id. Also the port at which the given stub server
+was started will be attached.