Merge branch '1.2.x' into 2.0.x

This commit is contained in:
Marcin Grzejszczak
2018-11-08 17:21:26 +01:00
6 changed files with 32 additions and 0 deletions

View File

@@ -1048,6 +1048,31 @@ response:
async: true
----
You can also use the `fixedDelayMilliseconds` method / property to add delay to your stubs.
.Groovy DSL
[source,groovy,indent=0]
----
org.springframework.cloud.contract.spec.Contract.make {
request {
method GET()
url '/get'
}
response {
status 200
body 'Passed'
fixedDelayMilliseconds 1000
}
}
----
.YAML
[source,yml,indent=0]
----
response:
fixedDelayMilliseconds: 1000
----
=== Working with Context Paths
Spring Cloud Contract supports context paths.