New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket Integration Tests #778
Websocket Integration Tests #778
Conversation
Added the plugin source to the project and changed the way the plugin handles auth.
Also, fixed 'should not open a connection when has an exception in connect function'. doAction now returns a promise.
…ess-offline into websocket-fixes-authorizer
… into websocket-fixes-authorizer
… into websocket-fixes-authorizer # Conflicts: # manual_test_websocket/RouteSelection/scripts/deploy_to_aws.sh # manual_test_websocket/main/handler.js # manual_test_websocket/main/scripts/deploy_to_offline.sh # manual_test_websocket/main/test/e2e/ws.e2e.js # manual_test_websocket/main/test/support/WebSocketTester.js # package-lock.json # src/ApiGatewayWebSocket.js # src/__tests__/manual/websocket/RouteSelection/handler.js # src/__tests__/manual/websocket/RouteSelection/scripts/deploy_to_aws.sh # src/__tests__/manual/websocket/RouteSelection/scripts/deploy_to_offline.sh # src/__tests__/manual/websocket/RouteSelection/scripts/serverless.offline.yml # src/__tests__/manual/websocket/RouteSelection/test/e2e/ws.e2e.js # src/__tests__/manual/websocket/RouteSelection/test/support/WebSocketTester.js # src/__tests__/manual/websocket/main/scripts/deploy_to_aws.sh # src/__tests__/manual/websocket/main/scripts/deploy_to_offline.sh # src/__tests__/manual/websocket/main/test/support/WebSocketTester.js # src/__tests__/manual/websocket/scripts/deploy_to_aws.sh # src/__tests__/manual/websocket/scripts/deploy_to_offline.sh # src/__tests__/manual/websocket/test/support/WebSocketTester.js # src/index.js # src/websocketHelpers.js
… into websocket-fixes-authorizer # Conflicts: # src/ApiGatewayWebSocket.js
… into websocket-fixes-authorizer
… into websocket-fixes-authorizer
Support authorizers.
fix a few typos
… into websocket-fixes-authorizer
… into websocket-fixes-authorizer
… into websocket-fixes-authorizer
Depolyment and tests are run based on category.
… into websocket-fixes-authorizer
… into websocket-fixes-authorizer
This PR continues where #732 left-off. Before continuing with this PR, I'll wait for #732 to be merged into master (via your branch). This updated PR, in comparison to #732, contains only improvements to WebSocket testing. I've simplified testing by removing the need to use So if you want, you can merge this PR to your branch and see if WebSocket testing works for you. In order to run the tests, you now only have to go to
You can view logs in If you still have problems, I'll try to help. |
@computerpunc I'm still planning on pulling this in! Mind if I re-open? |
826a135
to
d0695ce
Compare
If there is no planed refactoring effort, how about I open a new PR based on alpha and add there WebSocket integration tests? |
hey @computerpunc ! that would be absolutely fantastic! I'm still refactoring, but I leave the test folder structure alone until your PR is merged, I promise! |
Thanks
Will do |
This PR will continue in #814 |
Currently, WebSocket has 35 tests that are not part of
npm run test
.This PR will make the WebSocket tests be part of the regular testing flow.
To Do:
npm link
in order use current branchserverless-offline
in testing.__test__/manual/websocket
to__test__/integration/websocket
.jest
instead ofmocha
as a testing platform.