Sha256: 81af6f194b261d7decea3957ee5cee1682a8217c40114ee3a844df2e4098cc11

Contents?: true

Size: 923 Bytes

Versions: 51

Compression:

Stored size: 923 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

    # 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 Puppet::FileSystem.exist?(Puppet[:hostcrl])

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

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
puppet-3.8.7 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.7-x86-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.7-x64-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.6 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.6-x86-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.6-x64-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.5 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.5-x86-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.5-x64-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.4 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.4-x86-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.4-x64-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.3 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.3-x86-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.3-x64-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.2 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.2-x86-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-3.8.2-x64-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-4.2.0 spec/integration/ssl/certificate_revocation_list_spec.rb
puppet-4.2.0-x86-mingw32 spec/integration/ssl/certificate_revocation_list_spec.rb