From 28e7f0f13e3d7b75750a449c9bda6c0d4a1986ce Mon Sep 17 00:00:00 2001 From: franciscovila Date: Tue, 15 Mar 2022 08:29:04 +0000 Subject: Copy entry_defintion_type to TOSCA.meta Copy "entry_defintion_type" from the manifest file of ASD package into the generated TOSCA.meta for the VSP package Issue-ID: SDC-3884 Signed-off-by: franciscovila Change-Id: I35c4d0180529e8c60edc714aecadd0150cbd2c03 --- .../openecomp/sdc/enrichment/impl/tosca/BaseToscaEnrichmentTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl') diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/java/org/openecomp/sdc/enrichment/impl/tosca/BaseToscaEnrichmentTest.java b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/java/org/openecomp/sdc/enrichment/impl/tosca/BaseToscaEnrichmentTest.java index cf9ec3c49d..3350bb5f85 100644 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/java/org/openecomp/sdc/enrichment/impl/tosca/BaseToscaEnrichmentTest.java +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/java/org/openecomp/sdc/enrichment/impl/tosca/BaseToscaEnrichmentTest.java @@ -19,6 +19,8 @@ package org.openecomp.sdc.enrichment.impl.tosca; import org.onap.sdc.tosca.datatypes.model.ServiceTemplate; import org.onap.sdc.tosca.services.ToscaExtensionYamlUtil; import org.openecomp.core.utilities.file.FileUtils; +import org.openecomp.sdc.tosca.csar.AsdPackageHelper; +import org.openecomp.sdc.tosca.csar.ManifestUtils; import org.openecomp.sdc.tosca.datatypes.ToscaServiceModel; import org.openecomp.sdc.tosca.services.ToscaFileOutputService; import org.openecomp.sdc.tosca.services.ToscaUtil; @@ -146,7 +148,7 @@ public class BaseToscaEnrichmentTest { void compareActualAndExpectedModel(ToscaServiceModel toscaServiceModel) throws IOException { - ToscaFileOutputService toscaFileOutputService = new ToscaFileOutputServiceCsarImpl(); + ToscaFileOutputService toscaFileOutputService = new ToscaFileOutputServiceCsarImpl(new AsdPackageHelper(new ManifestUtils())); byte[] toscaActualFile = toscaFileOutputService.createOutputFile(toscaServiceModel, null); URL url = BaseToscaEnrichmentTest.class.getResource(outputFilesPath); -- cgit 1.2.3-korg