This happens when called over REST.
Signed-off-by: Luke Kanies <[EMAIL PROTECTED]>
---
lib/puppet/ssl/certificate_request.rb | 2 +-
spec/unit/ssl/certificate_request.rb | 7 +++++++
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/lib/puppet/ssl/certificate_request.rb
b/lib/puppet/ssl/certificate_request.rb
index e345f4b..6a0464a 100644
--- a/lib/puppet/ssl/certificate_request.rb
+++ b/lib/puppet/ssl/certificate_request.rb
@@ -40,7 +40,7 @@ class Puppet::SSL::CertificateRequest < Puppet::SSL::Base
@content = csr
end
- def save
+ def save(args = {})
super()
# Try to autosign the CSR.
diff --git a/spec/unit/ssl/certificate_request.rb
b/spec/unit/ssl/certificate_request.rb
index aa6bba6..3f25500 100755
--- a/spec/unit/ssl/certificate_request.rb
+++ b/spec/unit/ssl/certificate_request.rb
@@ -163,6 +163,13 @@ describe Puppet::SSL::CertificateRequest do
end
describe "when a CSR is saved" do
+ it "should allow arguments" do
+ csr = Puppet::SSL::CertificateRequest.new("me")
+ csr.class.indirection.stubs(:save)
+
+ lambda { csr.save :ipaddress => "foo" }.should_not raise_error
+ end
+
describe "and a CA is available" do
it "should save the CSR and trigger autosigning" do
ca = mock 'ca', :autosign
--
1.5.3.7
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---