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