Sha256: 15c535646a074f1a76b30e151b6cc4fbeb86126576edb0ed42c88fc9bc60ff44
Contents?: true
Size: 876 Bytes
Versions: 36
Compression:
Stored size: 876 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::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 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
36 entries across 36 versions & 1 rubygems