Sha256: d0573eb8fbe6e1118907280b1db689836e7cabfcd4ce5b81dda79a8ed72f80d9

Contents?: true

Size: 874 Bytes

Versions: 216

Compression:

Stored size: 874 Bytes

Contents

require 'spec_helper'

RSpec.shared_context('https client') do
  before :all do
    WebMock.disable!
  end

  after :all do
    WebMock.enable!
  end

  before :each do
    # make sure we don't take too long
    Puppet[:http_connect_timeout] = '5s'
    Puppet[:server] = '127.0.0.1'
    Puppet[:certname] = '127.0.0.1'

    Puppet[:localcacert] = File.join(PuppetSpec::FIXTURE_DIR, 'ssl', 'ca.pem')
    Puppet[:hostcrl] = File.join(PuppetSpec::FIXTURE_DIR, 'ssl', 'crl.pem')
    Puppet[:hostprivkey] = File.join(PuppetSpec::FIXTURE_DIR, 'ssl', '127.0.0.1-key.pem')
    Puppet[:hostcert] = File.join(PuppetSpec::FIXTURE_DIR, 'ssl', '127.0.0.1.pem')

    # set in memory facts since certname is changed above
    facts = Puppet::Node::Facts.new(Puppet[:certname])
    Puppet::Node::Facts.indirection.save(facts)
  end

  let(:https_server) { PuppetSpec::HTTPSServer.new }
end

Version data entries

216 entries across 216 versions & 1 rubygems

Version Path
puppet-8.3.0 spec/shared_contexts/https.rb
puppet-8.3.0-x86-mingw32 spec/shared_contexts/https.rb
puppet-8.3.0-x64-mingw32 spec/shared_contexts/https.rb
puppet-8.3.0-universal-darwin spec/shared_contexts/https.rb
puppet-8.4.0 spec/shared_contexts/https.rb
puppet-8.4.0-x86-mingw32 spec/shared_contexts/https.rb
puppet-8.4.0-x64-mingw32 spec/shared_contexts/https.rb
puppet-8.4.0-universal-darwin spec/shared_contexts/https.rb
puppet-7.28.0 spec/shared_contexts/https.rb
puppet-7.28.0-x86-mingw32 spec/shared_contexts/https.rb
puppet-7.28.0-x64-mingw32 spec/shared_contexts/https.rb
puppet-7.28.0-universal-darwin spec/shared_contexts/https.rb
puppet-8.3.1 spec/shared_contexts/https.rb
puppet-8.3.1-x86-mingw32 spec/shared_contexts/https.rb
puppet-8.3.1-x64-mingw32 spec/shared_contexts/https.rb
puppet-8.3.1-universal-darwin spec/shared_contexts/https.rb
puppet-7.27.0 spec/shared_contexts/https.rb
puppet-7.27.0-x86-mingw32 spec/shared_contexts/https.rb
puppet-7.27.0-x64-mingw32 spec/shared_contexts/https.rb
puppet-7.27.0-universal-darwin spec/shared_contexts/https.rb