Skip to content

Commit c82023a

Browse files
reasonablytallBridgeAR
authored andcommitted
test: remove uneeded agent keypair in fixtures/
PR-URL: #27962 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 74e6109 commit c82023a

7 files changed

+11
-59
lines changed

test/fixtures/agent.crt

-21
This file was deleted.

test/fixtures/agent.key

-27
This file was deleted.

test/parallel/test-tls-securepair-server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const net = require('net');
3333
const spawn = require('child_process').spawn;
3434
const fixtures = require('../common/fixtures');
3535

36-
const key = fixtures.readSync('agent.key').toString();
37-
const cert = fixtures.readSync('agent.crt').toString();
36+
const key = fixtures.readKey('rsa_private.pem');
37+
const cert = fixtures.readKey('rsa_cert.crt');
3838

3939
function log(a) {
4040
console.error(`***server*** ${a}`);

test/parallel/test-tls-session-cache.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ doTest({ tickets: false }, function() {
4141
});
4242

4343
function doTest(testOptions, callback) {
44-
const key = fixtures.readSync('agent.key');
45-
const cert = fixtures.readSync('agent.crt');
44+
const key = fixtures.readKey('rsa_private.pem');
45+
const cert = fixtures.readKey('rsa_cert.crt');
4646
const options = {
4747
key,
4848
cert,
@@ -101,8 +101,8 @@ function doTest(testOptions, callback) {
101101
'-tls1',
102102
'-connect', `localhost:${this.address().port}`,
103103
'-servername', 'ohgod',
104-
'-key', fixtures.path('agent.key'),
105-
'-cert', fixtures.path('agent.crt'),
104+
'-key', fixtures.path('keys/rsa_private.pem'),
105+
'-cert', fixtures.path('keys/rsa_cert.crt'),
106106
'-reconnect'
107107
].concat(testOptions.tickets ? [] : '-no_ticket');
108108

test/parallel/test-tls-ticket-cluster.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ if (cluster.isMaster) {
9494
return;
9595
}
9696

97-
const key = fixtures.readSync('agent.key');
98-
const cert = fixtures.readSync('agent.crt');
97+
const key = fixtures.readKey('rsa_private.pem');
98+
const cert = fixtures.readKey('rsa_cert.crt');
9999

100100
const options = { key, cert };
101101

test/sequential/test-tls-securepair-client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ test1();
4242

4343
// simple/test-tls-securepair-client
4444
function test1() {
45-
test('agent.key', 'agent.crt', null, test2);
45+
test('keys/rsa_private.pem', 'keys/rsa_cert.crt', null, test2);
4646
}
4747

4848
// simple/test-tls-ext-key-usage

test/sequential/test-tls-session-timeout.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ function doTest() {
5151

5252
const SESSION_TIMEOUT = 1;
5353

54-
const key = fixtures.readSync('agent.key');
55-
const cert = fixtures.readSync('agent.crt');
54+
const key = fixtures.readKey('rsa_private.pem');
55+
const cert = fixtures.readKey('rsa_cert.crt');
5656
const options = {
5757
key: key,
5858
cert: cert,

0 commit comments

Comments
 (0)