Project

General

Profile

« Previous | Next » 

Revision 641ef42a

Added by Ivan Necas almost 6 years ago

Refs #24072 - fix selecting hostgroup with compute resource

Without this fix, the 'Virtual Machine' tab was giving:

'mybox' not found on 'libvirt (Libvirt)' 'mybox' could
be deleted or 'libvirt (Libvirt)' is not responding.

View differences:

test/factories/host_related.rb
puppetclasses { [ FactoryBot.create(:puppetclass, :environments => [environment]) ] }
end
trait :with_compute_resource do
compute_resource { FactoryBot.create(:compute_resource, :libvirt) }
end
trait :with_config_group do
environment
config_groups { [ FactoryBot.create(:config_group, :with_puppetclass, :class_environments => [environment]) ] }

Also available in: Unified diff