Sha256: 25f73a5da3042cd465db4076c1cffe70b52c295b06851e4f65e6881612042e5c

Contents?: true

Size: 840 Bytes

Versions: 11

Compression:

Stored size: 840 Bytes

Contents

require 'beaker-rspec/spec_helper'
require 'beaker-rspec/helpers/serverspec'

hosts.each do |host|
  # Install Puppet
  install_package host, 'rubygems'
  on host, 'gem install puppet --no-ri --no-rdoc'
  on host, "mkdir -p #{host['distmoduledir']}"
end

RSpec.configure do |c|
  # Project root
  proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))

  # Readable test descriptions
  c.formatter = :documentation

  # Configure all nodes in nodeset
  c.before :suite do
    # Install module and dependencies
    puppet_module_install(:source => proj_root, :module_name => 'apache')
    hosts.each do |host|
      on host, puppet('module','install','puppetlabs-stdlib'), { :acceptable_exit_codes => [0,1] }
      on host, puppet('module','install','puppetlabs-concat'), { :acceptable_exit_codes => [0,1] }
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/apache/spec/spec_helper_acceptance.rb
freighthop-0.6.0 modules/apache/spec/spec_helper_acceptance.rb
freighthop-0.5.2 modules/apache/spec/spec_helper_acceptance.rb
freighthop-0.5.1 modules/apache/spec/spec_helper_acceptance.rb
freighthop-0.5.0 modules/apache/spec/spec_helper_acceptance.rb
freighthop-0.4.1 modules/apache/spec/spec_helper_acceptance.rb
freighthop-0.4.0 modules/apache/spec/spec_helper_acceptance.rb
freighthop-0.3.3 modules/apache/spec/spec_helper_acceptance.rb
freighthop-0.3.2 modules/apache/spec/spec_helper_acceptance.rb
freighthop-0.3.1 modules/apache/spec/spec_helper_acceptance.rb
freighthop-0.3.0 modules/apache/spec/spec_helper_acceptance.rb