From fc1ce3eeab2f042a6dd14731c382990f74ca481b Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 15 Nov 2016 16:32:12 -0800 Subject: [PATCH] Assert certs further up the chain --- spec/api-session-spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/api-session-spec.js b/spec/api-session-spec.js index 0672a4d7b57..f6e69808b5c 100644 --- a/spec/api-session-spec.js +++ b/spec/api-session-spec.js @@ -556,7 +556,11 @@ describe('session module', function () { assert.equal(certificate.subjectName, 'localhost') assert.equal(certificate.issuer.commonName, 'Intermediate CA') assert.equal(certificate.subject.commonName, 'localhost') + assert.equal(certificate.issuerCert.issuer.commonName, 'Root CA') assert.equal(certificate.issuerCert.subject.commonName, 'Intermediate CA') + assert.equal(certificate.issuerCert.issuerCert.issuer.commonName, 'Root CA') + assert.equal(certificate.issuerCert.issuerCert.subject.commonName, 'Root CA') + assert.equal(certificate.issuerCert.issuerCert.issuerCert, undefined) callback(false) })