Sha256: ba1ba762a3f39cd1c80d94eaf575feb74230d8f0e8f5dcd8476e762ae486f837
Contents?: true
Size: 751 Bytes
Versions: 234
Compression:
Stored size: 751 Bytes
Contents
#! /usr/bin/env ruby require 'spec_helper' require 'puppet/indirector/certificate/ca' describe Puppet::SSL::Certificate::Ca do it "should have documentation" do expect(Puppet::SSL::Certificate::Ca.doc).to be_instance_of(String) end it "should use the :signeddir as the collection directory" do Puppet[:signeddir] = File.expand_path("/cert/dir") expect(Puppet::SSL::Certificate::Ca.collection_directory).to eq(Puppet[:signeddir]) end it "should store the ca certificate at the :cacert location" do Puppet.settings.stubs(:use) Puppet[:cacert] = File.expand_path("/ca/cert") file = Puppet::SSL::Certificate::Ca.new file.stubs(:ca?).returns true expect(file.path("whatever")).to eq(Puppet[:cacert]) end end
Version data entries
234 entries across 234 versions & 1 rubygems