Uploaded image for project: 'VNF Validation Program'
  1. VNF Validation Program
  2. VVP-247

Error in Detecting Unused Parameters

XMLWordPrintable

      In ice_validator/tests/test_all_parameters_used_in_template.py all parameters in a template checked to ensure they are consumed in a get_param call. There is a bug in the traversal logic that doesn't not properly collect all the occurrences of get_param in the template and will incorrectly fail a template for not using a defined parameter...

      Example:

      parameters:    param_name:        type: comma_delimited_string
             description: my parameter
      resources:    resource_id:        metadata:            value: 
                     str_replace:                    params:                        $extlist:                            list_join:                               - ' '
                                    - get_param: ext_net_list
      

            tl2972 tl2972
            tl2972 tl2972
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: