stubrunner:
work-offline: true
- stubs.ids: 'com.example:http-server-dsl:+:stubs:8080'
+ ids: 'com.example:http-server-dsl:+:stubs:8080'
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'
@RunWith(SpringRunner.class)
@SpringBootTest
-@AutoConfigureStubRunner
+@AutoConfigureStubRunner(ids = {"com.example:http-server-dsl:+:stubs:8080"}, workOffline = true)
public class LoanApplicationServiceTests {
stubrunner.stubs:
+stubrunner:
ids: 'com.example:http-server-dsl:+:stubs:8080'
repositoryRoot: http://repo.spring.io/libs-snapshot
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
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
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
@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