Sha256: 21d562b3bde53a3bb5c061e29c384136a9aca92c1ce17477e22587425df8d5e8

Contents?: true

Size: 756 Bytes

Versions: 92

Compression:

Stored size: 756 Bytes

Contents

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

require 'puppet/indirector/certificate/file'

describe Puppet::SSL::Certificate::File do
  it "should have documentation" do
    Puppet::SSL::Certificate::File.doc.should be_instance_of(String)
  end

  it "should use the :certdir as the collection directory" do
    Puppet[:certdir] = File.expand_path("/cert/dir")
    Puppet::SSL::Certificate::File.collection_directory.should == Puppet[:certdir]
  end

  it "should store the ca certificate at the :localcacert location" do
    Puppet.settings.stubs(:use)
    Puppet[:localcacert] = File.expand_path("/ca/cert")
    file = Puppet::SSL::Certificate::File.new
    file.stubs(:ca?).returns true
    file.path("whatever").should == Puppet[:localcacert]
  end
end

Version data entries

92 entries across 92 versions & 2 rubygems

Version Path
puppet-3.8.7 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.7-x86-mingw32 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.7-x64-mingw32 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.6 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.6-x86-mingw32 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.6-x64-mingw32 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.5 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.5-x86-mingw32 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.5-x64-mingw32 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.4 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.4-x86-mingw32 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.4-x64-mingw32 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.3 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.3-x86-mingw32 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.3-x64-mingw32 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.2 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.2-x86-mingw32 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.2-x64-mingw32 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.1 spec/unit/indirector/certificate/file_spec.rb
puppet-3.8.1-x86-mingw32 spec/unit/indirector/certificate/file_spec.rb