Sha256: 1d8b2b7a44a48f8920172e1ea56ee93fc38e110b8a5be4be2e2aa63dbf86c2f0

Contents?: true

Size: 1020 Bytes

Versions: 31

Compression:

Stored size: 1020 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('pe_build')
    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.
    assert_execute('vagrant', 'destroy', '--force', log: false)
  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

31 entries across 31 versions & 1 rubygems

Version Path
vagrant-pe_build-0.17.12 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.11 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.10 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.9 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.8 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.7 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.6 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.5 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.4 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.3 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.2 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.1 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.17.0 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.16.0 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.15.6 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.15.5 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.15.4 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.15.3 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.15.1 acceptance/pe_build/pe_bootstrap_3x_spec.rb
vagrant-pe_build-0.15.0 acceptance/pe_build/pe_bootstrap_3x_spec.rb