diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index c3fb99f758..b1813cbf3d 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -1251,7 +1251,7 @@ for more information. We highly recommend using the map notation!

stubrunner:
   work-offline: true
-  stubs.ids: 'com.example:http-server-dsl:+:stubs:8080'
+ ids: 'com.example:http-server-dsl:+:stubs:8080'
@@ -1261,7 +1261,7 @@ for more information. We highly recommend using the map notation!

@RunWith(SpringRunner.class)
 @SpringBootTest
-@AutoConfigureStubRunner
+@AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:+:stubs:8080"}, workOffline = true)
 public class LoanApplicationServiceTests {
@@ -1483,7 +1483,7 @@ git merge --no-ff contract-change-pr
-
stubrunner.stubs:
+
stubrunner:
   ids: 'com.example:http-server-dsl:+:stubs:8080'
   repositoryRoot: http://repo.spring.io/libs-snapshot
@@ -3930,6 +3930,7 @@ its methods as presented below:

@IntegrationTest(["stubrunner.cloud.enabled=false", "stubrunner.camel.enabled=false"]) @AutoConfigureStubRunner @DirtiesContext +@ActiveProfiles("test") class StubRunnerConfigurationSpec extends Specification { @Autowired StubFinder stubFinder @@ -3937,8 +3938,8 @@ class StubRunnerConfigurationSpec extends Specification { @BeforeClass @AfterClass void setupProps() { - System.clearProperty("stubrunner.stubs.repository.root"); - System.clearProperty("stubrunner.stubs.classifier"); + System.clearProperty("stubrunner.repository.root"); + System.clearProperty("stubrunner.classifier"); } def 'should start WireMock servers'() { @@ -3967,15 +3968,10 @@ class StubRunnerConfigurationSpec extends Specification {
-
stubrunner.stubs.repositoryRoot: classpath:m2repo/repository/
-stubrunner.stubs.ids:
-  - org.springframework.cloud.contract.verifier.stubs:loanIssuance
-  - org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer
-  - org.springframework.cloud.contract.verifier.stubs:bootService
-
-stubrunner.stubs.idsToServiceIds:
-  ivyNotation: someValueInsideYourCode
-  fraudDetectionServer: someNameThatShouldMapFraudDetectionServer
+
stubrunner:
+  idsToServiceIds:
+    ivyNotation: someValueInsideYourCode
+    fraudDetectionServer: someNameThatShouldMapFraudDetectionServer
@@ -4025,22 +4021,17 @@ or DiscoveryClient directly, to call those stubbed servers instead
-
stubrunner.stubs.repositoryRoot: classpath:m2repo/repository/
-stubrunner.stubs.ids:
-  - org.springframework.cloud.contract.verifier.stubs:loanIssuance
-  - org.springframework.cloud.contract.verifier.stubs:fraudDetectionServer
-  - org.springframework.cloud.contract.verifier.stubs:bootService
-
-stubrunner.stubs.idsToServiceIds:
-  ivyNotation: someValueInsideYourCode
-  fraudDetectionServer: someNameThatShouldMapFraudDetectionServer
+
stubrunner:
+  idsToServiceIds:
+    ivyNotation: someValueInsideYourCode
+    fraudDetectionServer: someNameThatShouldMapFraudDetectionServer

Additional Configuration

-

You can match the artifactId of the stub with the name of your app by using the stubrunner.stubs.idsToServiceIds: map. +

You can match the artifactId of the stub with the name of your app by using the stubrunner.idsToServiceIds: map. You can disable Stub Runner Ribbon support by providing: stubrunner.cloud.ribbon.enabled equal to false You can disable Stub Runner support by providing: stubrunner.cloud.enabled equal to false

@@ -4114,6 +4105,7 @@ trigger the messaging labels and to access started WireMock servers.

@ContextConfiguration(classes = StubRunnerBoot, loader = SpringBootContextLoader)
 @IntegrationTest("spring.cloud.zookeeper.enabled=false")
+@ActiveProfiles("test")
 class StubRunnerBootSpec extends Specification {
 
 	@Autowired StubRunning stubRunning
@@ -4229,12 +4221,12 @@ class StubRunnerBootSpec extends Specification {
 

Minimal value of a port for a started WireMock with stubs

-

stubrunner.stubs.repositoryRoot

+

stubrunner.repositoryRoot

Maven repo url. If blank then will call the local maven repo

-

stubrunner.stubs.classifier

+

stubrunner.classifier

stubs

Default classifier for the stub artifacts

@@ -4244,7 +4236,7 @@ class StubRunnerBootSpec extends Specification {

If true then will not contact any remote repositories to download stubs

-

stubrunner.stubs.ids

+

stubrunner.ids

Array of Ivy notation stubs to download

@@ -4253,7 +4245,7 @@ class StubRunnerBootSpec extends Specification {
Stub runner stubs ids
-

You can provide the stubs to download via the stubrunner.stubs.ids system property. They follow the following pattern:

+

You can provide the stubs to download via the stubrunner.ids system property. They follow the following pattern:

@@ -4909,8 +4901,8 @@ Remember to annotate your test class with @AutoConfigureMessageVerifier
-
stubrunner.stubs.repositoryRoot: classpath:m2repo/repository/
-stubrunner.stubs.ids: org.springframework.cloud.contract.verifier.stubs:streamService:0.0.1-SNAPSHOT:stubs
+
stubrunner.repositoryRoot: classpath:m2repo/repository/
+stubrunner.ids: org.springframework.cloud.contract.verifier.stubs:streamService:0.0.1-SNAPSHOT:stubs
 
 spring:
   cloud:
@@ -5344,7 +5336,7 @@ number of different ways, including as described above using