Bug #21142
closedHammer CLI has not option to list File repository content
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1492832
Description of problem:
Missing feature on Support Arbitrary Files within Content Views.
Hammer has 2 commands to respective add and remove fiels to/from a Repository of type file:
1) hammer repository upload-content
2) hammer repository remove-content
For the second one there is a parameter called "ids" where a list of ids of content to be removed can be provided. Besides that there is no way to query a repository for its contents.
The command "hammer repository --id=repo_id" returns no content and has no option to include these data. Thus the user can not rely entirely on CLI to automate tasks.
Version-Release number of selected component (if applicable):
Satellite 6.3 snap 15.
How reproducible:
Always
Steps to Reproduce:
1. Create a product
2. Attach a repository of type file to it
3. Upload a file to repository
4. Run command hammer repository --id=repo_id
Actual results:
No way of access repository content data, specifically their ids.
Expected results:
A way of access repository content data.
Additional info:
On API doc at path /api/v2 there is also no documented endpoint to access repository content data. Besides that content can be queried on api/v2/files?repository_id=query_id.
Updated by Brad Buckingham about 7 years ago
- Subject changed from Hammer CLI has not option to list repository content to Hammer CLI has not option to list repository content
- Target version set to 217
Updated by Justin Sherrill about 7 years ago
- Subject changed from Hammer CLI has not option to list repository content to Hammer CLI has not option to list File repository content
Updated by Justin Sherrill about 7 years ago
- Translation missing: en.field_release set to 284
Updated by The Foreman Bot about 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6988 added
Updated by The Foreman Bot about 7 years ago
- Pull request https://github.com/Katello/hammer-cli-katello/pull/517 added
Updated by Anonymous about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-katello|0e31b71ef0681bd57543f42fd075470bf9a9abe5.