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.76.5 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.76.4 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.76.3 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.76.2 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.76.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.76.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.75.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.75.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.74.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.73.4 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.73.3 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.73.2 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.73.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.73.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.72.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.72.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.71.3 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.71.2 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.71.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.71.0 spec/host_inventory/openbsd/virtualization_spec.rb