-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy pathdefinition-update.diff
79 lines (71 loc) · 3.67 KB
/
definition-update.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
diff --git a/features/V1/http_provider.feature b/features/V1/http_provider.feature
index 94fda44..2838116 100644
--- a/features/V1/http_provider.feature
+++ b/features/V1/http_provider.feature
@@ -118,16 +118,16 @@ Feature: Basic HTTP provider
Scenario: Verifies the response status code
Given a provider is started that returns the response from interaction 1, with the following changes:
- | status |
- | 400 |
+ | response |
+ | 400 |
And a Pact file for interaction 1 is to be verified
When the verification is run
Then the verification will NOT be successful
And the verification results will contain a "Response status did not match" error
Scenario: Verifies the response headers
- Given a provider is started that returns the response from interaction 1, with the following changes:
- | headers |
+ Given a provider is started that returns the response from interaction 5, with the following changes:
+ | response headers |
| 'X-TEST: Compatibility' |
And a Pact file for interaction 5 is to be verified
When the verification is run
@@ -142,7 +142,7 @@ Feature: Basic HTTP provider
Scenario: Response with plain text body (negative case)
Given a provider is started that returns the response from interaction 6, with the following changes:
- | body |
+ | response body |
| Hello Compatibility Suite! |
And a Pact file for interaction 6 is to be verified
When the verification is run
@@ -157,7 +157,7 @@ Feature: Basic HTTP provider
Scenario: Response with JSON body (negative case)
Given a provider is started that returns the response from interaction 1, with the following changes:
- | body |
+ | response body |
| JSON: { "one": 100, "two": "b" } |
And a Pact file for interaction 1 is to be verified
When the verification is run
@@ -172,7 +172,7 @@ Feature: Basic HTTP provider
Scenario: Response with XML body (negative case)
Given a provider is started that returns the response from interaction 7, with the following changes:
- | body |
+ | response body |
| XML: <?xml version="1.0" encoding="UTF-8" ?><values><one>A</one></values> |
And a Pact file for interaction 7 is to be verified
When the verification is run
@@ -187,7 +187,7 @@ Feature: Basic HTTP provider
Scenario: Response with binary body (negative case)
Given a provider is started that returns the response from interaction 8, with the following changes:
- | body |
+ | response body |
| file: spider.jpg |
And a Pact file for interaction 8 is to be verified
When the verification is run
@@ -202,7 +202,7 @@ Feature: Basic HTTP provider
Scenario: Response with form post body (negative case)
Given a provider is started that returns the response from interaction 9, with the following changes:
- | body |
+ | response body |
| a=1&b=2&c=33&d=4 |
And a Pact file for interaction 9 is to be verified
When the verification is run
@@ -217,7 +217,7 @@ Feature: Basic HTTP provider
Scenario: Response with multipart body (negative case)
Given a provider is started that returns the response from interaction 10, with the following changes:
- | body |
+ | response body |
| file: multipart2-body.xml |
And a Pact file for interaction 10 is to be verified
When the verification is run