ion
ion copied to clipboard
Test websocket consumers
trafficstars
What part of the codebase needs to be tested
WebSocket consumers (wss://)
Sample test cases that should definitely be covered
- Close incoming webSocket connections that don't match a route.
- Test
/busconnections as an unauthenticated user - Test
/busconnections as a random user - Test connections to
/bus- Unassigning a bus
- Assigning a bus
- Listing buses
Related to https://github.com/tjcsl/ion/pull/915
In addition, we should probably test whether CancelledErrors are being trigerred.