Refactor tosca representation retrieval in CsarUtils::populateZip 31/107131/4
authorFrancis Toth <francis.toth@yoppworks.com>
Tue, 5 May 2020 16:44:59 +0000 (12:44 -0400)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Mon, 18 May 2020 10:58:06 +0000 (10:58 +0000)
commit0ff3fcba8b7d645e497a7300776bde86590ec70c
tree3a8fbde6f7aa063d76bdc47c63e2f2a728a507a0
parentcbf02a29680b79b0cdc19b2002e642de949dffca
Refactor tosca representation retrieval in CsarUtils::populateZip

This commit aims to simplify CsarUtils::populateZip by extracting how a tosca representation is fetched to another function. this enables to reduce the overall cyclomatic complexity of the function. Some additional work still needs to be done especially regarding the ToscaRepresentation and MainYamlWithDependencies classes (These happen to be really similar). This will be done in another change in the near future.

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I93600d0752565de523cf2285b1fa2ba43a96334f
Issue-ID: SDC-2812
catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java