-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add ruby/rust impl based DELETE reqs with body
- Loading branch information
Showing
5 changed files
with
200 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
pacts_ruby/pactflow-example-consumer-python-pactflow-example-provider-python.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"consumer": { | ||
"name": "pactflow-example-consumer-python" | ||
}, | ||
"provider": { | ||
"name": "pactflow-example-provider-python" | ||
}, | ||
"interactions": [ | ||
{ | ||
"description": "a request to get a product", | ||
"providerState": "a product with ID 10 exists", | ||
"request": { | ||
"method": "GET", | ||
"path": "/product/10" | ||
}, | ||
"response": { | ||
"status": 200, | ||
"headers": { | ||
}, | ||
"body": { | ||
"id": "27", | ||
"name": "Margharita", | ||
"type": "Pizza" | ||
}, | ||
"matchingRules": { | ||
"$.body": { | ||
"match": "type" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"description": "a request to delete a product", | ||
"providerState": "a product with ID 10 exists", | ||
"request": { | ||
"method": "DELETE", | ||
"path": "/product/10", | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"body": { | ||
"id": "27" | ||
}, | ||
"matchingRules": { | ||
"$.body": { | ||
"match": "type" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 204, | ||
"headers": { | ||
} | ||
} | ||
} | ||
], | ||
"metadata": { | ||
"pactSpecification": { | ||
"version": "2.0.0" | ||
} | ||
} | ||
} |
104 changes: 104 additions & 0 deletions
104
pacts_rust/pactflow-example-consumer-python-v3-pactflow-example-provider-python-v3.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{ | ||
"consumer": { | ||
"name": "pactflow-example-consumer-python-v3" | ||
}, | ||
"interactions": [ | ||
|
||
{ | ||
"description": "a request to get a product", | ||
"pending": false, | ||
"providerStates": [ | ||
{ | ||
"name": "a product with ID 10 exists" | ||
} | ||
], | ||
"request": { | ||
"method": "GET", | ||
"path": "/product/10" | ||
}, | ||
"response": { | ||
"body": { | ||
"content": { | ||
"id": "27", | ||
"name": "Margharita", | ||
"type": "Pizza" | ||
}, | ||
"contentType": "application/json", | ||
"encoded": false | ||
}, | ||
"headers": { | ||
"Content-Type": [ | ||
"application/json" | ||
] | ||
}, | ||
"matchingRules": { | ||
"body": { | ||
"$": { | ||
"combine": "AND", | ||
"matchers": [ | ||
{ | ||
"match": "type" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"status": 200 | ||
}, | ||
"type": "Synchronous/HTTP" | ||
}, | ||
{ | ||
"description": "a request to delete a product", | ||
"pending": false, | ||
"providerStates": [ | ||
{ | ||
"name": "a product with ID 10 exists" | ||
} | ||
], | ||
"request": { | ||
"body": { | ||
"content": { | ||
"id": "27" | ||
}, | ||
"contentType": "application/json", | ||
"encoded": false | ||
}, | ||
"headers": { | ||
"Content-Type": [ | ||
"application/json" | ||
] | ||
}, | ||
"matchingRules": { | ||
"body": { | ||
"$": { | ||
"combine": "AND", | ||
"matchers": [ | ||
{ | ||
"match": "type" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"method": "DELETE", | ||
"path": "/product/10" | ||
}, | ||
"response": { | ||
"status": 204 | ||
}, | ||
"type": "Synchronous/HTTP" | ||
} | ||
], | ||
"metadata": { | ||
"pactRust": { | ||
"ffi": "0.4.22", | ||
"models": "1.2.3" | ||
}, | ||
"pactSpecification": { | ||
"version": "4.0" | ||
} | ||
}, | ||
"provider": { | ||
"name": "pactflow-example-provider-python-v3" | ||
} | ||
} |