Sync docs from master to gh-pages

This commit is contained in:
buildmaster
2018-11-08 17:43:16 +00:00
parent 6c6423af43
commit 5c0ebcfbd1
4 changed files with 62 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
<book xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0" xml:lang="en">
<info>
<title>Spring Cloud Contract</title>
<date>2018-11-07</date>
<date>2018-11-08</date>
</info>
<preface>
<title></title>
@@ -6413,6 +6413,7 @@ the recommended way, as doing so makes the tests <emphasis role="strong">host-in
regex: bar
response:
status: 200
fixedDelayMilliseconds: 1000
headers:
foo2: bar
foo3: foo33
@@ -8055,6 +8056,30 @@ provide an <literal>async()</literal> method in the <literal>response</literal>
async: true</programlisting>
</para>
</formalpara>
<simpara>You can also use the <literal>fixedDelayMilliseconds</literal> method / property to add delay to your stubs.</simpara>
<formalpara>
<title>Groovy DSL</title>
<para>
<programlisting language="groovy" linenumbering="unnumbered">org.springframework.cloud.contract.spec.Contract.make {
request {
method GET()
url '/get'
}
response {
status 200
body 'Passed'
fixedDelayMilliseconds 1000
}
}</programlisting>
</para>
</formalpara>
<formalpara>
<title>YAML</title>
<para>
<programlisting language="yml" linenumbering="unnumbered">response:
fixedDelayMilliseconds: 1000</programlisting>
</para>
</formalpara>
</section>
<section xml:id="_working_with_context_paths">
<title>Working with Context Paths</title>