summaryrefslogtreecommitdiffstats
path: root/spec/unit/application
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/application
parent2c153b12921d67354ea0968ad81590a124ac8b75 (diff)
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/application')
-rw-r--r--spec/unit/application/cert.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/application/cert.rb b/spec/unit/application/cert.rb
index 5970355e8..66c6aeac8 100644
--- a/spec/unit/application/cert.rb
+++ b/spec/unit/application/cert.rb
@@ -55,6 +55,11 @@ describe Puppet::Application::Cert do
@cert_app.all.should be_true
end
+ it "should set signed to true for --signed" do
+ @puppetca.handle_signed(0)
+ @puppetca.signed.should be_true
+ end
+
Puppet::SSL::CertificateAuthority::Interface::INTERFACE_METHODS.reject { |m| m == :destroy }.each do |method|
it "should set mode to #{method} with option --#{method}" do
@cert_app.send("handle_#{method}".to_sym, nil)