-
Notifications
You must be signed in to change notification settings - Fork 10
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
integration tests #415
integration tests #415
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid I'm seeing a number of high-level issues here, I'm not quite sure what's happened.
The test/intergration.js
file needs renaming to test/integration.js
(there's only one R in integration). This is on the base branch and affects many of our branches, but let's get it sorted out here and merge it down.
I didn't think you wanted to use the koa server, but at the moment the tests seem to rely on it? Also at the moment we're declaring one set of servers in intergration.js
, but also importing a different set of servers in test/helpers/server.js
. So I'm a little confused about the intention. This is the sort of thing where a little comment in the PR description can help dispel confusion and make reviewing a little easier.
There is too much logging in the test code. Logging is useful while writing tests but it's really annoying in CI or when doing other work because the test output is spammed with meaningless stuff. So I'd really like to tighten up the use of logging here.
Also, all integration tests are failing locally. CI is failing too.
@josephjclark I don't know why the CI is failing because locally all test are passing |
it turns out in ubuntu any port < 1024 needs root permission
It turns out in ubuntu any |
@mtuchi Great catch on the port number, I had no idea! What about koa and http - do we need both server implementations? |
remove koa implementation
Hiya @josephjclark i have removed the koa implementation, and use the nodejs https module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci!
Summary
Add integration tests. These tests are using nodejs http and https modules for creating a server that is used in tests.
The http server is used for testing redirects, while the https server is used for testing the
tls
support.In addition the https server is also using koa and koa-sslify packages.
You will notice a
test/helpers/
directory which containcerts.js
. These are the certificates that we are using for the https server for testingRef #402 #406
Review Checklist
Before merging, the reviewer should check the following items:
dev only changes don't need a changeset.