SatelliteQE / nailgun

Why use a hammer when you can use a nailgun.
GNU General Public License v3.0
46 stars 83 forks source link

[6.14.z] Add possibility to query deb packages for host #1239

Closed Satellite-QE closed 1 month ago

Satellite-QE commented 1 month ago

Cherrypick of PR: https://github.com/SatelliteQE/nailgun/pull/1233

Description of changes

Add possibility to query deb packages for host

Upstream API documentation, plugin, or feature links

There is no up to date foreman documentation online but the api is listed here

Functional demonstration
ipdb> host.debs({"per_page": 20})
{'total': 385, 'subtotal': 385, 'selectable': 385, 'page': 1, 'per_page': 20, 'error': None, 'search': None, 'sort': {'by': 'name', 'order': 'asc'}, 'results':  ...
Additional Information

possible PRT test tests/foreman/api/test_errata.py