Sha256: 99b470d42e9d1b2afb925beedb2220c3316be4c497f8852621cfca7348b5baed
Contents?: true
Size: 660 Bytes
Versions: 92
Compression:
Stored size: 660 Bytes
Contents
#! /usr/bin/env ruby require 'spec_helper' require 'puppet/indirector/key/ca' describe Puppet::SSL::Key::Ca do it "should have documentation" do Puppet::SSL::Key::Ca.doc.should be_instance_of(String) end it "should use the :privatekeydir as the collection directory" do Puppet[:privatekeydir] = "/key/dir" Puppet::SSL::Key::Ca.collection_directory.should == Puppet[:privatekeydir] end it "should store the ca key at the :cakey location" do Puppet.settings.stubs(:use) Puppet[:cakey] = "/ca/key" file = Puppet::SSL::Key::Ca.new file.stubs(:ca?).returns true file.path("whatever").should == Puppet[:cakey] end end
Version data entries
92 entries across 92 versions & 2 rubygems