Project

Profile

Help

Issue #5183

closed

docker ruby bindings remote list ignores arguments

Added by jsherril@redhat.com over 5 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 56
Quarter:

Description

When running the following ruby code:

require 'pulp_docker_client'

config = PulpDockerClient::Configuration.new do |c|
          c.username = 'admin'
          c.password = 'password'
          c.debugging = true
      c.host = 'localhost:24817'
end

api = PulpDockerClient::RemotesDockerApi.new(PulpDockerClient::ApiClient.new(config))
api.list(:name => 'foo')

the following request was previously generated:

GET https://localhost/pulp/api/v3/remotes/docker/docker/?name=foo

but now, starting with 4.0.0b6.dev01563975458 it generates this request:

GET https://localhost/pulp/api/v3/remotes/docker/docker/

which no longer filters on the name.

Here's the output from the latest gem showing it returning a remote that does not match:

=> #<PulpDockerClient::InlineResponse2004:0x00000000076fbd58 @count=1, @results=[#<PulpDockerClient::DockerRemote:0x00000000076fb998 @policy="immediate", @_href="/pulp/api/v3/remotes/docker/docker/db219d5c-fe24-4c30-9ee9-44a361ed14a7/", @_created=Wed, 24 Jul 2019 15:10:42 +0000, @_type="docker.docker", @name="Default_Organization-Test-busybox-library", @url="http://docker.io", @ssl_validation=true, @_last_updated=Wed, 24 Jul 2019 15:10:42 +0000, @download_concurrency=20, @upstream_name="busybox">]>

notice the name value it returned is not 'foo'

Also available in: Atom PDF