Project

Profile

Help

Issue #802

Content source single source retrieval has not href in the body

Added by ipanova@redhat.com over 6 years ago. Updated 7 months ago.

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

Description

$ curl -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X GET -k -u admin:admin "https://localhost/pulp/api/v2/content/sources/content-zoo/"|python -m json.tool
{
"base_url": "http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/",
"enabled": "1",
"expires": "3d",
"max_concurrent": "10",
"max_speed": "1000",
"name": "Content World",
"priority": "0",
"source_id": "content-zoo",
"ssl_validation": "true",
"type": "yum",
"url": "/x86_64/os/"
}

History

#1 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from NEW to ASSIGNED

#2 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from ASSIGNED to POST

#3 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from POST to MODIFIED

#4 Updated by dkliban@redhat.com over 6 years ago

  • Platform Release set to 2.7.0

#5 Updated by dkliban@redhat.com over 6 years ago

  • Status changed from MODIFIED to 5

#6 Updated by igulina@redhat.com over 6 years ago

  • Status changed from 5 to 6

Get on a single content source

>> rpm -qa pulp-server
pulp-server-2.7.0-0.3.beta.el7.noarch

>> curl -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X GET -k -u admin:admin "https://localhost/pulp/api/v2/content/sources/content-world/"|python -m json.tool 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   325  100   325    0     0    664      0 --:--:-- --:--:-- --:--:--   663
{
    "_href": "/pulp/api/v2/content/sources/content-world/",
    "base_url": "https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/",
    "enabled": "1",
    "expires": "3d",
    "max_concurrent": "10",
    "max_speed": "1000",
    "name": "Content World",
    "priority": "0",
    "source_id": "content-world",
    "ssl_validation": "true",
    "type": "yum"
}

Get on all content sources:

>> curl -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X GET -k -u admin:admin "https://localhost/pulp/api/v2/content/sources/"|python -m json.tool 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   327  100   327    0     0    672      0 --:--:-- --:--:-- --:--:--   672
[
    {
        "_href": "/pulp/api/v2/content/sources/content-world/",
        "base_url": "https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/",
        "enabled": "1",
        "expires": "3d",
        "max_concurrent": "10",
        "max_speed": "1000",
        "name": "Content World",
        "priority": "0",
        "source_id": "content-world",
        "ssl_validation": "true",
        "type": "yum"
    }
]

Get on non-existing content source:

curl -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X GET -k -u admin:admin "https://localhost/pulp/api/v2/content/sources/content-world/"|python -m json.tool 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   420  100   420    0     0    837      0 --:--:-- --:--:-- --:--:--   836
{
    "_href": "/pulp/api/v2/content/sources/content-world/",
    "error": {
        "code": "PLP0009",
        "data": {
            "resources": {
                "source_id": "content-world"
            }
        },
        "description": "Missing resource(s): source_id=content-world",
        "sub_errors": []
    },
    "error_message": "Missing resource(s): source_id=content-world",
    "exception": null,
    "http_request_method": "GET",
    "http_status": 404,
    "resources": {
        "source_id": "content-world"
    },
    "traceback": null
}

#7 Updated by amacdona@redhat.com almost 6 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#9 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

#10 Updated by bmbouter over 1 year ago

  • Category deleted (14)

We are removing the 'API' category per open floor discussion June 16, 2020.

Please register to edit this issue

Also available in: Atom PDF