Sha256: 288507c60ee53d5d0afcbebc667d5b4f1f9eb396ace7f9860b5397c1fd442d23
Contents?: true
Size: 980 Bytes
Versions: 1
Compression:
Stored size: 980 Bytes
Contents
require 'cert_validator/ocsp/real_validator' require 'logger' describe CertValidator::RealOcspValidator, real_ocsp: true do subject{ described_class.new good_cert, ca } let(:ca){ cert 'root' } let(:good_cert){ cert 'good' } it 'accepts a certificate and CA on construction' do expect{ described_class.new good_cert, ca }.to_not raise_error end describe 'with a good cert' do it { is_expected.to be_available } it { is_expected.to be_valid } end describe 'with a revoked cert' do subject { described_class.new cert('revoked'), ca } it { is_expected.to be_available } it { is_expected.to_not be_valid } end pending 'with an irrelevant OCSP response' do it { is_expected.to be_available } it { is_expected.to_not be_valid } end describe 'with a cert with no OCSP data' do subject { described_class.new cert('crl_only'), ca } it { is_expected.to_not be_available } it { is_expected.to_not be_valid } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cert_validator-0.0.1 | spec/ocsp_validator_spec.rb |