diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2019-06-05 18:19:24 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-06-05 19:01:13 -0400 |
commit | 965ffc4cb9a55d26192a95485b57afe4573990b0 (patch) | |
tree | 9352dc45708cad51baddc9114170bc9b0919d495 /test/parallel/test-crypto-certificate.js | |
parent | 81a9c7201f66855cdca534dae1a3f53f822a009b (diff) | |
download | node-new-965ffc4cb9a55d26192a95485b57afe4573990b0.tar.gz |
Revert "test: move all test keys/certs under `test/fixtures/keys/`"
PR-URL: https://github.com/nodejs/node/pull/28083
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
Diffstat (limited to 'test/parallel/test-crypto-certificate.js')
-rw-r--r-- | test/parallel/test-crypto-certificate.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/parallel/test-crypto-certificate.js b/test/parallel/test-crypto-certificate.js index e987be2129..a426e0be00 100644 --- a/test/parallel/test-crypto-certificate.js +++ b/test/parallel/test-crypto-certificate.js @@ -30,10 +30,9 @@ const { Certificate } = crypto; const fixtures = require('../common/fixtures'); // Test Certificates -const spkacValid = fixtures.readKey('rsa_spkac.spkac'); -const spkacChallenge = 'this-is-a-challenge'; -const spkacFail = fixtures.readKey('rsa_spkac_invalid.spkac'); -const spkacPublicPem = fixtures.readKey('rsa_public.pem'); +const spkacValid = fixtures.readSync('spkac.valid'); +const spkacFail = fixtures.readSync('spkac.fail'); +const spkacPem = fixtures.readSync('spkac.pem'); function checkMethods(certificate) { @@ -42,13 +41,13 @@ function checkMethods(certificate) { assert.strictEqual( stripLineEndings(certificate.exportPublicKey(spkacValid).toString('utf8')), - stripLineEndings(spkacPublicPem.toString('utf8')) + stripLineEndings(spkacPem.toString('utf8')) ); assert.strictEqual(certificate.exportPublicKey(spkacFail), ''); assert.strictEqual( certificate.exportChallenge(spkacValid).toString('utf8'), - spkacChallenge + 'fb9ab814-6677-42a4-a60c-f905d1a6924d' ); assert.strictEqual(certificate.exportChallenge(spkacFail), ''); } |