Skip to content

Commit

Permalink
Adding factory to ExtManagementSystem with invalid credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasgabriel committed Jan 10, 2018
1 parent 57dac5a commit e95fdcf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/factories/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
:aliases => ["manageiq/providers/physical_infra_manager"],
:class => "ManageIQ::Providers::PhysicalInfraManager",
:parent => :ext_management_system do
trait :with_invalid_authentication do
after(:create) do |x|
x.authentications = [FactoryGirl.build(:authentication, :resource => x, :status => "invalid")]
end
end
end

factory :ems_cloud,
Expand Down

0 comments on commit e95fdcf

Please sign in to comment.