Sha256: aca1cad8aa61945db20352a90fa8f35f18bc71dda0b01c19fbc1ac321779c8b7

Contents?: true

Size: 1006 Bytes

Versions: 8

Compression:

Stored size: 1006 Bytes

Contents

shared_examples 'provider/provisioner/pe_bootstrap/3x' do |provider, options|
  if options[:boxes].empty?
    raise ArgumentError,
      "Box files must be downloaded for provider: #{provider}. Try: rake acceptance:setup"
  end

  include_context 'acceptance'

  let(:extra_env) do
    vars = options[:env_vars].dup
    vars['PE_BUILD_DOWNLOAD_ROOT'] = options[:archive_path]

    vars
  end

  before(:each) do
    # The skelton sets up a Vagrantfile which expects the OS under test to be
    # available as `box`.
    environment.skeleton('3x_acceptance')
    options[:boxes].each do |box|
      name = File.basename(box).split('-').first
      assert_execute('vagrant', 'box', 'add', name, box)
    end
  end

  after(:each) do
    # Ensure any VMs that survived tests are cleaned up.
    execute('vagrant', 'destroy', '--force')
  end

  context 'when installing PE 3.x' do
    it 'provisions with pe_build' do
      assert_execute('vagrant', 'up', "--provider=#{provider}", 'pe-3x')
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vagrant-pe_build-0.19.2 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.19.1 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.19.0 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.18.2 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.18.1 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.18.0 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.14 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.13 acceptance/pe_build/pe_bootstrap_3x_spec.rb