Sha256: 40a22b9bac74710f6b06705fd8579736dcb468c803933532b3536247acaaae0c

Contents?: true

Size: 879 Bytes

Versions: 41

Compression:

Stored size: 879 Bytes

Contents

require 'spec_helper'

set :os, { :family => 'solaris' } 

describe Specinfra::HostInventory::Virtualization do
  virt = Specinfra::HostInventory::Virtualization.new(host_inventory) 

  let(:host_inventory) { nil }
  it 'OpenIndiana on KVM should return :system => "kvm"' do
    ret = virt.parse_system_product_name("System Configuration: Red Hat KVM")
    expect(ret).to include('kvm')
  end

  let(:host_inventory) { nil }
  it 'OpenIndiana on VMware should return :system => "vmware"' do
    ret = virt.parse_system_product_name("System Configuration: VMware, Inc. VMware Virtual Platform\n")
    expect(ret).to include('vmware')
  end

  let(:host_inventory) { nil }
  it 'OpenIndiana on VirtualBox should return :system => "vbox"' do
    ret = virt.parse_system_product_name("System Configuration: innotek GmbH VirtualBox\n")
    expect(ret).to include('vbox')
  end

end


Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
specinfra-rb19-2.44.7 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.59.0 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.58.0 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.57.5 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.57.4 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.57.3 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.57.2 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.57.1 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.57.0 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.56.1 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.56.0 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.55.0 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.54.2 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.54.1 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.54.0 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.53.1 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.53.0 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.52.0 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.51.2 spec/host_inventory/solaris/virtualization_spec.rb
specinfra-2.51.1 spec/host_inventory/solaris/virtualization_spec.rb