Skip to content

Commit

Permalink
Merge pull request ManageIQ#21486 from agrare/google_with_authenticat…
Browse files Browse the repository at this point in the history
…ion_factory_missing_credentials

Fix Google factory ems_google_with_authentication missing_credentials?
  • Loading branch information
Fryguy authored Oct 5, 2021
2 parents 914348a + 5828972 commit a3782f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions spec/factories/authentication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
status { "Valid" }
end

factory :auth_token, :parent => :authentication do
authtype { "default" }
auth_key { "secret" }
type { "AuthToken" }
end

factory :authentication_status_error, :parent => :authentication do
status { "Error" }
authtype { "bearer" }
Expand Down
4 changes: 3 additions & 1 deletion spec/factories/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@

factory :ems_google_with_authentication,
:parent => :ems_google do
authtype { "default" }
after(:create) do |ems|
ems.authentications << FactoryBot.create(:auth_token)
end
end

factory :ems_google_network,
Expand Down

0 comments on commit a3782f4

Please sign in to comment.