summaryrefslogtreecommitdiffstats
path: root/spec/unit/ssl/certificate_request.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-08-04 11:01:34 -0500
committerLuke Kanies <luke@madstop.com>2008-08-04 11:01:34 -0500
commit6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e (patch)
tree3d98a73e7dfa24f084856f44735a808a3151019f /spec/unit/ssl/certificate_request.rb
parentc464bf21676c907642be3ad2c71b941318469325 (diff)
downloadpuppet-6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e.tar.gz
puppet-6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e.tar.xz
puppet-6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e.zip
Making all certificates only support the plaintext format.
None of them actually support yaml or marshal by default, and plaintext is easiest anyway. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/ssl/certificate_request.rb')
-rwxr-xr-xspec/unit/ssl/certificate_request.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/ssl/certificate_request.rb b/spec/unit/ssl/certificate_request.rb
index be5aa5a96..4a7d655ac 100755
--- a/spec/unit/ssl/certificate_request.rb
+++ b/spec/unit/ssl/certificate_request.rb
@@ -26,6 +26,10 @@ describe Puppet::SSL::CertificateRequest do
@class.indirection.terminus_class.should == :file
end
+ it "should only support the text format" do
+ @class.supported_formats.should == [:str]
+ end
+
describe "when managing instances" do
before do
@request = @class.new("myname")