summaryrefslogtreecommitdiffstats
path: root/spec/unit/ssl
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2010-04-24 03:32:48 +1000
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit5988f76aac63c4cb33c3e138c830eaf8aa4abfff (patch)
tree6a3d6a1a84379cf0109b9f124dd51fe7fd156db7 /spec/unit/ssl
parent2c153b12921d67354ea0968ad81590a124ac8b75 (diff)
downloadpuppet-5988f76aac63c4cb33c3e138c830eaf8aa4abfff.tar.gz
puppet-5988f76aac63c4cb33c3e138c830eaf8aa4abfff.tar.xz
puppet-5988f76aac63c4cb33c3e138c830eaf8aa4abfff.zip
Fixes #3663 - It should be possible to list signed hosts only
Adds a --signed option to the --list feature that only displays signed certificates
Diffstat (limited to 'spec/unit/ssl')
-rwxr-xr-xspec/unit/ssl/certificate_authority/interface.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/ssl/certificate_authority/interface.rb b/spec/unit/ssl/certificate_authority/interface.rb
index bcba298b2..d38e31b1b 100755
--- a/spec/unit/ssl/certificate_authority/interface.rb
+++ b/spec/unit/ssl/certificate_authority/interface.rb
@@ -215,6 +215,16 @@ describe Puppet::SSL::CertificateAuthority::Interface do
end
end
+ describe "and :signed was provided" do
+ it "should print a string containing all signed certificate requests and certificates" do
+ @ca.expects(:list).returns %w{host1 host2}
+
+ @applier = @class.new(:list, :signed)
+
+ @applier.apply(@ca)
+ end
+ end
+
describe "and an array of names was provided" do
it "should print a string of all named hosts that have a waiting request" do
@ca.expects(:waiting?).returns %w{host1 host2}