Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Add tests for websocket routes #38

Merged
merged 5 commits into from
Sep 9, 2019
Merged

Add tests for websocket routes #38

merged 5 commits into from
Sep 9, 2019

Conversation

codesections
Copy link
Contributor

This PR adds tests for the websocket routes. In combination with #37, this closes #27—all tests have now been replaced with unit tests. Specifically, every flodgatt contains 54 tests that test every possible route, both SSE and WS. These tests ensure that each request is either rejected (if not authorized) or is correctly parsed into a User that is passed on to ClientAgent.

We do not yet have tests for the functionality in the ClientAgent or Receiver—that is, we aren't testing what we do with the User once it is generated. But that is the obvious next step in increasing testing coverage.

This commit refactors how SSE requests are handled to bring them into
line with how WS requests are handled and increase consistency.
Bump version and update name from ragequit to flodgatt.
@codesections codesections merged commit ecfdda0 into master Sep 9, 2019
@codesections codesections deleted the ws-testing branch September 9, 2019 17:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor tests as pure unit tests
1 participant