Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker_manifests endpoint to repositories #1188

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

vsedmik
Copy link
Contributor

@vsedmik vsedmik commented May 31, 2024

Description of changes

We are missing docker_manifests endpoint so we can't read the manifests in a docker repository.

Upstream API documentation, plugin, or feature links

https://satellite.redhat.com/apidoc/v2/docker_manifests.en.html

image

Functional demonstration

Example:

from robottelo.hosts import Satellite
sat = Satellite('satellite.redhat.com')
sat.api.Repository(id=55).docker_manifests()
Out[4]: 
{'total': 1,
 'subtotal': 1,
 'selectable': 1,
 'page': 1,
 'per_page': 20,
 'error': None,
 'search': None,
 'sort': {'by': None, 'order': None},
 'results': [{'id': 1672,
   'schema_version': 2,
   'digest': 'sha256:23973d32066ae1cb15ce3cef7fe66a8aa87038936b6c828cc5c129d46a3a9233',
   'manifest_type': 'image',
   'annotations': {'org.opencontainers.image.base.name': 'docker.io/library/alpine:3.18',
    'org.opencontainers.image.base.digest': 'sha256:695ae78b4957fef4e53adc51febd07f5401eb36fcd80fff3e5107a2b4aa42ace'},
   'labels': {'containers.bootc': '1', 'io.buildah.version': '1.33.5'},
   'is_bootable': True,
   'is_flatpak': False,
   'tags': [],
   'manifest_lists': [{'id': 197,
     'digest': 'sha256:6a4a6aded92e720d91ec9bfdb0bf80a37846ac837be652f4d87140a46dc4ba71',
     'schema_version': 2,
     'manifest_type': 'list'}]}]}

@vsedmik vsedmik added No-CherryPick PR doesnt need CherryPick to previous branches Stream labels May 31, 2024
@vsedmik vsedmik self-assigned this May 31, 2024
@vsedmik vsedmik requested a review from a team May 31, 2024 15:52
@vsedmik vsedmik added CherryPick PR needs CherryPick to previous branches 6.16.z and removed No-CherryPick PR doesnt need CherryPick to previous branches labels Jun 4, 2024
@jyejare jyejare removed the 6.16.z label Jun 5, 2024
@pondrejk pondrejk merged commit 892d291 into SatelliteQE:master Jun 14, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CherryPick PR needs CherryPick to previous branches Stream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants