Uploaded image for project: 'VNF Validation Program'
  1. VNF Validation Program
  2. VVP-172 Evaluate and Fix Sonar Code Smells - Cognitive Complexity
  3. VVP-289

Cognitive Complexity Fixes - test_neutron_port_internal_fixed_ips_subnet_in_base

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • VVP- Frankfurt 3, VVP- Frankfurt 4, VVP- Frankfurt 5, VVP- Frankfurt 6

      Resolve coginitive complexity findings in this method.

      Options to consider:

      • Use list comprehensions to filter the list of yaml files at the begning to non-nested, non-base files
      • Use the get_param method to simplify the extraction of the parameter name for subnet. It handles more cases, and will return none if get_param is not used
      • Split logic into separate methods (ex: create a method to check each port and return the error message if an error is found)

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

              Created:
              Updated:
              Resolved: