Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-5801

[API] /rpms/names doesn't return any data when searching by a RH repo UUID

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Content
    • None
    • 2
    • None

      Goal: 

      • When searching rpms for a RH repo's UUID, no rpms are returned. Searching by URLs works as expected. This should work when using either UUID or URL
      curl --location 'localhost:8000/api/content-sources/v1.0/rpms/names' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-rh-identity: <identity>' \ --data '{ "search": "", "uuids": ["f5319e3c-edd5-441e-bad0-7c2b4e7513d6"], "urls": [] }'
      
      []
      
      curl --location 'localhost:8000/api/content-sources/v1.0/rpms/names' \
      --header 'Content-Type: application/json' \
      --header 'Accept: application/json' \
      --header 'x-rh-identity: <identity>' \
      --data '{
        "search": "",
        "uuids": [],
        "urls": ["https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os/"]}
      
      [{"package_name":"389-ds-base","summary":"389 Directory Server (base)"},{"package_name":"389-ds-base-libs","summary":"Core libraries for 389 Directory Server"},...]

      Acceptance Criteria:

      • Hitting the /rpms/names endpoint with RH repo UUIDs should return the same rpms as when providing RH repo URLs

              bhouse@redhat.com Bryttanie House
              bhouse@redhat.com Bryttanie House
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: