Sha256: c2d61a3e89a76e37c2bc649d47d47586cec473fdb6d6ecc2212fc5f924b8b5d4

Contents?: true

Size: 812 Bytes

Versions: 11

Compression:

Stored size: 812 Bytes

Contents

# This tests that an instance referenced by image family can be started properly
shared_examples 'provider/image_family' do |provider, options|
  unless options[:box]
    raise ArgumentError,
          "box option must be specified for provider: #{provider}"
  end

  include_context 'acceptance'

  before do
    environment.skeleton('image_family')
    assert_execute('vagrant', 'box', 'add', 'basic', options[:box])
    assert_execute('vagrant', 'up', "--provider=#{provider}")
  end

  after do
    assert_execute('vagrant', 'destroy', '--force')
  end

  it 'should bring up machine with image_family option' do
    status("Test: machine is running after up")
    result = execute("vagrant", "ssh", "-c", "echo foo")
    expect(result).to exit_with(0)
    expect(result.stdout).to match(/foo\n$/)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vagrant-google-2.7.0 test/acceptance/provider/image_family_spec.rb
vagrant-google-2.6.0 test/acceptance/provider/image_family_spec.rb
vagrant-google-2.5.0 test/acceptance/provider/image_family_spec.rb
vagrant-google-2.4.0 test/acceptance/provider/image_family_spec.rb
vagrant-google-2.4.0.rc0 test/acceptance/provider/image_family_spec.rb
vagrant-google-2.3.0 test/acceptance/provider/image_family_spec.rb
vagrant-google-2.3.0.rc0 test/acceptance/provider/image_family_spec.rb
vagrant-google-2.2.1 test/acceptance/provider/image_family_spec.rb
vagrant-google-2.2.0 test/acceptance/provider/image_family_spec.rb
vagrant-google-2.2.0.rc0 test/acceptance/provider/image_family_spec.rb
vagrant-google-2.1.0 test/acceptance/provider/image_family_spec.rb