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

[6.16.z] Add docker_manifest_lists endpoint #1241

Merged

Conversation

Satellite-QE
Copy link
Contributor

Cherrypick of PR: #1240

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

@Satellite-QE Satellite-QE added 6.16.z Auto_Cherry_Picked GHA has automatically cherrypicked this PR No-CherryPick PR doesnt need CherryPick to previous branches labels Nov 11, 2024
Copy link
Contributor

@vsedmik vsedmik left a comment

Choose a reason for hiding this comment

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

Looks CPed correctly.

@vsedmik vsedmik merged commit fa18b01 into 6.16.z Nov 11, 2024
19 checks passed
@vsedmik vsedmik deleted the cherry-pick-6.16.z-05b2bb2f298db15b934c066ce30b4db4cfb06b32 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 Auto_Cherry_Picked GHA has automatically cherrypicked this PR No-CherryPick PR doesnt need CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants