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_manifest_lists endpoint #1240

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

vsedmik
Copy link
Contributor

@vsedmik vsedmik commented Nov 6, 2024

Description of changes

Just adding the docker_manifest_lists endpoint to the Repository class.

Upstream API documentation, plugin, or feature links

https://<SAT_FQDN>/apidoc/v2/docker_manifest_lists/index.en.html

Functional demonstration
In [1]: from robottelo.hosts import Satellite

In [2]: sat = Satellite('satellite.redhat.com')

In [3]: sat.api.Repository(id=77).docker_manifest_lists()['results'][0]
Out[3]: 
{'id': 3,
 'schema_version': 2,
 'digest': 'sha256:a3279836b6154516cae3b972fba258e7e202b73454c1cdd73a8d98306cf35a51',
 'manifest_type': 'list',
 'annotations': {},
 'labels': {},
 'is_bootable': False,
 'is_flatpak': True,
 'tags': [{'id': 3, 'repository_id': 'CqRPYqstzg', 'name': 'latest'}],
 'manifests': [{'id': 3,
   'digest': 'sha256:f440f187a3792844892f231b5fc15e3a1636c3bc5e82ea6a29b5eb0cc93750b2',
   'schema_version': 2,
   'manifest_type': 'image'},
  {'id': 4,
   'digest': 'sha256:5140ab5963bc73b2be189fa32b1122568fbbb0351913a47ab5a6386b6dd82fa3',
   'schema_version': 2,
   'manifest_type': 'image'}]}
Additional Information

For the Functional demonstration just sync some container repo. I used these:
https://github.com/SatelliteQE/robottelo/blob/d1efa751f931d249731aa7d9a1702e23818d9eb9/robottelo/constants/__init__.py#L729

@vsedmik vsedmik added No-CherryPick PR doesnt need CherryPick to previous branches Stream labels Nov 6, 2024
@vsedmik vsedmik self-assigned this Nov 6, 2024
@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 Nov 8, 2024
@vsedmik vsedmik requested a review from a team November 8, 2024 09:14
Copy link
Contributor

@LadislavVasina1 LadislavVasina1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vijaysawant vijaysawant merged commit 05b2bb2 into SatelliteQE:master Nov 11, 2024
22 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 11, 2024
vsedmik added a commit that referenced this pull request Nov 11, 2024
(cherry picked from commit 05b2bb2)

Co-authored-by: vsedmik <[email protected]>
@vsedmik vsedmik deleted the add-docker-manifest-lists branch November 11, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.16.z CherryPick PR needs CherryPick to previous branches Stream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants