Bug 1269398 - [RFE] In Smart Class Parameter, The array elements should be validated with validator type 'list'.
[RFE] In Smart Class Parameter, The array elements should be validated with v...
Status: NEW
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Smart Variables (Show other bugs)
Nightly
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: --
Assigned To: Ohad Levy
Katello QA List
http://projects.theforeman.org/issues...
: FutureFeature, Triaged
Depends On:
Blocks: 1278718
  Show dependency treegraph
 
Reported: 2015-10-07 04:27 EDT by Jitendra Yejare
Modified: 2018-05-25 03:04 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 12081 None None None 2016-04-22 12:21 EDT

  None (edit)
Description Jitendra Yejare 2015-10-07 04:27:01 EDT
Description of problem:
In smart class Parameters, The array elements of key type array should be validated with Validator Type 'list'.
As of now the array key type is not validated with validator type 'list'.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Override the default value of smart class parameter.
2. Select Key type array.
3. Provide the array of elements as new Default Value.
4. Select validator type as list.
5. Validator rule should have each element in array of step 3.

Actual results:


Expected results:
On Submit, the change is successfully accepted as all the elements in array are present in validator rules list.
If at least one element of array is not present in validator rules list, then It should allow to accept this change and should display the as 'element in not one of list'.

Additional info:
Comment 1 Jitendra Yejare 2015-10-07 04:28:41 EDT
Typo above in Expected Results:
On Submit, the change is successfully accepted as all the elements in array are present in validator rules list.
If at least one element of array is not present in validator rules list, then It shouldn't allow to accept this change and should display the as 'element in not one of list'.
Comment 2 Bryan Kearney 2015-10-07 17:01:56 EDT
Created redmine issue http://projects.theforeman.org/issues/12093 from this bug
Comment 3 Bryan Kearney 2015-10-07 18:03:23 EDT
Upstream bug component is Provisioning
Comment 5 Bryan Kearney 2015-12-02 15:03:09 EST
Connecting redmine issue http://projects.theforeman.org/issues/12081 from this bug
Comment 6 Bryan Kearney 2016-08-10 15:10:02 EDT
Upstream bug component is Configuration Management
Comment 7 Bryan Kearney 2016-08-10 16:11:02 EDT
Upstream bug component is Provisioning
Comment 8 Bryan Kearney 2016-08-10 18:10:49 EDT
Upstream bug component is Configuration Management
Comment 9 Bryan Kearney 2016-08-12 08:48:56 EDT
Upstream bug component is Smart Variables

Note You need to log in before you can comment on or make changes to this bug.