From 4762336f3e3fccc2c772885b3ef1a7528f28723a Mon Sep 17 00:00:00 2001
From: buildmaster
Maven. +Pact Broker. An example of such setup can be found here.
Maven.
<plugin> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-contract-maven-plugin</artifactId> @@ -582,7 +582,7 @@ contracts { (for every single consumer define the expectations) but you’d prefer to do Producer Contracts (the producer provides the contracts and publishes stubs), it’s enough to use Spring Cloud Contract with -Stub Runner option.First, remember to add Stub Runner and Spring Cloud Contract Pact module +Stub Runner option. An example of such setup can be found here.
First, remember to add Stub Runner and Spring Cloud Contract Pact module as test dependencies.
Maven.
<dependencyManagement> <dependencies> diff --git a/multi/multi__using_the_pluggable_architecture.html b/multi/multi__using_the_pluggable_architecture.html index ebcf1a4ad4..c61460c26b 100644 --- a/multi/multi__using_the_pluggable_architecture.html +++ b/multi/multi__using_the_pluggable_architecture.html @@ -421,7 +421,7 @@ to clone the repository and use it as a source of contracts to generate tests or stubs.Either via environment variables, system properties, properties set inside the plugin or contracts repository configuration you can tweak the downloader’s behaviour. Below you can find the list of -properties
Table 10.1. SCM Stub Downloader properties
Type of a property
Name of the property
Description
*
git.branch(plugin prop) +propertiesTable 10.1. SCM Stub Downloader properties
Type of a property
Name of the property
Description
*
git.branch(plugin prop)*
stubrunner.properties.git.branch(system prop)*
STUBRUNNER_PROPERTIES_GIT_BRANCH(env prop)master
Which branch to checkout
*
git.username(plugin prop)*
stubrunner.properties.git.username(system prop) @@ -437,7 +437,7 @@ to fetch the Pact contract definitions from the Pact Broker. Whatever is set afterpact://will be parsed as the Pact Broker URL.Either via environment variables, system properties, properties set inside the plugin or contracts repository configuration you can tweak the downloader’s behaviour. Below you can find the list of -properties
Table 10.2. SCM Stub Downloader properties
Type of a property
Name of the property
Description
*
pactbroker.host(plugin prop) +propertiesTable 10.2. SCM Stub Downloader properties
Type of a property
Name of the property
Description
*
pactbroker.host(plugin prop)*
stubrunner.properties.pactbroker.host(system prop)*
STUBRUNNER_PROPERTIES_PACTBROKER_HOST(env prop)Host from URL passed to
repositoryRootWhat is the URL of Pact Broker
*
pactbroker.port(plugin prop)*
stubrunner.properties.pactbroker.port(system prop) diff --git a/single/spring-cloud-contract.html b/single/spring-cloud-contract.html index 37b4d63037..28dfe138cb 100644 --- a/single/spring-cloud-contract.html +++ b/single/spring-cloud-contract.html @@ -1300,7 +1300,7 @@ setup can be found pact:// protocol. It’s enough to pass the URL to the -Pact Broker.Maven. +Pact Broker. An example of such setup can be found here.
Maven.
<plugin> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-contract-maven-plugin</artifactId> @@ -1363,7 +1363,7 @@ contracts { (for every single consumer define the expectations) but you’d prefer to do Producer Contracts (the producer provides the contracts and publishes stubs), it’s enough to use Spring Cloud Contract with -Stub Runner option.First, remember to add Stub Runner and Spring Cloud Contract Pact module +Stub Runner option. An example of such setup can be found here.
First, remember to add Stub Runner and Spring Cloud Contract Pact module as test dependencies.
Maven.
<dependencyManagement> <dependencies> @@ -5817,7 +5817,7 @@ to clone the repository and use it as a source of contracts to generate tests or stubs.Either via environment variables, system properties, properties set inside the plugin or contracts repository configuration you can tweak the downloader’s behaviour. Below you can find the list of -properties
Table 10.1. SCM Stub Downloader properties