DoSomething/gateway

Add more unit tests.

Opened this issue · 1 comments

We should try to get more test coverage on Gateway! Some things that come to mind:

  • Testing client authenticated requests
  • Add tests for Northstar client's public API:
    • user index
    • get user (by term)
    • update user
  • Testing user authenticated requests
  • Testing error handling for invalidated refresh tokens
  • Testing if invalid scopes or credential errors are handled properly
  • Testing that JSON responses are serialized into response classes properly
  • Unit testing the response classes with fake data (independent of HTTP responses)
  • Add tests for the ForwardsTransactionIds trait

🚥