Skip to content

Commit

Permalink
Merge pull request #19630 from lfu/storages_to_ems_spec
Browse files Browse the repository at this point in the history
Add trait with_storages_redhat to ems.
  • Loading branch information
agrare authored Dec 11, 2019
2 parents 771f620 + 5f66f9a commit da47df3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/factories/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@
end
end

trait :with_storages_redhat do
transient do
storage_count { 1 }
end

after :create do |ems, evaluator|
ems.storages = create_list :storage_redhat, evaluator.storage_count, :ext_management_system => ems
end
end

trait :with_authentication do
authtype { "default" }
end
Expand Down

0 comments on commit da47df3

Please sign in to comment.