Sync docs from master to gh-pages
This commit is contained in:
@@ -488,7 +488,7 @@ Spring Cloud Contract Verifier.</p>
|
||||
<div class="paragraph">
|
||||
<p>Before becoming Spring Cloud Contract, this project was called <a href="https://github.com/Codearte/accurest">Accurest</a>.
|
||||
It was created by <a href="https://twitter.com/mgrzejszczak">Marcin Grzejszczak</a> and <a href="https://twitter.com/jkubrynski">Jakub Kubrynski</a>
|
||||
from (<a href="http://codearte.io">codearte.io</a>.</p>
|
||||
from (<a href="https://github.com/Codearte">Codearte</a>.</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>The <code>0.1.0</code> release took place on 26 Jan 2015 and it became stable with <code>1.0.0</code> release on 29 Feb 2016.</p>
|
||||
@@ -1873,7 +1873,7 @@ Consult the <a href="#contract-dsl">Contract DSL</a> section for more informatio
|
||||
</td>
|
||||
<td class="content">
|
||||
You must understand the map notation in order to set up contracts. Please read the
|
||||
<a href="http://groovy-lang.org/json.html">Groovy docs regarding JSON</a>.
|
||||
<a href="https://groovy-lang.org/json.html">Groovy docs regarding JSON</a>.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -2178,7 +2178,7 @@ capitalize <code>fraud</code>. That gives you the <code>FraudBase</code> test cl
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>All the generated tests extend that class. Over there, you can set up your Spring Context
|
||||
or whatever is necessary. In this case, use <a href="http://rest-assured.io/">Rest Assured MVC</a> to
|
||||
or whatever is necessary. In this case, use <a href="https://github.com/rest-assured/rest-assured">Rest Assured MVC</a> to
|
||||
start the server side <code>FraudDetectionController</code>.</p>
|
||||
</div>
|
||||
<div class="listingblock">
|
||||
@@ -2392,16 +2392,16 @@ constant development.</p>
|
||||
<div class="ulist">
|
||||
<ul>
|
||||
<li>
|
||||
<p><a href="http://www.slideshare.net/MarcinGrzejszczak/stick-to-the-rules-consumer-driven-contracts-201507-confitura">Slides from Marcin Grzejszczak’s talk about Accurest</a></p>
|
||||
<p><a href="https://www.slideshare.net/MarcinGrzejszczak/stick-to-the-rules-consumer-driven-contracts-201507-confitura">Slides from Marcin Grzejszczak’s talk about Accurest</a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><a href="http://toomuchcoding.com/blog/categories/accurest/">Accurest related articles from Marcin Grzejszczak’s blog</a></p>
|
||||
<p><a href="https://toomuchcoding.com/blog/categories/accurest/">Accurest related articles from Marcin Grzejszczak’s blog</a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><a href="http://toomuchcoding.com/blog/categories/spring-cloud-contract/">Spring Cloud Contract related articles from Marcin Grzejszczak’s blog</a></p>
|
||||
<p><a href="https://toomuchcoding.com/blog/categories/spring-cloud-contract/">Spring Cloud Contract related articles from Marcin Grzejszczak’s blog</a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><a href="http://groovy-lang.org/json.html">Groovy docs regarding JSON</a></p>
|
||||
<p><a href="https://groovy-lang.org/json.html">Groovy docs regarding JSON</a></p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -2634,7 +2634,7 @@ for time and UUID are simplified and most likely invalid but we want to keep thi
|
||||
<i class="fa icon-important" title="Important"></i>
|
||||
</td>
|
||||
<td class="content">
|
||||
Please read the <a href="http://groovy-lang.org/json.html">Groovy docs related to JSON</a> to understand how to
|
||||
Please read the <a href="https://groovy-lang.org/json.html">Groovy docs related to JSON</a> to understand how to
|
||||
properly structure the request / response bodies.
|
||||
</td>
|
||||
</tr>
|
||||
@@ -3005,7 +3005,7 @@ and runs <code>mvn clean install -DskipTests</code> to install locally the stubs
|
||||
<i class="fa icon-tip" title="Tip"></i>
|
||||
</td>
|
||||
<td class="content">
|
||||
You need to have <a href="http://maven.apache.org/download.cgi">Maven installed locally</a>
|
||||
You need to have <a href="https://maven.apache.org/download.cgi">Maven installed locally</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -3644,7 +3644,7 @@ to find stub definitions and contracts. E.g. for <code>com.example:foo:1.0.0</co
|
||||
<div class="sect2">
|
||||
<h3 id="_can_i_use_the_pact_broker"><a class="link" href="#_can_i_use_the_pact_broker">3.7. Can I use the Pact Broker?</a></h3>
|
||||
<div class="paragraph">
|
||||
<p>When using <a href="http://pact.io/">Pact</a> you can use the <a href="https://github.com/pact-foundation/pact_broker">Pact Broker</a>
|
||||
<p>When using <a href="https://pact.io/">Pact</a> you can use the <a href="https://github.com/pact-foundation/pact_broker">Pact Broker</a>
|
||||
to store and share Pact definitions. Starting from Spring Cloud Contract
|
||||
2.0.0 one can fetch Pact files from the Pact Broker to generate
|
||||
tests and stubs.</p>
|
||||
@@ -4000,7 +4000,7 @@ Gradle or a Maven plugin.</p>
|
||||
</td>
|
||||
<td class="content">
|
||||
If you want to use Spock in your projects, you must add separately the
|
||||
<code>spock-core</code> and <code>spock-spring</code> modules. Check <a href="http://spockframework.github.io/">Spock
|
||||
<code>spock-core</code> and <code>spock-spring</code> modules. Check <a href="https://spockframework.github.io/">Spock
|
||||
docs for more information</a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -5359,7 +5359,7 @@ name of <code>scenario1</code> and the three following steps:</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>More details about WireMock scenarios can be found at
|
||||
<a href="http://wiremock.org/docs/stateful-behaviour/">http://wiremock.org/docs/stateful-behaviour/</a></p>
|
||||
<a href="https://wiremock.org/docs/stateful-behaviour/">https://wiremock.org/docs/stateful-behaviour/</a></p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Spring Cloud Contract Verifier also generates tests with a guaranteed order of execution.</p>
|
||||
@@ -5438,7 +5438,7 @@ like them to be available for others to download / reference or reuse. In case
|
||||
of the JVM world those artifacts would be JARs, for Ruby these are gems
|
||||
and for Docker those would be Docker images. You can store those artifacts
|
||||
in a manager. Examples of such managers can be <a href="https://jfrog.com/artifactory/">Artifactory</a>
|
||||
or <a href="http://www.sonatype.org/nexus/">Nexus</a>.</p>
|
||||
or <a href="https://www.sonatype.org/nexus/">Nexus</a>.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -5464,7 +5464,7 @@ purposes).</p>
|
||||
<p>execute the tests against the provided URL</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>generate the <a href="http://wiremock.org">WireMock</a> stubs</p>
|
||||
<p>generate the <a href="https://github.com/tomakehurst/wiremock">WireMock</a> stubs</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>(optional - turned on by default) publish the stubs to a Artifact Manager</p>
|
||||
@@ -6371,7 +6371,7 @@ publishing {
|
||||
<h3 id="_stub_runner_core"><a class="link" href="#_stub_runner_core">6.3. Stub Runner Core</a></h3>
|
||||
<div class="paragraph">
|
||||
<p>Runs stubs for service collaborators. Treating stubs as contracts of services allows to use stub-runner as an implementation of
|
||||
<a href="http://martinfowler.com/articles/consumerDrivenContracts.html">Consumer Driven Contracts</a>.</p>
|
||||
<a href="https://martinfowler.com/articles/consumerDrivenContracts.html">Consumer Driven Contracts</a>.</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Stub Runner allows you to automatically download the stubs of the provided dependencies (or pick those from the classpath), start WireMock servers for them and feed them with proper stub definitions.
|
||||
@@ -6422,7 +6422,7 @@ For messaging, special stub routes are defined.</p>
|
||||
</div>
|
||||
<div class="listingblock">
|
||||
<div class="content">
|
||||
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@AutoConfigureStubRunner(repositoryRoot="http://foo.bar", ids = "com.example:beer-api-producer:+:stubs:8095", stubsMode = StubRunnerProperties.StubsMode.LOCAL)</code></pre>
|
||||
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@AutoConfigureStubRunner(repositoryRoot="https://foo.bar", ids = "com.example:beer-api-producer:+:stubs:8095", stubsMode = StubRunnerProperties.StubsMode.LOCAL)</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -7418,7 +7418,7 @@ $ java -jar stub-runner.jar --stubrunner.ids=... --stubrunner.repositoryRoot=...
|
||||
<div class="sect4">
|
||||
<h5 id="_spring_cloud_cli"><a class="link" href="#_spring_cloud_cli">Spring Cloud CLI</a></h5>
|
||||
<div class="paragraph">
|
||||
<p>Starting from <code>1.4.0.RELEASE</code> version of the <a href="http://cloud.spring.io/spring-cloud-cli">Spring Cloud CLI</a>
|
||||
<p>Starting from <code>1.4.0.RELEASE</code> version of the <a href="https://cloud.spring.io/spring-cloud-cli">Spring Cloud CLI</a>
|
||||
project you can start Stub Runner Boot by executing <code>spring cloud stubrunner</code>.</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
@@ -7614,7 +7614,7 @@ and we want to have the stub runner feature turned on <code>@AutoConfigureStubRu
|
||||
</div>
|
||||
<div class="listingblock">
|
||||
<div class="content">
|
||||
<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">* -Dstubrunner.repositoryRoot=https://repo.spring.io/snapshots (1)
|
||||
<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash">* -Dstubrunner.repositoryRoot=https://repo.spring.io/snapshot (1)
|
||||
* -Dstubrunner.cloud.stubbed.discovery.enabled=false (2)
|
||||
* -Dstubrunner.ids=org.springframework.cloud.contract.verifier.stubs:loanIssuance,org.
|
||||
* springframework.cloud.contract.verifier.stubs:fraudDetectionServer,org.springframework.
|
||||
@@ -10520,7 +10520,7 @@ optional parameters only for the following:</p>
|
||||
}
|
||||
body(
|
||||
email: $(consumer(optional(regex(email()))), producer('abc@abc.com')),
|
||||
callback_url: $(consumer(regex(hostname())), producer('http://partners.com'))
|
||||
callback_url: $(consumer(regex(hostname())), producer('https://partners.com'))
|
||||
)
|
||||
}
|
||||
response {
|
||||
@@ -10548,7 +10548,7 @@ expression that must be present 0 or more times.</p>
|
||||
given:
|
||||
def request = given()
|
||||
.header("Content-Type", "application/json")
|
||||
.body('''{"email":"abc@abc.com","callback_url":"http://partners.com"}''')
|
||||
.body('''{"email":"abc@abc.com","callback_url":"https://partners.com"}''')
|
||||
|
||||
when:
|
||||
def response = given().spec(request)
|
||||
@@ -10803,7 +10803,7 @@ matches the JSON Path.</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>If you’re using the YAML contract definition you have to use the
|
||||
<a href="http://handlebarsjs.com/">Handlebars</a> <code>{{{ }}}</code> notation with custom, Spring Cloud Contract
|
||||
<a href="https://handlebarsjs.com/">Handlebars</a> <code>{{{ }}}</code> notation with custom, Spring Cloud Contract
|
||||
functions to achieve this.</p>
|
||||
</div>
|
||||
<div class="ulist">
|
||||
@@ -14022,7 +14022,7 @@ properties</p>
|
||||
<h2 id="_spring_cloud_contract_wiremock"><a class="link" href="#_spring_cloud_contract_wiremock">11. Spring Cloud Contract WireMock</a></h2>
|
||||
<div class="sectionbody">
|
||||
<div class="paragraph">
|
||||
<p>The Spring Cloud Contract WireMock modules let you use <a href="http://wiremock.org">WireMock</a> in a
|
||||
<p>The Spring Cloud Contract WireMock modules let you use <a href="https://github.com/tomakehurst/wiremock">WireMock</a> in a
|
||||
Spring Boot application. Check out the
|
||||
<a href="https://github.com/spring-cloud/spring-cloud-contract/tree/master/samples">samples</a>
|
||||
for more details.</p>
|
||||
@@ -14276,7 +14276,7 @@ public class WiremockForDocsMockServerApplicationTests {
|
||||
public void contextLoads() throws Exception {
|
||||
// will read stubs classpath
|
||||
MockRestServiceServer server = WireMockRestServiceServer.with(this.restTemplate)
|
||||
.baseUrl("http://example.org").stubs("classpath:/stubs/resource.json")
|
||||
.baseUrl("https://example.org").stubs("classpath:/stubs/resource.json")
|
||||
.build();
|
||||
// We're asserting if WireMock responded properly
|
||||
assertThat(this.service.go()).isEqualTo("Hello World");
|
||||
@@ -14290,11 +14290,11 @@ public class WiremockForDocsMockServerApplicationTests {
|
||||
<p>The <code>baseUrl</code> value is prepended to all mock calls, and the <code>stubs()</code> method takes a stub
|
||||
path resource pattern as an argument. In the preceding example, the stub defined at
|
||||
<code>/stubs/resource.json</code> is loaded into the mock server. If the <code>RestTemplate</code> is asked to
|
||||
visit <code><a href="http://example.org/" class="bare">http://example.org/</a></code>, it gets the responses as being declared at that URL. More
|
||||
visit <code><a href="https://example.org/" class="bare">https://example.org/</a></code>, it gets the responses as being declared at that URL. More
|
||||
than one stub pattern can be specified, and each one can be a directory (for a recursive
|
||||
list of all ".json"), a fixed filename (as in the example above), or an Ant-style
|
||||
pattern. The JSON format is the normal WireMock format, which you can read about in the
|
||||
<a href="http://wiremock.org/docs/stubbing/">WireMock website</a>.</p>
|
||||
<a href="https://wiremock.org/docs/stubbing/">WireMock website</a>.</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Currently, the Spring Cloud Contract Verifier supports Tomcat, Jetty, and Undertow as
|
||||
@@ -14692,7 +14692,7 @@ structure presented in the previous snippet.</p>
|
||||
<assembly
|
||||
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 https://maven.apache.org/xsd/assembly-1.1.3.xsd">
|
||||
<id>stubs</id>
|
||||
<formats>
|
||||
<format>jar</format>
|
||||
|
||||
Reference in New Issue
Block a user