Update comments

This commit is contained in:
Kamil Trzcinski 2016-02-17 10:05:26 +01:00 committed by James Edwards-Jones
parent 92a1efe69b
commit c089f10334
3 changed files with 7 additions and 5 deletions

View file

@ -63,11 +63,9 @@ VM+d42lQAgoq318A84Xu5vRh1KCAJuztkhNbM+w=
end
trait :with_trusted_chain do
# This is
# This contains
# [Intermediate #2 (SHA-2)] 'Comodo RSA Domain Validation Secure Server CA'
# [Intermediate #1 (SHA-2)] COMODO RSA Certification Authority
# We only validate that we want to rebuild the trust chain,
# we don't need end-to-end certificate to do that
# [Intermediate #1 (SHA-2)] 'COMODO RSA Certification Authority'
certificate '-----BEGIN CERTIFICATE-----
MIIGCDCCA/CgAwIBAgIQKy5u6tl1NmwUim7bo3yMBzANBgkqhkiG9w0BAQwFADCB
hTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G

View file

@ -117,6 +117,10 @@ describe PagesDomain, models: true do
end
context 'for trusted certificate chain' do
# We only validate that we can to rebuild the trust chain, for certificates
# We assume that 'AddTrustExternalCARoot' needed to validate the chain is in trusted store.
# It will be if ca-certificates is installed on Debian/Ubuntu/Alpine
let(:domain) { build(:pages_domain, :with_trusted_chain) }
it { is_expected.to be_truthy }