Skip to content

Commit 19d69a6

Browse files
authored
chore: update petstore examples (#78)
1 parent 3c2ba81 commit 19d69a6

File tree

10 files changed

+3
-1242
lines changed

10 files changed

+3
-1242
lines changed

src/__tests__/fixtures/example-petstore-2/baseline.json

Lines changed: 0 additions & 971 deletions
This file was deleted.

src/__tests__/fixtures/example-petstore-2/results.json

Lines changed: 0 additions & 233 deletions
This file was deleted.

src/__tests__/fixtures/example-petstore-1/baseline.json renamed to src/__tests__/fixtures/example-petstore-invalid/baseline.json

File renamed without changes.
File renamed without changes.

src/__tests__/fixtures/example-petstore-1/pact.json renamed to src/__tests__/fixtures/example-petstore-invalid/pact.json

File renamed without changes.

src/__tests__/fixtures/example-petstore-1/results.json renamed to src/__tests__/fixtures/example-petstore-invalid/results.json

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
File renamed without changes.

src/__tests__/fixtures/example-petstore-2/pact.json renamed to src/__tests__/fixtures/example-petstore-valid/pact.json

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,53 +6,17 @@
66
"name": "petstore-api"
77
},
88
"interactions": [
9-
{
10-
"description": "a request to create a pet (failing as the spec does not explicitly define this scenario)",
11-
"request": {
12-
"method": "POST",
13-
"path": "/pet",
14-
"headers": {
15-
"api_key": "1234",
16-
"Accept": "application/json",
17-
"Content-Type": "application/json"
18-
},
19-
"body": {
20-
"id": 0,
21-
"category": {
22-
"id": 0,
23-
"name": "string"
24-
},
25-
"name": "doggie",
26-
"photoUrls": ["string"],
27-
"tags": [
28-
{
29-
"id": 0,
30-
"name": "string"
31-
}
32-
],
33-
"status": "available"
34-
}
35-
},
36-
"response": {
37-
"status": 201
38-
}
39-
},
409
{
4110
"description": "a request to create a pet with invalid body",
4211
"request": {
4312
"method": "POST",
4413
"path": "/pet",
4514
"headers": {
46-
"api_key": "1234",
47-
"Accept": "application/json",
4815
"Content-Type": "application/json"
4916
}
5017
},
5118
"response": {
52-
"status": 405,
53-
"headers": {
54-
"Content-Type": "application/json"
55-
}
19+
"status": 405
5620
}
5721
},
5822
{
@@ -111,7 +75,6 @@
11175
"method": "POST",
11276
"path": "/store/order",
11377
"headers": {
114-
"api_key": "1234",
11578
"Accept": "application/json",
11679
"Content-Type": "application/json"
11780
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

0 commit comments

Comments
 (0)