Sha256: d16fbb139e4bc1caa854990c9791d15b24eebd46f905d1b3d6a7ae1ba8dbf9f9

Contents?: true

Size: 806 Bytes

Versions: 129

Compression:

Stored size: 806 Bytes

Contents

require 'spec_helper'

describe Specinfra::HostInventory::Virtualization do
  before :all do
    set :os, { :family => 'openbsd' }
  end

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

  let(:host_inventory) { nil }
  it 'OpenBSD 5.7 on KVM should return :system => "kvm"' do
    ret = virt.parse_system_product_name("KVM\n")
    expect(ret).to include('kvm')
  end

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

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


end

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
specinfra-2.82.5 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.82.4 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.82.3 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.82.2 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.82.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.82.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.81.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.80.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.79.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.78.2 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.78.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.78.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.77.3 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.77.2 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.77.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.77.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.76.9 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.76.8 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.76.7 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.76.6 spec/host_inventory/openbsd/virtualization_spec.rb