Skip to content

Commit

Permalink
test: add TLS tests matrix
Browse files Browse the repository at this point in the history
Add a test that goes through the whole matrix of:
- command line options (--enable-ssl*)
- secureOptions
- secureProtocols

and makes sure that compatible test setups actually work as expected.

The test works by spawning two processes for each test case: one client
and one server. The test passes if a SSL/TLS connection from the client
to the server is successful and the test case was supposed to pass, or
if the connection couldn't be established and the test case was supposed
to fail.

The test is currently located in the directory 'test/external' because
it has external dependencies.

Cherry-picked-from: nodejs/node-v0.x-archive@8d045a3
  • Loading branch information
Julien Gilli authored and piscisaureus committed Jan 13, 2015
1 parent f767226 commit 57dea9e
Show file tree
Hide file tree
Showing 3 changed files with 745 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/external/ssl-options/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
15 changes: 15 additions & 0 deletions test/external/ssl-options/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "ssl-options-tests",
"version": "1.0.0",
"description": "",
"main": "test.js",
"scripts": {
"test": "node test.js"
},
"author": "",
"license": "MIT",
"dependencies": {
"async": "^0.9.0",
"debug": "^2.1.0"
}
}
Loading

0 comments on commit 57dea9e

Please sign in to comment.