From 688437338e997c8527a1a48d35c302f2cfe29ca7 Mon Sep 17 00:00:00 2001 From: KrupaNagabhushan Date: Fri, 28 Aug 2020 12:09:06 +0100 Subject: Rename ONBOARDED_PACKAGE folder to ETSI_PACKAGE Issue-ID: SDC-3259 Signed-off-by: KrupaNagabhushan Change-Id: I8bcaeb11536aa1c7ad8d15f00bdf5663e6a059b5 --- .../templates/default/BE-configuration.yaml.erb | 13 ++++++++++++- .../src/test/resources/config/catalog-be/configuration.yaml | 11 +++++++++++ .../java/org/openecomp/sdc/common/api/ArtifactTypeEnum.java | 1 + docs/onboardingpackages.rst | 4 ++-- .../process/OrchestrationTemplateProcessCsarHandler.java | 3 ++- 5 files changed, 28 insertions(+), 4 deletions(-) diff --git a/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/BE-configuration.yaml.erb b/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/BE-configuration.yaml.erb index d07a1949a3..9ad535d32a 100644 --- a/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/BE-configuration.yaml.erb +++ b/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/BE-configuration.yaml.erb @@ -597,6 +597,17 @@ artifacts: acceptedTypes: - csar - zip + - type: ETSI_PACKAGE + categories: + - DEPLOYMENT + componentTypes: + - RESOURCE + resourceTypes: + - VF + - PNF + acceptedTypes: + - csar + - zip - type: HEAT_ENV categories: - DEPLOYMENT @@ -1238,4 +1249,4 @@ cadiFilterParams: # This configuration entry lists all node type names prefix that shall be allowed on SDC. definedResourceNamespace: - - org.openecomp.resource. \ No newline at end of file + - org.openecomp.resource. diff --git a/catalog-be/src/test/resources/config/catalog-be/configuration.yaml b/catalog-be/src/test/resources/config/catalog-be/configuration.yaml index bf6176fd25..88729d655a 100644 --- a/catalog-be/src/test/resources/config/catalog-be/configuration.yaml +++ b/catalog-be/src/test/resources/config/catalog-be/configuration.yaml @@ -957,6 +957,17 @@ artifacts: acceptedTypes: - csar - zip + - type: ETSI_PACKAGE + categories: + - DEPLOYMENT + componentTypes: + - RESOURCE + resourceTypes: + - VF + - PNF + acceptedTypes: + - csar + - zip - type: HEAT_ENV categories: - DEPLOYMENT 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 161097da32..d4dcf4fa15 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 @@ -141,6 +141,7 @@ public enum ArtifactTypeEnum { DCAE_POLICY, DCAE_TOSCA, DG_XML, + ETSI_PACKAGE, GUIDE, HEAT, HEAT_ARTIFACT, diff --git a/docs/onboardingpackages.rst b/docs/onboardingpackages.rst index dac1a88606..701d32e570 100644 --- a/docs/onboardingpackages.rst +++ b/docs/onboardingpackages.rst @@ -47,7 +47,7 @@ The supported descriptor included in the package is aligned to `ETSI NFV-SOL 001 Other Points to note when onboarding this package are: - During onboarding the ETSI NFV-SOL004 CSAR structure is transformed to the internal ONAP CSAR structure. -- The original input CSAR is maintained and stored as the SDC artifact *ONBOARDED_PACKAGE* in the xNF internal model. +- The original input CSAR is maintained and stored as the SDC artifact *ETSI_PACKAGE* in the xNF internal model. For existing legacy xNF, it can be stored as *ONBOARDED_PACKAGE* instead. - The non-mano artifacts are mapped to the corresponding SDC Artifact Type in the xNF internal model. Package Types applicable to Resource Types @@ -127,4 +127,4 @@ SDC supports the signature in Cryptographic Message Syntax (CMS) format. For SDC to validate the authenticity and integrity of the onboarding package, the root certificate of the trusted CA needs to be pre-installed in SDC before onboarding is started. The details of this procedure are described :ref:`here `. -.. _ETSI NFV-SOL 004v2.6.1: https://docbox.etsi.org/ISG/NFV/Open/Publications_pdf/Specs-Reports/NFV-SOL%20004v2.6.1%20-%20GS%20-%20VNF%20Package%20Stage%203%20-%20spec.pdf \ No newline at end of file +.. _ETSI NFV-SOL 004v2.6.1: https://docbox.etsi.org/ISG/NFV/Open/Publications_pdf/Specs-Reports/NFV-SOL%20004v2.6.1%20-%20GS%20-%20VNF%20Package%20Stage%203%20-%20spec.pdf diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/orchestration/process/OrchestrationTemplateProcessCsarHandler.java b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/orchestration/process/OrchestrationTemplateProcessCsarHandler.java index ac7a1510c7..38508c6ec3 100644 --- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/orchestration/process/OrchestrationTemplateProcessCsarHandler.java +++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/orchestration/process/OrchestrationTemplateProcessCsarHandler.java @@ -33,6 +33,7 @@ import org.openecomp.core.utilities.file.FileContentHandler; import org.openecomp.core.utilities.orchestration.OnboardingTypesEnum; import org.openecomp.core.validation.util.MessageContainerUtil; import org.openecomp.sdc.be.datatypes.enums.ResourceTypeEnum; +import org.openecomp.sdc.common.api.ArtifactTypeEnum; import org.openecomp.sdc.common.errors.CoreException; import org.openecomp.sdc.common.utils.SdcCommon; import org.openecomp.sdc.datatypes.error.ErrorLevel; @@ -58,7 +59,7 @@ import org.openecomp.sdc.vendorsoftwareproduct.types.UploadFileResponse; public class OrchestrationTemplateProcessCsarHandler implements OrchestrationTemplateProcessHandler { private static final Logger LOGGER = LoggerFactory.getLogger(OrchestrationTemplateProcessCsarHandler.class); - private static final String SDC_ONBOARDED_PACKAGE_DIR = "Deployment/ONBOARDED_PACKAGE/"; + private static final String SDC_ONBOARDED_PACKAGE_DIR = "Deployment/" + ArtifactTypeEnum.ETSI_PACKAGE.getType() + "/"; private static final String EXT_SEPARATOR = "."; private final CandidateService candidateService = CandidateServiceFactory.getInstance().createInterface(); private final ToscaTreeManager toscaTreeManager = new ToscaTreeManager(); -- cgit 1.2.3-korg