Sha256: c24b88268b4eed194023c82570348154848d825a569fac1c4dae398bad9ed291
Contents?: true
Size: 1009 Bytes
Versions: 61
Compression:
Stored size: 1009 Bytes
Contents
require 'beaker-rspec' require 'tmpdir' require 'yaml' require 'simp/beaker_helpers' include Simp::BeakerHelpers unless ENV['BEAKER_provision'] == 'no' hosts.each do |host| # Install Puppet if host.is_pe? install_pe else install_puppet end end end RSpec.configure do |c| # ensure that environment OS is ready on each host fix_errata_on hosts # Readable test descriptions c.formatter = :documentation # Configure all nodes in nodeset c.before :suite do begin # Install modules and dependencies from spec/fixtures/modules copy_fixture_modules_to( hosts ) # Generate and install PKI certificates on each SUT Dir.mktmpdir do |cert_dir| run_fake_pki_ca_on( default, hosts, cert_dir ) hosts.each{ |sut| copy_pki_to( sut, cert_dir, '/etc/pki/simp-testing' )} end rescue StandardError, ScriptError => e if ENV['PRY'] require 'pry'; binding.pry else raise e end end end end
Version data entries
61 entries across 61 versions & 1 rubygems