diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index e9de4d3040..a96accf3ae 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -4567,15 +4567,18 @@ an existing DiscoveryClient its results will be ignored. However, i

2.9. Stub Runner Boot Application

-

Spring Cloud Contract Verifier Stub Runner Boot is a Spring Boot application that exposes REST endpoints to +

Spring Cloud Contract Stub Runner Boot is a Spring Boot application that exposes REST endpoints to trigger the messaging labels and to access started WireMock servers.

-

One of the use-cases is to run some smoke (end to end) tests on a deployed application. You can read - more about this in the "Microservice Deployment" article at Too Much Coding blog.

+

One of the use-cases is to run some smoke (end to end) tests on a deployed application. +You can check out the Spring Cloud Pipelines +project for more information.

2.9.1. How to use it?

+
+
Stub Runner Server

Just add the

@@ -4591,6 +4594,32 @@ trigger the messaging labels and to access started WireMock servers.

For the properties check the Stub Runner Spring section.

+
+
Spring Cloud CLI
+
+

Starting from 1.4.0.RELEASE version of the Spring Cloud CLI +project you can start Stub Runner Boot by executing spring cloud stubrunner.

+
+
+

In order to pass the configuration just create a stubrunner.yml file in the current working directory +or a subdirectory called config or in ~/.spring-cloud. The file could look like this +(example for running stubs installed locally)

+
+
+
stubrunner.yml
+
+
stubrunner:
+  workOffline: true
+  ids:
+    - com.example:beer-api-producer:+:9876
+
+
+
+

and then just call spring cloud stubrunner from your terminal window to start +the Stub Runner server. It will be available at port 8750.

+
+
+

2.9.2. Endpoints