Sha256: 9fd9e77a5d3ecc9b0d6358993629735cdb131a3572c42d2a883296f4d2e08376

Contents?: true

Size: 940 Bytes

Versions: 29

Compression:

Stored size: 940 Bytes

Contents

#! /usr/bin/env ruby
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

29 entries across 29 versions & 2 rubygems

Version Path
puppet-3.3.2 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.3.1 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.3.1.rc3 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.3.1.rc2 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.3.1.rc1 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.3.0 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.3.0.rc3 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.3.0.rc2 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.2.4 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.2.3 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.2.3.rc1 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.2.2 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.2.1 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.2.1.rc1 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.2.0.rc2 spec/integration/ssl/certificate_revocation_list_spec.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.2.0.rc1 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.1.1 spec/integration/ssl/certificate_revocation_list_spec.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.1.0 spec/integration/ssl/certificate_revocation_list_spec.rb