Sha256: 75b12ada1a1d0f190e5f192f27f2731484dfd7a539c81e1f0a19b73e1e2677a1
Contents?: true
Size: 1.09 KB
Versions: 8
Compression:
Stored size: 1.09 KB
Contents
# Encoding: utf-8 require 'spec_helper' RSpec.describe Packer::Builder::VMWareISO do let(:builder) { Packer::Builder.get_builder(Packer::Builder::VMWARE_ISO) } it 'has a type of VMWare ISO' do expect(builder.data['type']).to eq(Packer::Builder::VMWARE_ISO) end it 'requires iso_checksum, iso_checksum_type, iso_url and communicator' do expect { builder.validate }.to raise_error(Packer::DataObject::DataValidationError) builder.iso_checksum '88197272b2a442402820fcc788a8cc7a' builder.iso_checksum_type "MD5" builder.iso_url 'path' builder.communicator 'ssh' expect { builder.validate }.not_to raise_error end describe '#vmx_data' do it 'adds a hash of arbitrary data' do builder.vmx_data( key1: 'value1', key2: 'value2' ) expect(builder.data['vmx_data'].keys.length).to eq(2) end end describe '#vmx_data_post' do it 'adds a hash of arbitrary data' do builder.vmx_data_post( key1: 'value1', key2: 'value2' ) expect(builder.data['vmx_data_post'].keys.length).to eq(2) end end end
Version data entries
8 entries across 8 versions & 1 rubygems