Repository navigation
Releases
Releases · bakkenbaeck/Teapot
Add bad request to possible results
See #43 for details.
Basic Swift 5 Upgrade
This includes basic updates for Swift 5 compatibility. Further changes (such as using Result) will come in a new version.
Fix overridden requests dying on header check.
See #33 for further details.
Add logging functionality
Please see updates to the README for instructions on usage
Return errors when no response (except in case of cancellation)
Actually return an error when there's no response (#32) * Return an error when no response is received. * Don't fire completion if the request was cancelled. * it's an error response, not a fake one * add newline
Send the data we received
This fixes an issue where Data handed to a RequestParameter would be decoded and re-encoded if it was JSON, sometimes not in the original order it was handed to Teapot. This would break signature verification if the data was being used to sign the request.
Add ability to check headers to MockTeapot
Add header validation to MockTeapot if headers are provided (#29) * open project with Xcode 9.3 * add ability to check for presence of certain headers * add tests for checking headers * add additional tests around extra headers and clearing headers * document header stuff * better commenting and naming around what we just got * don't inline comments on one-line returns * more consistent handling of cancellation check
1.3.0
- Add handling of Basic Auth
- Make sure when an endpoint is overridden an error is not returned for the overridden endpoint
- More documentation on MockTeapot
1.0: Mocking (#7)
* Add test for mocking * Create a mock teapot * Failing test * [WIP] Add json file * Return mocked response from json file * Load bundle from test target * remove testable import * Make the class open * make the init public * [WIP] Add filename to error * Cealnup and get error enum to be recognized * Don't do async testing, the whole point of mocks is that its sync * Make test for invalid json error * And discover that im using the wrong name for it! * Swift format. * Add error description to error * Add documentation * Update tests * Implement feedback