Project

General

Profile

Bug #21142

Hammer CLI has not option to list File repository content

Added by Brad Buckingham almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Bugzilla link:

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.

Associated revisions

Revision 2fbee25b (diff)
Added by Brad Buckingham almost 4 years ago

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.

Revision 0e31b71e (diff)
Added by Andrew Kofink almost 4 years ago

fixes #21142 - add support for file command (#517)

History

#1 Updated by Brad Buckingham almost 4 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

#2 Updated by Brad Buckingham almost 4 years ago

  • Assignee set to Andrew Kofink

#3 Updated by Justin Sherrill almost 4 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

#4 Updated by Justin Sherrill almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 284

#5 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6988 added

#6 Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/Katello/hammer-cli-katello/pull/517 added

#7 Updated by Anonymous almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF