From bcee4648917b2442f51a75639708bad4cd0fe4ad Mon Sep 17 00:00:00 2001 From: vasraz Date: Mon, 7 Sep 2020 11:36:26 +0100 Subject: Replace artifact folder ONBOARDED_PACKAGE in CSAR Replace artifact folder ONBOARDED_PACKAGE for ETSI_PACKAGE in TOSCA CSAR. Also included VF artifacts will also have the same folder replaced. Change-Id: If03f13a80894e98a0abe1b849322f86a27dfd3f1 Issue-ID: SDC-3261 Signed-off-by: andre.schmid Signed-off-by: Vasyl Razinkov --- catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'catalog-be') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java index f378ca0288..1f33a2424b 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java @@ -1143,6 +1143,10 @@ public class CsarUtils { } if (ArtifactTypeEnum.WORKFLOW.getType().equals(artifactType)) { artifactTypeFolder += OperationArtifactUtil.BPMN_ARTIFACT_PATH + File.separator; + } else if (ArtifactTypeEnum.ONBOARDED_PACKAGE.getType().equals(artifactType)) { + // renaming legacy folder ONBOARDED_PACKAGE to the new folder ETSI_PACKAGE + artifactTypeFolder = artifactTypeFolder + .replace(ArtifactTypeEnum.ONBOARDED_PACKAGE.getType(), ArtifactTypeEnum.ETSI_PACKAGE.getType()); } // TODO: We should not do this but in order to keep this refactoring small enough, -- cgit 1.2.3-korg