Project

General

Profile

« Previous | Next » 

Revision bd696be7

Added by Marek Hulán about 5 years ago

Fixes #26306 - support also importing unmanaged hosts

View differences:

test/unit/compute_resource_host_importer_test.rb
end
let(:uuid) { '5032c8a5-9c5e-ba7a-3804-832a03e16381' }
context 'can import unmanaged hosts' do
let(:importer) do
ComputeResourceHostImporter.new(
:compute_resource => compute_resource,
:vm => vm,
:managed => false
)
end
test 'imported host is unmanaged' do
refute host.managed
end
end
context 'with existing domain' do
setup do
@domain = FactoryBot.create(:domain, :name => 'virt.bos.redhat.com')
......
'type' => 'VirtualE1000'
}
assert host.managed
assert_equal 'dhcp75-197', host.name
assert_equal uuid, host.uuid
assert_equal @domain, host.domain

Also available in: Unified diff