Hammer CLI has not option to list File repository content
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.
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
No way of access repository content data, specifically their ids.
A way of access repository content data.
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.
refs #21142 - updates to enable adding file command to hammer
This contains a few small changes so that we'll be able
to introduce a 'file' command to hammer-cli-katello.
#7 Updated by Anonymous almost 4 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-katello|0e31b71ef0681bd57543f42fd075470bf9a9abe5.