Bug #15678
closedhammer content-view create fails when component-ids are specified
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1337746
Description of problem:
This bug is to address one of the issues raised by bug 1317814 (specifically bug 1317814#c1).
The issue is that it is not currently possible to create a composite content view using hammer when specifying the component content view version IDs as part of the create command.
Version-Release number of selected component (if applicable):
Satellite 6.2 Snap 12
How reproducible:
Always
Steps to Reproduce:
1. observe that a couple of content view versions exist
hammer> content-view version list --organization-id 1
---|-------------------------------|---------|-----------------------
ID | NAME | VERSION | LIFECYCLE ENVIRONMENTS
---|-------------------------------|---------|-----------------------
3 | zoo2 1.0 | 1.0 | Library
2 | zoo1 1.0 | 1.0 | Library
1 | Default Organization View 1.0 | 1.0 | Library
---|-------------------------------|---------|-----------------------
2. attempt to create a composite content view, containing 1 component ID
hammer> content-view create --name test-ccv --organization-label Default_Organization --composite --component-ids 2
Could not create the content view:
undefined method `composite?' for nil:NilClass
3. attempt to create a composite content view, containing 2 component IDs
hammer> content-view create --name test-ccv --organization-label Default_Organization --composite --component-ids 2,3
Could not create the content view:
undefined method `composite?' for nil:NilClass
Actual results:
creation of the composite content views in steps 2 & 3 fails
Expected results:
creation of the composite content views in steps 2 & 3 succeeds
Additional info:
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to Brad Buckingham
- Pull request https://github.com/Katello/katello/pull/6186 added
Updated by Brad Buckingham over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|d9551dc8e503c2839626c26aa0ba981b91b3d762.
Updated by Justin Sherrill over 8 years ago
- Translation missing: en.field_release set to 162
- Difficulty set to easy