diff options
| author | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-15 13:19:11 -0700 |
|---|---|---|
| committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-15 15:14:29 -0700 |
| commit | c00e03d41b0bd1174b51eddf5e593aec3bbdd84d (patch) | |
| tree | ce599b6bb4b6e5633801efcbb041380a6def2d4a /spec | |
| parent | dca1f077dd7a818aee447222a7649742f2b1575f (diff) | |
| download | puppet-c00e03d41b0bd1174b51eddf5e593aec3bbdd84d.tar.gz puppet-c00e03d41b0bd1174b51eddf5e593aec3bbdd84d.tar.xz puppet-c00e03d41b0bd1174b51eddf5e593aec3bbdd84d.zip | |
(#7059) Set the CA location using option hooks.
Now that we support option hooks, we can use those to set the CA location
rather than open-coding each chunk of support. As a side benefit we also set
the CA location for inherited actions, as we should.
Reviewed-By: Max Martin <max@puppetlabs.com>
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/unit/face/certificate_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/unit/face/certificate_spec.rb b/spec/unit/face/certificate_spec.rb index dbcc888ad..b0bbf1af6 100755 --- a/spec/unit/face/certificate_spec.rb +++ b/spec/unit/face/certificate_spec.rb @@ -6,9 +6,14 @@ describe Puppet::Face[:certificate, '0.0.1'] do end it "should set the ca location when invoked" do - pending "#6983: This is broken in the actual face..." Puppet::SSL::Host.expects(:ca_location=).with(:foo) Puppet::SSL::Host.indirection.expects(:save) - subject.sign :ca_location => :foo + 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 |
