Revision b8c2ee91
Added by Dominic Cleal about 10 years ago
test/factories/host_related.rb | ||
---|---|---|
FactoryGirl.create(:host_parameter, :host => host)
|
||
end
|
||
end
|
||
|
||
trait :on_compute_resource do
|
||
uuid Foreman.uuid
|
||
association :compute_resource, :factory => :ec2_cr
|
||
after_build { |host| host.class.skip_callback(:validation, :after, :queue_compute) }
|
||
end
|
||
end
|
||
|
||
factory :hostgroup do
|
Also available in: Unified diff
fixes #4597 - map host disassociate actions to permission
(cherry picked from commit 084f755456f522caa5a896689fe72b3c502efb03)