Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcanaltin committed Jul 15, 2023
1 parent a5d40f4 commit 7754130
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/parallel/test-crypto-x509.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,16 @@ const der = Buffer.from(

// Extensions tests
assert.strictEqual(x509.extensions.basicConstraints, 'CA:FALSE');

Check failure on line 192 in test/parallel/test-crypto-x509.js

View workflow job for this annotation

GitHub Actions / test-linux

--- stderr --- node:internal/crypto/x509:272 value = this[kHandle].extensions(); ^ TypeError: this[kHandle].extensions is not a function at get extensions [as extensions] (node:internal/crypto/x509:272:29) at Object.<anonymous> (/home/runner/work/node/node/test/parallel/test-crypto-x509.js:192:27) at Module._compile (node:internal/modules/cjs/loader:1233:14) at Module._extensions..js (node:internal/modules/cjs/loader:1287:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) at node:internal/main/run_main_module:23:47 Node.js v21.0.0-pre Command: out/Release/node --expose-internals /home/runner/work/node/node/test/parallel/test-crypto-x509.js

Check failure on line 192 in test/parallel/test-crypto-x509.js

View workflow job for this annotation

GitHub Actions / test-macOS

--- stderr --- node:internal/crypto/x509:272 value = this[kHandle].extensions(); ^ TypeError: this[kHandle].extensions is not a function at get extensions [as extensions] (node:internal/crypto/x509:272:29) at Object.<anonymous> (/Users/runner/work/node/node/test/parallel/test-crypto-x509.js:192:27) at Module._compile (node:internal/modules/cjs/loader:1233:14) at Module._extensions..js (node:internal/modules/cjs/loader:1287:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) at node:internal/main/run_main_module:23:47 Node.js v21.0.0-pre Command: out/Release/node --expose-internals /Users/runner/work/node/node/test/parallel/test-crypto-x509.js

Check failure on line 192 in test/parallel/test-crypto-x509.js

View workflow job for this annotation

GitHub Actions / test-asan

--- stderr --- node:internal/crypto/x509:272 value = this[kHandle].extensions(); ^ TypeError: this[kHandle].extensions is not a function at get extensions [as extensions] (node:internal/crypto/x509:272:29) at Object.<anonymous> (/home/runner/work/node/node/test/parallel/test-crypto-x509.js:192:27) at Module._compile (node:internal/modules/cjs/loader:1233:14) at Module._extensions..js (node:internal/modules/cjs/loader:1287:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) at node:internal/main/run_main_module:23:47 Node.js v21.0.0-pre Command: out/Release/node --expose-internals /home/runner/work/node/node/test/parallel/test-crypto-x509.js
assert.strictEqual(x509.extensions.subjectKeyIdentifier, 'DB:4B:48:2B:2B:7C:DE:94:AA:B8:33:81:13:B8:B0:22:2B:53:3B:42');
assert.strictEqual(x509.extensions.authorityKeyIdentifier, 'keyid:AF:0E:74:5B:9B:9A:66:51:09:DD:84:6F:4A:FF:89:6C:DA:67:DA:7F');
assert.strictEqual(x509.extensions.subjectKeyIdentifier,
'DB:4B:48:2B:2B:7C:DE:94:AA:B8:33:81:13:B8:B0:22:2B:53:3B:42');
assert.strictEqual(x509.extensions.authorityKeyIdentifier,
'keyid:AF:0E:74:5B:9B:9A:66:51:09:DD:84:6F:4A:FF:89:6C:DA:67:DA:7F');
assert.strictEqual(x509.extensions.keyUsage, 'DigitalSignature, KeyEncipherment');
assert.strictEqual(x509.extensions.extendedKeyUsage, 'TLSWebServerAuthentication, TLSWebClientAuthentication');
assert.strictEqual(x509.extensions.certificatePolicies, 'Policy: 1.3.6.1.4.1.11129.2.5.1\nCPS: https://cps.nodejs.org');
assert.strictEqual(
x509.extensions.certificatePolicies,
'Policy: 1.3.6.1.4.1.11129.2.5.1\nCPS: https://cps.nodejs.org'
);
assert.strictEqual(x509.extensions.subjectAltName, 'DNS:agent1, DNS:www.agent1');
assert.strictEqual(x509.extensions.authorityInfoAccess, infoAccessCheck);
assert.strictEqual(x509.extensions.crlDistributionPoints, 'URI:http://crl.nodejs.org/ca.crl');
Expand Down

0 comments on commit 7754130

Please sign in to comment.