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

Version Path
simp-rake-helpers-5.22.1 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.22.0 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.21.0 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.20.0 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.19.2 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.19.0 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.18.0 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.17.1 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.17.0 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.16.0 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.15.0 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.14.0 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.13.2 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.13.1 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.13.0 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.12.7 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.12.6 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.12.5 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.12.4 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb
simp-rake-helpers-5.12.3 spec/lib/simp/rake/pupmod/fixtures/simpmod/spec/spec_helper_acceptance.rb