You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INFO -- : Cleared interactions for example "Pact::Consumer::MockService when more than one response has been mocked when the actual request matches more than one expected request returns an error response"
1
+
INFO -- : Cleared interactions for example "Pact::Consumer::MockService when more than one response has been mocked when the actual request matches one expected request returns the expected response"
2
2
INFO -- : Registered expected interaction GET /alligators
3
3
DEBUG -- : {
4
4
"description": "a request for alligators",
@@ -20,15 +20,16 @@ DEBUG -- : {
20
20
"name": "Mary"
21
21
}
22
22
]
23
-
}
23
+
},
24
+
"metadata": null
24
25
}
25
-
INFO -- : Registered expected interaction GET /alligators
26
+
INFO -- : Registered expected interaction GET /zebras
26
27
DEBUG -- : {
27
-
"description": "a request for alligators",
28
-
"providerState": "there are no alligators",
28
+
"description": "a request for zebras",
29
+
"providerState": "there are zebras",
29
30
"request": {
30
31
"method": "get",
31
-
"path": "/alligators",
32
+
"path": "/zebras",
32
33
"headers": {
33
34
"Accept": "application/json"
34
35
}
@@ -39,9 +40,12 @@ DEBUG -- : {
39
40
"Content-Type": "application/json"
40
41
},
41
42
"body": [
42
-
43
+
{
44
+
"name": "Xena Zebra"
45
+
}
43
46
]
44
-
}
47
+
},
48
+
"metadata": null
45
49
}
46
50
INFO -- : Received request GET /alligators
47
51
DEBUG -- : {
@@ -56,7 +60,46 @@ DEBUG -- : {
56
60
"Cookie": ""
57
61
}
58
62
}
59
-
ERROR -- : Multiple interactions found for GET /alligators:
63
+
INFO -- : Found matching response for GET /alligators
64
+
DEBUG -- : {
65
+
"status": 200,
66
+
"headers": {
67
+
"Content-Type": "application/json"
68
+
},
69
+
"body": [
70
+
{
71
+
"name": "Mary"
72
+
}
73
+
]
74
+
}
75
+
INFO -- : Received request GET /zebras
76
+
DEBUG -- : {
77
+
"method": "get",
78
+
"query": "",
79
+
"path": "/zebras",
80
+
"headers": {
81
+
"Https": "off",
82
+
"Content-Length": "0",
83
+
"Accept": "application/json",
84
+
"Host": "example.org",
85
+
"Cookie": ""
86
+
}
87
+
}
88
+
INFO -- : Found matching response for GET /zebras
89
+
DEBUG -- : {
90
+
"status": 200,
91
+
"headers": {
92
+
"Content-Type": "application/json"
93
+
},
94
+
"body": [
95
+
{
96
+
"name": "Xena Zebra"
97
+
}
98
+
]
99
+
}
100
+
INFO -- : Verifying - interactions matched for example "Pact::Consumer::MockService when more than one response has been mocked when the actual request matches one expected request returns the expected response"
101
+
INFO -- : Cleared interactions for example "Pact::Consumer::MockService when more than one response has been mocked when the actual request matches more than one expected request returns an error response"
102
+
INFO -- : Registered expected interaction GET /alligators
60
103
DEBUG -- : {
61
104
"description": "a request for alligators",
62
105
"providerState": "alligators exist",
@@ -77,8 +120,10 @@ DEBUG -- : {
77
120
"name": "Mary"
78
121
}
79
122
]
80
-
}
123
+
},
124
+
"metadata": null
81
125
}
126
+
INFO -- : Registered expected interaction GET /alligators
82
127
DEBUG -- : {
83
128
"description": "a request for alligators",
84
129
"providerState": "there are no alligators",
@@ -97,21 +142,23 @@ DEBUG -- : {
97
142
"body": [
98
143
99
144
]
145
+
},
146
+
"metadata": null
147
+
}
148
+
INFO -- : Received request GET /alligators
149
+
DEBUG -- : {
150
+
"method": "get",
151
+
"query": "",
152
+
"path": "/alligators",
153
+
"headers": {
154
+
"Https": "off",
155
+
"Content-Length": "0",
156
+
"Accept": "application/json",
157
+
"Host": "example.org",
158
+
"Cookie": ""
100
159
}
101
160
}
102
-
WARN -- : Verifying - actual interactions do not match expected interactions for example "Pact::Consumer::MockService when more than one response has been mocked when the actual request matches more than one expected request returns an error response".
103
-
Missing requests:
104
-
GET /alligators
105
-
GET /alligators
106
-
107
-
108
-
WARN -- : Missing requests:
109
-
GET /alligators
110
-
GET /alligators
111
-
112
-
113
-
INFO -- : Cleared interactions for example "Pact::Consumer::MockService when more than one response has been mocked when the actual request matches one expected request returns the expected response"
114
-
INFO -- : Registered expected interaction GET /alligators
161
+
ERROR -- : Multiple interactions found for GET /alligators:
115
162
DEBUG -- : {
116
163
"description": "a request for alligators",
117
164
"providerState": "alligators exist",
@@ -132,15 +179,15 @@ DEBUG -- : {
132
179
"name": "Mary"
133
180
}
134
181
]
135
-
}
182
+
},
183
+
"metadata": null
136
184
}
137
-
INFO -- : Registered expected interaction GET /zebras
138
185
DEBUG -- : {
139
-
"description": "a request for zebras",
140
-
"providerState": "there are zebras",
186
+
"description": "a request for alligators",
187
+
"providerState": "there are no alligators",
141
188
"request": {
142
189
"method": "get",
143
-
"path": "/zebras",
190
+
"path": "/alligators",
144
191
"headers": {
145
192
"Accept": "application/json"
146
193
}
@@ -151,60 +198,19 @@ DEBUG -- : {
151
198
"Content-Type": "application/json"
152
199
},
153
200
"body": [
154
-
{
155
-
"name": "Xena Zebra"
156
-
}
201
+
157
202
]
158
-
}
159
-
}
160
-
INFO -- : Received request GET /alligators
161
-
DEBUG -- : {
162
-
"method": "get",
163
-
"query": "",
164
-
"path": "/alligators",
165
-
"headers": {
166
-
"Https": "off",
167
-
"Content-Length": "0",
168
-
"Accept": "application/json",
169
-
"Host": "example.org",
170
-
"Cookie": ""
171
-
}
172
-
}
173
-
INFO -- : Found matching response for GET /alligators
174
-
DEBUG -- : {
175
-
"status": 200,
176
-
"headers": {
177
-
"Content-Type": "application/json"
178
-
},
179
-
"body": [
180
-
{
181
-
"name": "Mary"
182
-
}
183
-
]
184
-
}
185
-
INFO -- : Received request GET /zebras
186
-
DEBUG -- : {
187
-
"method": "get",
188
-
"query": "",
189
-
"path": "/zebras",
190
-
"headers": {
191
-
"Https": "off",
192
-
"Content-Length": "0",
193
-
"Accept": "application/json",
194
-
"Host": "example.org",
195
-
"Cookie": ""
196
-
}
197
-
}
198
-
INFO -- : Found matching response for GET /zebras
199
-
DEBUG -- : {
200
-
"status": 200,
201
-
"headers": {
202
-
"Content-Type": "application/json"
203
203
},
204
-
"body": [
205
-
{
206
-
"name": "Xena Zebra"
207
-
}
208
-
]
204
+
"metadata": null
209
205
}
210
-
INFO -- : Verifying - interactions matched for example "Pact::Consumer::MockService when more than one response has been mocked when the actual request matches one expected request returns the expected response"
206
+
WARN -- : Verifying - actual interactions do not match expected interactions for example "Pact::Consumer::MockService when more than one response has been mocked when the actual request matches more than one expected request returns an error response".
INFO -- : Cleared interactions for example "Pact::Consumer::MockService when a response has been mocked when the actual request does not match the expected request returns an error response"
1
+
INFO -- : Cleared interactions for example "Pact::Consumer::MockService when a response has been mocked when the actual request matches the expected request returns the expected response"
2
2
INFO -- : Registered expected interaction GET /alligators
3
3
DEBUG -- : {
4
4
"description": "a request for alligators",
@@ -20,7 +20,8 @@ DEBUG -- : {
20
20
"name": "Mary"
21
21
}
22
22
]
23
-
}
23
+
},
24
+
"metadata": null
24
25
}
25
26
INFO -- : Received request GET /alligators
26
27
DEBUG -- : {
@@ -30,41 +31,25 @@ DEBUG -- : {
30
31
"headers": {
31
32
"Https": "off",
32
33
"Content-Length": "0",
33
-
"Accept": "application/xml",
34
+
"Accept": "application/json",
34
35
"Host": "example.org",
35
36
"Cookie": ""
36
37
}
37
38
}
38
-
ERROR -- : No matching interaction found for GET /alligators
39
-
ERROR -- : Interaction diffs for that route:
40
-
ERROR -- : Diff with interaction: "a request for alligators" given "alligators exist"
41
-
Diff
42
-
--------------------------------------
43
-
Key: - is expected
44
-
+ is actual
45
-
Matching keys and values are not shown
46
-
47
-
{
48
-
"headers": {
49
-
- "Accept": "application/json"
50
-
+ "Accept": "application/xml"
51
-
}
52
-
}
53
-
54
-
Description of differences
55
-
--------------------------------------
56
-
* Expected "application/json" but got "application/xml" at $.headers.Accept
57
-
58
-
WARN -- : Verifying - actual interactions do not match expected interactions for example "Pact::Consumer::MockService when a response has been mocked when the actual request does not match the expected request returns an error response".
59
-
Incorrect requests:
60
-
GET /alligators (request headers did not match)
61
-
62
-
63
-
WARN -- : Incorrect requests:
64
-
GET /alligators (request headers did not match)
65
-
66
-
67
-
INFO -- : Cleared interactions for example "Pact::Consumer::MockService when a response has been mocked when the actual request matches the expected request returns the expected response"
39
+
INFO -- : Found matching response for GET /alligators
40
+
DEBUG -- : {
41
+
"status": 200,
42
+
"headers": {
43
+
"Content-Type": "application/json"
44
+
},
45
+
"body": [
46
+
{
47
+
"name": "Mary"
48
+
}
49
+
]
50
+
}
51
+
INFO -- : Verifying - interactions matched for example "Pact::Consumer::MockService when a response has been mocked when the actual request matches the expected request returns the expected response"
52
+
INFO -- : Cleared interactions for example "Pact::Consumer::MockService when a response has been mocked when the actual request does not match the expected request returns an error response"
68
53
INFO -- : Registered expected interaction GET /alligators
69
54
DEBUG -- : {
70
55
"description": "a request for alligators",
@@ -86,7 +71,8 @@ DEBUG -- : {
86
71
"name": "Mary"
87
72
}
88
73
]
89
-
}
74
+
},
75
+
"metadata": null
90
76
}
91
77
INFO -- : Received request GET /alligators
92
78
DEBUG -- : {
@@ -96,21 +82,37 @@ DEBUG -- : {
96
82
"headers": {
97
83
"Https": "off",
98
84
"Content-Length": "0",
99
-
"Accept": "application/json",
85
+
"Accept": "application/xml",
100
86
"Host": "example.org",
101
87
"Cookie": ""
102
88
}
103
89
}
104
-
INFO -- : Found matching response for GET /alligators
105
-
DEBUG -- : {
106
-
"status": 200,
107
-
"headers": {
108
-
"Content-Type": "application/json"
109
-
},
110
-
"body": [
111
-
{
112
-
"name": "Mary"
113
-
}
114
-
]
115
-
}
116
-
INFO -- : Verifying - interactions matched for example "Pact::Consumer::MockService when a response has been mocked when the actual request matches the expected request returns the expected response"
90
+
ERROR -- : No matching interaction found for GET /alligators
91
+
ERROR -- : Interaction diffs for that route:
92
+
ERROR -- : Diff with interaction: "a request for alligators" given "alligators exist"
93
+
Diff
94
+
--------------------------------------
95
+
Key: - is expected
96
+
+ is actual
97
+
Matching keys and values are not shown
98
+
99
+
{
100
+
"headers": {
101
+
- "Accept": "application/json"
102
+
+ "Accept": "application/xml"
103
+
}
104
+
}
105
+
106
+
Description of differences
107
+
--------------------------------------
108
+
* Expected "application/json" but got "application/xml" at $.headers.Accept
109
+
110
+
WARN -- : Verifying - actual interactions do not match expected interactions for example "Pact::Consumer::MockService when a response has been mocked when the actual request does not match the expected request returns an error response".
0 commit comments