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.91.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.90.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.90.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.89.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.88.2 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.88.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.88.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.87.2 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.87.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.87.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.86.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.85.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.85.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.84.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.84.0 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.83.4 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.83.3 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.83.2 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.83.1 spec/host_inventory/openbsd/virtualization_spec.rb
specinfra-2.83.0 spec/host_inventory/openbsd/virtualization_spec.rb