diff --git a/multi/multi_contract-dsl.html b/multi/multi_contract-dsl.html index 1574199565..fe88d91fbc 100644 --- a/multi/multi_contract-dsl.html +++ b/multi/multi_contract-dsl.html @@ -188,6 +188,8 @@ relative to the folder in which the contract lays.
Gr response { //... + status 200 } }
YAML.
@@ -241,6 +245,7 @@ the recommended way, as doing so makes the tests ho
response {
//...
+ status 200
}
}
YAML.
@@ -251,6 +256,7 @@ the recommended way, as doing so makes the tests ho
YAML.
@@ -346,6 +353,8 @@ response:
YAML.
@@ -371,6 +381,8 @@ headers:
YAML.
@@ -396,6 +409,8 @@ cookies:
YAML.
@@ -495,6 +511,8 @@ following code shows an example: Groovy DSL.
org.springframework.cloud.contract.spec.Contract.make {
request {
//...
+ method GET()
urlPath('/users') {
@@ -287,6 +293,7 @@ the recommended way, as doing so makes the tests ho
response {
//...
+ status 200
}
}org.springframework.cloud.contract.spec.Contract.make {
request {
//...
+ method GET()
+ url "/foo"
// Each header is added in form `'Header-Name' : 'Header-Value'`.
// there are also some helper methods
@@ -359,6 +368,7 @@ response:
response {
//...
+ status 200
}
}org.springframework.cloud.contract.spec.Contract.make {
request {
//...
+ method GET()
+ url "/foo"
// Each Cookies is added in form `'Cookie-Key' : 'Cookie-Value'`.
// there are also some helper methods
@@ -384,6 +396,7 @@ headers:
response {
//...
+ status 200
}
}org.springframework.cloud.contract.spec.Contract.make {
request {
//...
+ method GET()
+ url "/foo"
// Currently only JSON format of request body is supported.
// Format will be determined from a header or body's content.
@@ -404,6 +419,7 @@ cookies:
response {
//...
+ status 200
}
}org.springframework.cloud.contract.spec.Contract.make {
request {
//...
+ method GET()
+ url "/foo"
}
response {
// Status code sent by the server
@@ -1090,6 +1108,7 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
Content-Type: application/json
cookies:
foo: 2
+ bar: 3
queryParameters:
limit: 10
offset: 20
@@ -1117,7 +1136,7 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
regex: /get/[0-9]
# predefined:
# execute a method
- # command:
+ #command: 'equals($it)'
queryParameters:
- key: limit
type: equal_to
@@ -1142,6 +1161,8 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
cookies:
- key: foo
regex: '[0-9]'
+ - key: bar
+ command: 'equals($it)'
headers:
- key: Content-Type
regex: "application/json.*"
@@ -1174,6 +1195,9 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
type: by_null
response:
status: 200
+ cookies:
+ foo: 1
+ bar: 2
body:
duck: 123
alpha: "abc"
@@ -1205,6 +1229,11 @@ response:
headers:
- key: Content-Type
regex: "application/json.*"
+ cookies:
+ - key: foo
+ regex: '[0-9]'
+ - key: bar
+ command: 'equals($it)'
body:
- path: $.duck
type: by_regex
diff --git a/single/spring-cloud-contract.html b/single/spring-cloud-contract.html
index cdbd787d1d..221128beb1 100644
--- a/single/spring-cloud-contract.html
+++ b/single/spring-cloud-contract.html
@@ -3579,6 +3579,8 @@ relative to the folder in which the contract lays.
Gr response { //... + status 200 } }
YAML.
@@ -3632,6 +3636,7 @@ the recommended way, as doing so makes the tests ho
response {
//...
+ status 200
}
}
YAML.
@@ -3642,6 +3647,7 @@ the recommended way, as doing so makes the tests ho
YAML.
@@ -3737,6 +3744,8 @@ response:
YAML.
@@ -3762,6 +3772,8 @@ headers:
YAML.
@@ -3787,6 +3800,8 @@ cookies:
YAML.
@@ -3886,6 +3902,8 @@ following code shows an example: Groovy DSL.
org.springframework.cloud.contract.spec.Contract.make {
request {
//...
+ method GET()
urlPath('/users') {
@@ -3678,6 +3684,7 @@ the recommended way, as doing so makes the tests ho
response {
//...
+ status 200
}
}org.springframework.cloud.contract.spec.Contract.make {
request {
//...
+ method GET()
+ url "/foo"
// Each header is added in form `'Header-Name' : 'Header-Value'`.
// there are also some helper methods
@@ -3750,6 +3759,7 @@ response:
response {
//...
+ status 200
}
}org.springframework.cloud.contract.spec.Contract.make {
request {
//...
+ method GET()
+ url "/foo"
// Each Cookies is added in form `'Cookie-Key' : 'Cookie-Value'`.
// there are also some helper methods
@@ -3775,6 +3787,7 @@ headers:
response {
//...
+ status 200
}
}org.springframework.cloud.contract.spec.Contract.make {
request {
//...
+ method GET()
+ url "/foo"
// Currently only JSON format of request body is supported.
// Format will be determined from a header or body's content.
@@ -3795,6 +3810,7 @@ cookies:
response {
//...
+ status 200
}
}org.springframework.cloud.contract.spec.Contract.make {
request {
//...
+ method GET()
+ url "/foo"
}
response {
// Status code sent by the server
@@ -4481,6 +4499,7 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
Content-Type: application/json
cookies:
foo: 2
+ bar: 3
queryParameters:
limit: 10
offset: 20
@@ -4508,7 +4527,7 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
regex: /get/[0-9]
# predefined:
# execute a method
- # command:
+ #command: 'equals($it)'
queryParameters:
- key: limit
type: equal_to
@@ -4533,6 +4552,8 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
cookies:
- key: foo
regex: '[0-9]'
+ - key: bar
+ command: 'equals($it)'
headers:
- key: Content-Type
regex: "application/json.*"
@@ -4565,6 +4586,9 @@ email, url, uuid, iso_date, iso_date_time, iso_time, iso_8601_with_offset, non_e
type: by_null
response:
status: 200
+ cookies:
+ foo: 1
+ bar: 2
body:
duck: 123
alpha: "abc"
@@ -4596,6 +4620,11 @@ response:
headers:
- key: Content-Type
regex: "application/json.*"
+ cookies:
+ - key: foo
+ regex: '[0-9]'
+ - key: bar
+ command: 'equals($it)'
body:
- path: $.duck
type: by_regex
diff --git a/spring-cloud-contract.xml b/spring-cloud-contract.xml
index d31748d369..6f3bdab631 100644
--- a/spring-cloud-contract.xml
+++ b/spring-cloud-contract.xml
@@ -4,7 +4,7 @@