Skip to content

Releases

Add bad request to possible results

Choose a tag to compare

@designatednerd designatednerd released this 21 Jun 13:13

See #43 for details.

Basic Swift 5 Upgrade

Choose a tag to compare

@designatednerd designatednerd released this 01 Apr 08:55

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.

Choose a tag to compare

@designatednerd designatednerd released this 23 May 10:21
10c503c

See #33 for further details.

Add logging functionality

Choose a tag to compare

@designatednerd designatednerd released this 09 May 11:33
1a08205

Please see updates to the README for instructions on usage

Return errors when no response (except in case of cancellation)

Choose a tag to compare

@designatednerd designatednerd released this 08 May 14:54
1a9a728
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

Choose a tag to compare

@designatednerd designatednerd released this 08 May 08:27
ca230d5

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

Choose a tag to compare

@designatednerd designatednerd released this 04 May 13:53
86c05f9
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

Choose a tag to compare

@designatednerd designatednerd released this 04 Jan 12:48
5919b6f
  • 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)

Choose a tag to compare

@marijnschilling marijnschilling released this 15 Aug 08:35
* 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