-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Stubber is working with http4s18 Stub implementation. Tests brok…
…en though, other http4s version not updated.
- Loading branch information
Dave Smith
committed
Apr 20, 2018
1 parent
0475b70
commit 031a390
Showing
12 changed files
with
150 additions
and
70 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,61 @@ | ||
{ | ||
"provider" : { | ||
"name" : "Provider" | ||
}, | ||
"consumer" : { | ||
"name" : "Consumer" | ||
}, | ||
"interactions" : [ | ||
{ | ||
"request" : { | ||
"method" : "GET", | ||
"path" : "/auth_token", | ||
"matchingRules" : { | ||
"$.headers.Name" : { | ||
"match" : "regex", | ||
"regex" : "^([a-zA-Z]+)$" | ||
} | ||
}, | ||
"headers" : { | ||
"Accept" : "application/json", | ||
"Name" : "Bob" | ||
} | ||
}, | ||
"description" : "Fetching least secure auth token ever", | ||
"response" : { | ||
"status" : 202, | ||
"headers" : { | ||
"Content-Type" : "application/json; charset=UTF-8" | ||
}, | ||
"body" : { | ||
"token" : "abcABC123" | ||
}, | ||
"matchingRules" : { | ||
"$.body.token" : { | ||
"match" : "regex", | ||
"regex" : "^([a-zA-Z0-9]+)$" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"request" : { | ||
"method" : "GET", | ||
"path" : "/results" | ||
}, | ||
"description" : "Fetching results", | ||
"response" : { | ||
"status" : 200, | ||
"body" : { | ||
"count" : 3, | ||
"results" : [ | ||
"Bob", | ||
"Fred", | ||
"Harry" | ||
] | ||
} | ||
}, | ||
"providerState" : "Results: Bob, Fred, Harry" | ||
} | ||
] | ||
} |
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
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