Sha256: a14498f8da1267b1d1b1f6211f26c04d4a4f1b609e544b2dae1e51a67e3c71c3

Contents?: true

Size: 691 Bytes

Versions: 1

Compression:

Stored size: 691 Bytes

Contents

#!/usr/bin/env rspec
require 'spec_helper'
require 'puppet/face'

require 'puppet/ssl/host'

describe Puppet::Face[:certificate, '0.0.1'] do
  it "should have a ca-location option" do
    subject.should be_option :ca_location
  end

  it "should set the ca location when invoked" do
    Puppet::SSL::Host.expects(:ca_location=).with(:foo)
    Puppet::SSL::Host.indirection.expects(:save)
    subject.sign "hello, friend", :ca_location => :foo
  end

  it "(#7059) should set the ca location when an inherited action is invoked" do
    Puppet::SSL::Host.expects(:ca_location=).with(:foo)
    subject.indirection.expects(:find)
    subject.find "hello, friend", :ca_location => :foo
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet-2.7.1 spec/unit/face/certificate_spec.rb