diff options
| author | Luke Kanies <luke@madstop.com> | 2008-04-19 19:20:25 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-04-19 19:20:25 -0500 |
| commit | d87e018ab84646de94aea70c2bd0270e1721940d (patch) | |
| tree | 4aaeb8061e18856a1343fffe4a8ba4ab330a2e52 /spec/unit/ssl | |
| parent | 6c539c001e26b5a344d1f6e582f2f25cf16542bc (diff) | |
| download | puppet-d87e018ab84646de94aea70c2bd0270e1721940d.tar.gz puppet-d87e018ab84646de94aea70c2bd0270e1721940d.tar.xz puppet-d87e018ab84646de94aea70c2bd0270e1721940d.zip | |
Fixing how the CRL is used for certificate verification.
The CRL was not correctly being added to the Store used
for verification.
It does not appear to be working, though, since revoked
certificates still pass verification.
Diffstat (limited to 'spec/unit/ssl')
| -rwxr-xr-x | spec/unit/ssl/certificate_authority.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/ssl/certificate_authority.rb b/spec/unit/ssl/certificate_authority.rb index 5a4e2d5e1..09aaeabcf 100755 --- a/spec/unit/ssl/certificate_authority.rb +++ b/spec/unit/ssl/certificate_authority.rb @@ -475,7 +475,7 @@ describe Puppet::SSL::CertificateAuthority do @cert = stub 'cert', :content => "mycert" Puppet::SSL::Certificate.stubs(:find).returns @cert - @crl = mock('crl') + @crl = stub('crl', :content => "mycrl") @ca.stubs(:crl).returns @crl end @@ -500,7 +500,7 @@ describe Puppet::SSL::CertificateAuthority do end it "should add the CRL to the store if the crl is enabled" do - @store.expects(:add_crl).with @crl + @store.expects(:add_crl).with "mycrl" @ca.verify("me") end |
