Sha256: 23ea2241193d99d49f1f6e91798719eab72ea5c8b8414e3539422e4689aac750

Contents?: true

Size: 1 KB

Versions: 23

Compression:

Stored size: 1 KB

Contents

# This tests that VM is up as a linked clone
shared_examples 'provider/linked_clone' do |provider, options|
  if !options[:box]
    raise ArgumentError,
      "box option must be specified for provider: #{provider}"
  end

  include_context 'acceptance'

  before do
    environment.skeleton('linked_clone')
    assert_execute('vagrant', 'box', 'add', 'box', options[:box])
  end

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

  it 'creates machine as linked clone' do
    status('Test: machine is created successfully')
    result = execute('vagrant', 'up', "--provider=#{provider}")
    expect(result).to exit_with(0)

    status('Test: master VM is created')
    expect(result.stdout).to match(/master VM/)

    status('Test: machine is a master VM clone')
    expect(result.stdout).to match(/Cloning/)

    status('Test: machine is available by ssh')
    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

23 entries across 19 versions & 5 rubygems

Version Path
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-aws-detiber-0.7.2.pre.4 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-aws-detiber-0.7.2.pre.3 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-aws-detiber-0.7.2.pre.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-unbundled-2.0.2.0 test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-unbundled-2.0.1.0 test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-aws-mkubenka-0.7.2.pre.22 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-f3fdbf414272/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-aws-mkubenka-0.7.2.pre.16 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-1ee58c40e3f5/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-unbundled-2.0.0.1 test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-unbundled-1.9.8.1 test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-unbundled-1.9.7.1 test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-aws-mkubenka-0.7.2.pre.14 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/test/acceptance/provider-virtualbox/linked_clone_spec.rb
vagrant-aws-mkubenka-0.7.2.pre.11 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/test/acceptance/provider-virtualbox/linked_clone_spec.rb