-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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: update test to use fixtures #15844
Closed
dinophile
wants to merge
5
commits into
nodejs:master
from
dinophile:carrowsmith/test-tls-multi-key.js
Closed
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f5a085e
test: replaced common.fixturesDir with common.fixtures
dinophile 8110afd
test: added fixtures.path() to const options
dinophile 6dd3bb7
test: replced fixturesDir with fixtures.readKey()
dinophile 6e84d1f
fixed waywrad characters
dinophile 391f0f1
moved fixtures declaration to after common.hasCrypto check
dinophile File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright Joyent, Inc. and other Node contributors. | ||
no// Copyright Joyent, Inc. and other Node contributors. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a | ||
// copy of this software and associated documentation files (the | ||
|
@@ -21,21 +21,21 @@ | |
|
||
'use strict'; | ||
const common = require('../common'); | ||
const fixtures = require('../common/fixtures'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: would you mind moving this after the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not at all! Done! |
||
if (!common.hasCrypto) | ||
common.skip('missing crypto'); | ||
|
||
const assert = require('assert'); | ||
const tls = require('tls'); | ||
const fs = require('fs'); | ||
|
||
const options = { | ||
key: [ | ||
fs.readFileSync(`${common.fixturesDir}/keys/ec-key.pem`), | ||
fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | ||
fixtures.readKey('ec-key.pem'), | ||
fixtures.readKey('agent1-key.pem'), | ||
], | ||
cert: [ | ||
fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`), | ||
fs.readFileSync(`${common.fixturesDir}/keys/ec-cert.pem`) | ||
fixtures.readKey('agent1-cert.pem'), | ||
fixtures.readKey('ec-cert.pem'), | ||
] | ||
}; | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
unexpected manual error? please correct it
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.
Oh dear...trackpad issues! Thanks! Fixed!