Sha256: b034898f26a6fc739ca17267a32165e3e016c4a05db6b2367e0c944fd710d021

Contents?: true

Size: 465 Bytes

Versions: 292

Compression:

Stored size: 465 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_utf8).to match(/CN=.*/)
  end
end

Version data entries

292 entries across 292 versions & 1 rubygems

Version Path
puppet-8.3.0 spec/unit/util/windows/root_certs_spec.rb
puppet-8.3.0-x86-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-8.3.0-x64-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-8.3.0-universal-darwin spec/unit/util/windows/root_certs_spec.rb
puppet-8.4.0 spec/unit/util/windows/root_certs_spec.rb
puppet-8.4.0-x86-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-8.4.0-x64-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-8.4.0-universal-darwin spec/unit/util/windows/root_certs_spec.rb
puppet-7.28.0 spec/unit/util/windows/root_certs_spec.rb
puppet-7.28.0-x86-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-7.28.0-x64-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-7.28.0-universal-darwin spec/unit/util/windows/root_certs_spec.rb
puppet-8.3.1 spec/unit/util/windows/root_certs_spec.rb
puppet-8.3.1-x86-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-8.3.1-x64-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-8.3.1-universal-darwin spec/unit/util/windows/root_certs_spec.rb
puppet-7.27.0 spec/unit/util/windows/root_certs_spec.rb
puppet-7.27.0-x86-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-7.27.0-x64-mingw32 spec/unit/util/windows/root_certs_spec.rb
puppet-7.27.0-universal-darwin spec/unit/util/windows/root_certs_spec.rb