Sha256: 00da70fbd03125da02f2890fb4725a18e2d278fb3b08c48e786421e045080fbf

Contents?: true

Size: 462 Bytes

Versions: 48

Compression:

Stored size: 462 Bytes

Contents

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.size).to be >= 1
  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

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
puppet-5.5.22 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.22-x86-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.22-x64-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.22-universal-darwin spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.21 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.21-x86-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.21-x64-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.21-universal-darwin spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.20 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.20-x86-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.20-x64-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.20-universal-darwin spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.19 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.19-x86-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.19-x64-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.19-universal-darwin spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.18 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.18-x86-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.18-x64-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-5.5.18-universal-darwin spec/unit/util/windows/root_certs_spec.rb