Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-567

Recursive Imports are not needed when individual Yamls are being validated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Medium Medium
    • Beijing Release
    • Beijing Release
    • SDC-JTOSCA
    • None
    • SDC Sprint 9

      In JTOSCA Validation; ToscaTemplate._getAllCustomDefs method recursivley calls itself for loading the definitions from import files. This is not working for cases where some of the imported Yaml files in MainServiceTemplate.yaml are importing other files.

      For example;

      "MainServiceTemplate.yaml" -> Imports ->"Definition/groups.yaml"

      "Definition/groups.yaml" -> Imports -> "nodes.yaml".

      The loading of nodes.yaml in such case is failing because of relative path of this file is not same as MainServiceTeamplate.yaml.

      Observation: For the cases where all individual Yaml files belonging to once CSAR are being passed one by one in input; loading of import definitions doesn't seem necessary.

       

            ml636r ml636r
            priyanshua priyanshua
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: