messagebird / go-rest-api

MessageBird's REST API for Go
BSD 2-Clause "Simplified" License
120 stars 60 forks source link

Create integration test for generated request using test token. #24

Open azmb opened 6 years ago

azmb commented 6 years ago

In order to avoid bugs like: https://github.com/messagebird/go-rest-api/pull/23 we need integration test that will talk to Messagebird API. We need to compare response data to requested data.

epels commented 6 years ago

Although it does not actually hit the API, this PR adds support for asserting a certain endpoint was called (method + path). Additionally, it allows for inspecting request bodies generated by the client.