Revision 641ef42a
Added by Ivan Necas almost 6 years ago
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
Refs #24072 - fix selecting hostgroup with compute resource
Without this fix, the 'Virtual Machine' tab was giving: