Skip to content

Commit

Permalink
Delegate endpoints and authentications on managers to the provider
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Mar 31, 2020
1 parent 8788d35 commit cf01648
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class ManageIQ::Providers::Foreman::ConfigurationManager < ManageIQ::Providers::
delegate :authentication_check,
:authentication_status,
:authentication_status_ok?,
:authentications,
:connect,
:endpoints,
:verify_credentials,
:with_provider_connection,
:to => :provider
Expand Down
2 changes: 2 additions & 0 deletions app/models/manageiq/providers/foreman/provisioning_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ class ManageIQ::Providers::Foreman::ProvisioningManager < ManageIQ::Providers::P
delegate :authentication_check,
:authentication_status,
:authentication_status_ok?,
:authentications,
:connect,
:endpoints,
:verify_credentials,
:with_provider_connection,
:to => :provider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
describe ManageIQ::Providers::Foreman::ConfigurationManager do
let(:provider) { FactoryBot.build(:provider_foreman) }
let(:provider) { configuration_manager.provider }
let(:configuration_manager) do
FactoryBot.build(:configuration_manager_foreman, :provider => provider)
FactoryBot.build(:configuration_manager_foreman)
end

describe "#connect" do
Expand Down

0 comments on commit cf01648

Please sign in to comment.