Sync docs from 2.0.x to gh-pages
This commit is contained in:
@@ -6349,6 +6349,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
|
||||
@@ -8129,6 +8130,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>
|
||||
|
||||
Reference in New Issue
Block a user