diff options
| author | Luke Kanies <luke@madstop.com> | 2008-04-28 17:52:02 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-04-28 17:52:02 -0500 |
| commit | 8c9b04d807b34ade704da3584b72d39bb129aa75 (patch) | |
| tree | c76828f38c7c8d28f4b533d556e809d0bf3c1437 /spec/integration/ssl | |
| parent | 83519f4e59f68f867f8ddbe141ac8bd9a6238ae1 (diff) | |
| download | puppet-8c9b04d807b34ade704da3584b72d39bb129aa75.tar.gz puppet-8c9b04d807b34ade704da3584b72d39bb129aa75.tar.xz puppet-8c9b04d807b34ade704da3584b72d39bb129aa75.zip | |
I think I've now got the Webrick SSL support working.
Now I just need to get xmlrpc working alongside REST in
both mongrel and webrick.
Diffstat (limited to 'spec/integration/ssl')
| -rwxr-xr-x | spec/integration/ssl/certificate_authority.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/spec/integration/ssl/certificate_authority.rb b/spec/integration/ssl/certificate_authority.rb index 51e4a0aef..f7eb0f46a 100755 --- a/spec/integration/ssl/certificate_authority.rb +++ b/spec/integration/ssl/certificate_authority.rb @@ -11,7 +11,7 @@ require 'tempfile' describe Puppet::SSL::CertificateAuthority do before do # Get a safe temporary file - file = Tempfile.new("host_integration_testing") + file = Tempfile.new("ca_integration_testing") @dir = file.path file.delete @@ -60,6 +60,17 @@ describe Puppet::SSL::CertificateAuthority do end end + it "should not have a CRL when :crl is set to false" do + Puppet.settings[:crl] = false + @ca.crl.should be_nil + end + + it "should have a CRL when :crl is set to true" do + Puppet.settings[:crl] = true + @ca.generate_ca_certificate + @ca.crl.should_not be_nil + end + describe "when signing certificates" do before do @host = Puppet::SSL::Host.new("luke.madstop.com") |
