Created
November 6, 2016 05:07
-
-
Save mefellows/74e4197901294e39314e86d50b4f614f to your computer and use it in GitHub Desktop.
Pact output example (v2)
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
{ | |
"consumer": { | |
"name": "MyConsumer" | |
}, | |
"provider": { | |
"name": "MyProvider" | |
}, | |
"interactions": [ | |
{ | |
"description": "Some name for the test", | |
"provider_state": "Some state", | |
"request": { | |
"method": "GET", | |
"path": "/foobar", | |
"headers": { | |
"Content-Type": "application/json" | |
}, | |
"body": { | |
"s": "foo" | |
} | |
}, | |
"response": { | |
"status": 200, | |
"headers": { | |
"Content-Type": "application/json" | |
}, | |
"body": { | |
"s": "bar" | |
} | |
} | |
}, | |
{ | |
"description": "Some name for the test", | |
"provider_state": "Some state2", | |
"request": { | |
"method": "GET", | |
"path": "/bazbat" | |
}, | |
"response": { | |
"status": 200, | |
"headers": { | |
} | |
} | |
} | |
], | |
"metadata": { | |
"pactSpecificationVersion": "2.0.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment