Sha256: dbad0282026911b75a799d862124cb84e9502a0fea6be040e67a4f6c1b0cc6b8

Contents?: true

Size: 940 Bytes

Versions: 30

Compression:

Stored size: 940 Bytes

Contents

#!/usr/bin/env rspec
require 'spec_helper'

require 'puppet/ssl/certificate_revocation_list'

describe Puppet::SSL::CertificateRevocationList do
  include PuppetSpec::Files

  before do
    # Get a safe temporary file
    dir = tmpdir("ca_integration_testing")

    Puppet.settings[:confdir] = dir
    Puppet.settings[:vardir] = dir
    Puppet.settings[:group] = Process.gid

    Puppet::SSL::Host.ca_location = :local
  end

  after {
    Puppet::SSL::Host.ca_location = :none

    Puppet.settings.clear

    # This is necessary so the terminus instances don't lie around.
    Puppet::SSL::Host.indirection.termini.clear
  }

  it "should be able to read in written out CRLs with no revoked certificates" do
    ca = Puppet::SSL::CertificateAuthority.new

    raise "CRL not created" unless FileTest.exist?(Puppet[:hostcrl])

    crl = Puppet::SSL::CertificateRevocationList.new("crl_int_testing")
    crl.read(Puppet[:hostcrl])
  end
end

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
puppet-2.7.26 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.25 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.24 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.23 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.22 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.21 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.20 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.20.rc1 spec/integration/ssl/certificate_revocation_list_spec.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.19 spec/integration/ssl/certificate_revocation_list_spec.rb
supply_drop-0.11.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/ssl/certificate_revocation_list_spec.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/puppet-2.7.18/spec/integration/ssl/certificate_revocation_list_spec.rb
supply_drop-0.10.2 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.18 spec/integration/ssl/certificate_revocation_list_spec.rb
supply_drop-0.10.1 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/ssl/certificate_revocation_list_spec.rb
supply_drop-0.10.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.17 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.16 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.14 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-2.7.13 spec/integration/ssl/certificate_revocation_list_spec.rb