Sha256: ae4d97b4d4d74532579d4ec1db69cd6d6262154ab0d61819a63e62b529b62a81
Contents?: true
Size: 994 Bytes
Versions: 5
Compression:
Stored size: 994 Bytes
Contents
shared_examples 'provider/provisioner/pe_bootstrap/latest' do |provider, options| if !File.file?(options[:box]) raise ArgumentError, "A box file must be downloaded for provider: #{provider}. Try: rake acceptance:setup" end include_context 'acceptance' let(:webserver_port) { 3838 } let(:webserver_path) { options[:archive_path] } let(:extra_env) do vars = options[:env_vars].dup vars['PE_BUILD_DOWNLOAD_ROOT'] = "http://localhost:#{webserver_port}" vars end include_context 'webserver' before(:each) do environment.skeleton('pe_build') assert_execute('vagrant', 'box', 'add', 'box', options[:box]) end after(:each) do # Ensure any VMs that survived tests are cleaned up. assert_execute('vagrant', 'destroy', '--force', log: false) end context 'when installing LATEST from a build server' do it 'provisions with pe_build' do assert_execute('vagrant', 'up', "--provider=#{provider}", 'pe-latest') end end end
Version data entries
5 entries across 5 versions & 1 rubygems