Skip to content

Commit

Permalink
Merge pull request #13317 from cben/container_supported_auth_attributes
Browse files Browse the repository at this point in the history
Fix creating Kubernetes or OSE with `credentials.auth_key`
  • Loading branch information
blomquisg authored Feb 16, 2017
2 parents b95585e + 76548ed commit fad636d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ def required_credential_fields(_type)
[:auth_key]
end

def supported_auth_attributes
%w(userid password auth_key)
end

def verify_credentials(auth_type = nil, options = {})
options = options.merge(:auth_type => auth_type)
if options[:auth_type].to_s == "hawkular"
Expand Down
4 changes: 0 additions & 4 deletions app/models/manageiq/providers/openshift/container_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ def self.event_monitor_class
ManageIQ::Providers::Openshift::ContainerManager::EventCatcher
end

def supported_auth_attributes
%w(userid password auth_key)
end

def create_project(project)
connect.create_project_request(project)
rescue KubeException => e
Expand Down
2 changes: 0 additions & 2 deletions spec/requests/api/providers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,6 @@ def have_endpoint_attributes(expected_hash)
let(:containers_class) { klass }

it "supports creation with auth_key specified" do
skip if name != "Openshift"

api_basic_authorize collection_action_identifier(:providers, :create)

run_post(providers_url, sample_containers.merge("credentials" => [containers_credentials]))
Expand Down

0 comments on commit fad636d

Please sign in to comment.