Project

General

Profile

« Previous | Next » 

Revision 5e74b082

Added by Ivan Necas about 8 years ago

Fixes #6959 - set operating system for RHEV/ovirt VMs

Backward compatible, but works best with https://github.com/abenari/rbovirt/pull/104

View differences:

test/unit/orchestration/compute_test.rb
@host.stubs(:validate_foreman_attr).returns(true)
@host.send(:match_macs_to_nics, :nic_attrs)
end
test 'adding only physical interfaces' do
@physical.stubs(:compute_attributes).returns({:virtual => false})
@virtual.stubs(:compute_attributes).returns({:virtual => true})
attrs = {}
@host.stubs(:compute_attributes).returns(attrs)
@host.send :add_interfaces_to_compute_attrs
assert_equal 1, attrs['nics_attributes'].count { |k, v| v.present? }
end
end
describe "error message for NICs that can't be matched with those on virtual machine" do

Also available in: Unified diff