-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split HTTPMockProvider into separate v2/3 versions
- Loading branch information
Showing
16 changed files
with
431 additions
and
134 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
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,63 @@ | ||
{ | ||
"consumer": { | ||
"name": "consumer" | ||
}, | ||
"interactions": [ | ||
{ | ||
"description": "A request to do a foo", | ||
"request": { | ||
"body": { | ||
"name": "billy" | ||
}, | ||
"headers": { | ||
"Authorization": "Bearer 1234", | ||
"Content-Type": "application/json" | ||
}, | ||
"matchingRules": { | ||
"$.body.name": { | ||
"match": "type" | ||
} | ||
}, | ||
"method": "POST", | ||
"path": "/foobar" | ||
}, | ||
"response": { | ||
"body": { | ||
"dateTime": "2020-01-01", | ||
"lastName": "LastName", | ||
"name": "FirstName" | ||
}, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"matchingRules": { | ||
"$.body.dateTime": { | ||
"match": "regex", | ||
"regex": "[0-9\\-]+" | ||
}, | ||
"$.body.lastName": { | ||
"match": "type" | ||
}, | ||
"$.body.name": { | ||
"match": "type" | ||
} | ||
}, | ||
"status": 200 | ||
} | ||
} | ||
], | ||
"metadata": { | ||
"pactGo": { | ||
"version": "v1.4.3" | ||
}, | ||
"pactRust": { | ||
"version": "0.6.3" | ||
}, | ||
"pactSpecification": { | ||
"version": "2.0.0" | ||
} | ||
}, | ||
"provider": { | ||
"name": "provider" | ||
} | ||
} |
Binary file not shown.
Oops, something went wrong.