blob: 6b1d9891ee08c0ee30b742d6454b0990ab19a17e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#! /usr/bin/env ruby
require 'spec_helper'
require 'puppet/util/windows'
describe "Puppet::Util::Windows::RootCerts", :if => Puppet::Util::Platform.windows? do
let(:x509_store) { Puppet::Util::Windows::RootCerts.instance.to_a }
it "should return at least one X509 certificate" do
expect(x509_store.to_a).to have_at_least(1).items
end
it "should return an X509 certificate with a subject" do
x509 = x509_store.first
expect(x509.subject.to_s).to match(/CN=.*/)
end
end
|