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