Project

Profile

Help

Issue #5624

OpenAPI generated client 'pulp-file-client' does not return 'pulp_href'

Added by Anonymous 12 months ago. Updated 12 months ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
CentOS 7
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
API Bindings
Sprint:
Quarter:

Description

'pulp_href' is missing from OpenAPI client library.

The following differs in that:

http://localhost:24817/pulp/api/v3/remotes/file/file/?name=restremote1
returns

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "download_concurrency": 20,
            "name": "restremote1",
            "policy": "immediate",
            "proxy_url": null,
            "pulp_created": "2019-10-26T11:56:19.102805Z",
            "pulp_href": "/pulp/api/v3/remotes/file/file/89c92bab-edc0-4d1c-9af7-a099c7e88b57/",
            "pulp_last_updated": "2019-10-26T11:56:19.102819Z",
            "ssl_ca_certificate": null,
            "ssl_client_certificate": null,
            "ssl_client_key": null,
            "ssl_validation": true,
            "url": "https://repos.fedorapeople.org/pulp/pulp/demo_repos/test_file_repo/PULP_MANIFEST"
        }
    ]
}

and via the 'pulp-file-client' OpenAPI generated client library:

remote_file_api.list(name="restremote1")
returns

{'count': 1,
 'next': None,
 'previous': None,
 'results': [{'created': None,
              'download_concurrency': 20,
              'href': None,
              'last_updated': None,
              'name': 'restremote1',
              '********': None,
              'policy': 'immediate',
              'proxy_url': None,
              'ssl_ca_certificate': None,
              'ssl_client_certificate': None,
              'ssl_client_key': None,
              'ssl_validation': True,
              'type': None,
              'url': 'https://repos.fedorapeople.org/pulp/pulp/demo_repos/test_file_repo/PULP_MANIFEST',
              'username': None}]}

Try code here:
https://github.com/Timoses/pulp3/commit/a529ddc9383cd4c1697803ff4508744db75aa9eb

History

#1 Updated by fao89 12 months ago

  • Status changed from NEW to CLOSED - NOTABUG

#3 Updated by ttereshc 12 months ago

Please update your client (Ruby bindings) to the latest verison

Please register to edit this issue

Also available in: Atom PDF