Sha256: 390e8c3ba544323955f52513baf5f8be18b35f39794766ec72bfc676aa59db43

Contents?: true

Size: 1.24 KB

Versions: 9

Compression:

Stored size: 1.24 KB

Contents

# This tests that an instance can be upped correctly
shared_examples 'provider/up' do |provider, options|
  if !options[:box]
    raise ArgumentError,
          "box option must be specified for provider: #{provider}"
  end

  include_context 'acceptance'

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

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

  it 'should bring up the machine and halt it' do
    status("Test: machine can be brought up, parallel by default")
    up_result = execute("vagrant", "up")
    expect(up_result).to exit_with(0)

    status("Test: machine is running after up")
    echo_result = execute("vagrant", "ssh", "-c", "echo foo")
    expect(echo_result).to exit_with(0)
    expect(echo_result.stdout).to match(/foo\n$/)
  end

  it 'should bring up the machine and halt it' do
    status("Test: machine can be brought up no parallel")
    up_result = execute("vagrant", "up", "--no-parallel")
    expect(up_result).to exit_with(0)

    status("Test: machine is running after up")
    echo_result = execute("vagrant", "ssh", "-c", "echo foo")
    expect(echo_result).to exit_with(0)
    expect(echo_result.stdout).to match(/foo\n$/)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vagrant-skytap-0.2.3 spec/acceptance/provider/up_spec.rb
vagrant-skytap-0.2.2 spec/acceptance/provider/up_spec.rb
vagrant-skytap-0.2.1 spec/acceptance/provider/up_spec.rb
vagrant-skytap-0.2.0 spec/acceptance/provider/up_spec.rb
vagrant-skytap-0.1.11 spec/acceptance/provider/up_spec.rb
vagrant-skytap-0.1.10 spec/acceptance/provider/up_spec.rb
vagrant-skytap-0.1.9 spec/acceptance/provider/up_spec.rb
vagrant-skytap-0.1.8 spec/acceptance/provider/up_spec.rb
vagrant-skytap-0.1.7 spec/acceptance/provider/up_spec.rb