Sha256: acb00301a12c4a23602e20e8f3874b66dca61a860bf2e9a91dbd2305631994e6
Contents?: true
Size: 674 Bytes
Versions: 234
Compression:
Stored size: 674 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 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 Puppet.settings.stubs(:use) Puppet[:cakey] = "/ca/key" file = Puppet::SSL::Key::Ca.new file.stubs(:ca?).returns true expect(file.path("whatever")).to eq(Puppet[:cakey]) end end
Version data entries
234 entries across 234 versions & 1 rubygems