Sha256: f319dab6a1c199a88aff550758deed325448bf56b638ca63e97b2874be4900b4
Contents?: true
Size: 681 Bytes
Versions: 36
Compression:
Stored size: 681 Bytes
Contents
require 'spec_helper' require 'puppet/indirector/key/ca' describe Puppet::SSL::Key::Ca do it "should have documentation" do expect(Puppet::SSL::Key::Ca.doc).to be_instance_of(String) end it "should use the :privatekeydir as the collection directory" do Puppet[:privatekeydir] = "/key/dir" expect(Puppet::SSL::Key::Ca.collection_directory).to eq(Puppet[:privatekeydir]) end it "should store the ca key at the :cakey location" do allow(Puppet.settings).to receive(:use) Puppet[:cakey] = "/ca/key" file = Puppet::SSL::Key::Ca.new allow(file).to receive(:ca?).and_return(true) expect(file.path("whatever")).to eq(Puppet[:cakey]) end end
Version data entries
36 entries across 36 versions & 1 rubygems