Sha256: e5ac158f70943c47e603460e3beef482562991ca21d8bd7d861c6083e1da8c31
Contents?: true
Size: 1.16 KB
Versions: 36
Compression:
Stored size: 1.16 KB
Contents
require 'spec_helper' require 'puppet/indirector/certificate_revocation_list/rest' describe Puppet::SSL::CertificateRevocationList::Rest do before do @searcher = Puppet::SSL::CertificateRevocationList::Rest.new end it "should be a sublcass of Puppet::Indirector::REST" do expect(Puppet::SSL::CertificateRevocationList::Rest.superclass).to equal(Puppet::Indirector::REST) end it "should set server_setting to :ca_server" do expect(Puppet::SSL::CertificateRevocationList::Rest.server_setting).to eq(:ca_server) end it "should set port_setting to :ca_port" do expect(Puppet::SSL::CertificateRevocationList::Rest.port_setting).to eq(:ca_port) end it "should use the :ca SRV service" do expect(Puppet::SSL::CertificateRevocationList::Rest.srv_service).to eq(:ca) end it "temporarily disables revocation checking when finding a CRL and no CRL is available" do expect(Puppet::FileSystem).to receive(:exist?).with(Puppet[:hostcrl]).and_return(false) Puppet.override({:certificate_revocation => :chain}) do expect(Puppet).to receive(:override).with({:certificate_revocation => false}, anything) subject.find(nil) end end end
Version data entries
36 entries across 36 versions & 1 rubygems