Added fixedDelayMilliseconds in yaml and docs; fixes gh-788

This commit is contained in:
Marcin Grzejszczak
2018-11-08 17:18:20 +01:00
parent e01af34151
commit 182aa430b5
5 changed files with 32 additions and 0 deletions

View File

@@ -1036,6 +1036,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.