-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Test https agent disable session #15901
Test https agent disable session #15901
Conversation
|
||
const TOTAL_REQS = 2; | ||
|
||
const options = { | ||
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | ||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) | ||
key: fixtures.readSync('/keys/agent1-key.pem'), |
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.
We also can use fixtures.readFixtureKey
.
+ key: fixtures.readFixtureKey('agent1-key.pem'),
- key: fixtures.readSync('/keys/agent1-key.pem'),
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.
in the fixtures.js the readFixturesKey is exported as readKey. I have updated the branch
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | ||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) | ||
key: fixtures.readKey('/keys/agent1-key.pem'), | ||
cert: fixtures.readSync('/keys/agent1-cert.pem') |
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.
The keys directory should not be used anymore. You only need the filename.
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.
These are also using two different methods... it should be:
key: fixtures.readKey('agent1-key.pem'),
cert: fixtures.readKey('agent1-cert.pem')
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.
oops! didn't see that @joyeecheung had already pointed that out below :-)
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | ||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) | ||
key: fixtures.readKey('/keys/agent1-key.pem'), | ||
cert: fixtures.readSync('/keys/agent1-cert.pem') |
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.
Can you change these to:
key: fixtures.readKey('agent1-key.pem'),
cert: fixtures.readKey('agent1-cert.pem'),
?
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.
LGTM once @joyeecheung's nit is addressed.
Ping @irynaricker |
Hi @irynaricker, it looks like a few tiny changes are required to land this pull request. Would you still be interested in getting this done? Let me know if any pointers are needed, and thanks for helping us improve Node! |
Replace usage of common.fixturesDir with fixtures module.
I went ahead and fixed the last few nits. Hope that's OK. PTAL. This should be good to go. CI: https://ci.nodejs.org/job/node-test-pull-request/11059/ @irynaricker If you have any feedback on what we could or should have done differently to make this go smoother for you, I would love to hear it. (My email is in my GitHub profile.) If this was just a case of "got busy" or "lost interest", then cool. But if it was a case of "got frustrated", it would be helpful for me to know that. |
Replace usage of common.fixturesDir with fixtures module in test-https-agent-disable-session-reuse.js. PR-URL: nodejs#15901 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Landed in 1906df1. Thanks for the contribution! 🎉 |
@irynaricker The email address you used to commit the changes does not match your GitHub email address, so the commit cannot be associated with your account. Please add the email address you used to commit the changes to your account in the GitHub settings if you would like this change to be linked to your profile. |
Replace usage of common.fixturesDir with fixtures module in test-https-agent-disable-session-reuse.js. PR-URL: #15901 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Replace usage of common.fixturesDir with fixtures module in test-https-agent-disable-session-reuse.js. PR-URL: #15901 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Replace usage of common.fixturesDir with fixtures module in test-https-agent-disable-session-reuse.js. PR-URL: #15901 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Replace usage of common.fixturesDir with fixtures module in test-https-agent-disable-session-reuse.js. PR-URL: nodejs/node#15901 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Replace usage of common.fixturesDir with fixtures module in test-https-agent-disable-session-reuse.js. PR-URL: nodejs/node#15901 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Replace usage of common.fixturesDir with fixtures module in test-https-agent-disable-session-reuse.js. PR-URL: #15901 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Replace usage of common.fixturesDir with fixtures module in test-https-agent-disable-session-reuse.js. PR-URL: #15901 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Replace usage of common.fixturesDir with fixtures module in test-https-agent-disable-session-reuse.js. PR-URL: #15901 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Replace usage of common.fixturesDir with fixtures module in test-https-agent-disable-session-reuse.js. PR-URL: nodejs/node#15901 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)