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: