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'

Actions #1

Updated by jsherril@redhat.com over 5 years ago

  • Description updated (diff)
Actions #2

Updated by jsherril@redhat.com over 5 years ago

  • Description updated (diff)
Actions #3

Updated by dkliban@redhat.com over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
  • Triaged changed from No to Yes
  • Sprint set to Sprint 56
Actions #4

Updated by dkliban@redhat.com over 5 years ago

  • Status changed from ASSIGNED to MODIFIED

I've pushed a new openapi-generator-cli.jar to fedorapeople.org[0]. I'll update my openapi-generator PR[1] with the change also.

[0] https://repos.fedorapeople.org/repos/pulp/pulp/openapi/openapi-generator-cli.jar
[1] https://github.com/OpenAPITools/openapi-generator/pull/3405/

Actions #5

Updated by ipanova@redhat.com about 5 years ago

  • Project changed from Docker Support to Container Support
Actions #6

Updated by ipanova@redhat.com about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #7

Updated by ipanova@redhat.com almost 5 years ago

  • Sprint/Milestone set to 1.0.0
Actions #8

Updated by ggainey over 4 years ago

  • Tags Katello added
  • Tags deleted (Katello-P1)

Also available in: Atom PDF