Sha256: 47acf6fba30318485c53510679f07608a210e10560de0fd3343be89dd4c1ec63
Contents?: true
Size: 780 Bytes
Versions: 41
Compression:
Stored size: 780 Bytes
Contents
require 'spec_helper' set :os, { :family => 'openbsd' } describe Specinfra::HostInventory::Virtualization do 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
41 entries across 41 versions & 2 rubygems