Sha256: 5c963ef83f40c99940f35d10c7017542960220229221a54c6e6b43bf29a90a03

Contents?: true

Size: 918 Bytes

Versions: 7

Compression:

Stored size: 918 Bytes

Contents

require 'beaker-rspec/spec_helper'
require 'beaker-rspec/helpers/serverspec'
$LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), 'acceptance/lib'))
require 'util'

unless ENV['RS_PROVISION'] == 'no'
  install_puppet
end

RSpec.configure do |c|
  # Readable test descriptions
  c.formatter = :documentation

  # Configure all nodes in nodeset
  c.before :suite do
    extend PuppetStrings::Acceptance::CommandUtils
    hosts.each do |host|
      scp_to(host, Dir.glob('puppet-strings*.gem').first, 'puppet-strings.gem')
      install_ca_certs(host)
      on host, "#{gem_command(host)} install yard"
      on host, "#{gem_command(host)} install rgen"
      on host, "#{gem_command(host)} install puppet-strings.gem"

      scp_to(host, Dir.glob('spec/fixtures/acceptance/modules/test/pkg/username-test*.gz').first, 'test.tar.gz')
      on host, puppet('module', 'install', 'test.tar.gz')
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
puppet-strings-2.2.0 spec/spec_helper_acceptance.rb
puppet-strings-2.1.0 spec/spec_helper_acceptance.rb
puppet-strings-2.0.0 spec/spec_helper_acceptance.rb
puppet-strings-1.2.1 spec/spec_helper_acceptance.rb
puppet-strings-1.2.0 spec/spec_helper_acceptance.rb
puppet-strings-1.1.1 spec/spec_helper_acceptance.rb
puppet-strings-1.1.0 spec/spec_helper_acceptance.rb