Sha256: e88d9e7c13cb2e0fb1ea468605d7355d5817a64dce488a61934d68ae9526ea61
Contents?: true
Size: 797 Bytes
Versions: 21
Compression:
Stored size: 797 Bytes
Contents
# This tests that a preemptible instance can be brought up correctly shared_examples 'provider/preemptible' do |provider, options| unless options[:box] raise ArgumentError, "box option must be specified for provider: #{provider}" end include_context 'acceptance' before do environment.skeleton('preemptible') 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 preemptible 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
21 entries across 21 versions & 1 rubygems