aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java4
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java8
2 files changed, 8 insertions, 4 deletions
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,
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java
index d4dcf4fa15..91f158a164 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java
@@ -44,7 +44,6 @@ public enum ArtifactTypeEnum {
CHEF("CHEF"),
CLOUD_TECHNOLOGY_SPECIFIC_ARTIFACT("CLOUD_TECHNOLOGY_SPECIFIC_ARTIFACT"),
CONTROLLER_BLUEPRINT_ARCHIVE("CONTROLLER_BLUEPRINT_ARCHIVE"),
- HELM("HELM"),
DCAE_DOC("DCAE_DOC"),
DCAE_EVENT("DCAE_EVENT"),
DCAE_INVENTORY_BLUEPRINT("DCAE_INVENTORY_BLUEPRINT"),
@@ -65,6 +64,7 @@ public enum ArtifactTypeEnum {
HEAT_NESTED("HEAT_NESTED"),
HEAT_NET("HEAT_NET"),
HEAT_VOL("HEAT_VOL"),
+ HELM("HELM"),
ICON("ICON"),
LIFECYCLE_OPERATIONS("LIFECYCLE_OPERATIONS"),
MODEL_INVENTORY_PROFILE("MODEL_INVENTORY_PROFILE"),
@@ -78,8 +78,8 @@ public enum ArtifactTypeEnum {
PM_DICTIONARY("PM_DICTIONARY"),
PNF_SW_INFORMATION("PNF_SW_INFORMATION"),
PUPPET("PUPPET"),
- SHELL("SHELL"),
SHELL_SCRIPT("SHELL_SCRIPT"),
+ SHELL("SHELL"),
SNMP_POLL("SNMP_POLL"),
SNMP_TRAP("SNMP_TRAP"),
TOSCA_CSAR("TOSCA_CSAR"),
@@ -91,9 +91,9 @@ public enum ArtifactTypeEnum {
VF_MODULES_METADATA("VF_MODULES_METADATA"),
VNF_CATALOG("VNF_CATALOG"),
WORKFLOW("WORKFLOW"),
- YANG("YANG"),
YANG_MODULE("YANG_MODULE"),
- YANG_XML("YANG_XML");
+ YANG_XML("YANG_XML"),
+ YANG("YANG");
private final String type;