From 96c003f567110f221a3d3e9d7a6b437c6783b80c Mon Sep 17 00:00:00 2001 From: vasraz Date: Wed, 18 May 2022 14:00:11 +0100 Subject: Include ETSI metadata 'entry_definition_type' in VSP package metadata Signed-off-by: Vasyl Razinkov Change-Id: Iaa3262d9171cc2a1c6a353191aa4afe5e2124717 Issue-ID: SDC-4011 --- .../src/test/java/org/openecomp/sdc/be/tosca/CsarUtilsTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'catalog-be/src/test/java') diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/CsarUtilsTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/CsarUtilsTest.java index 821d4271f8..373e9b1c89 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/CsarUtilsTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/CsarUtilsTest.java @@ -160,13 +160,15 @@ class CsarUtilsTest extends BaseConfDependent { @Test void testCreateCsar() { Component component = new Resource(); - Map toscaArtifacts = new HashMap<>(); + Map artifactDefinitionHashMap = new HashMap<>(); ArtifactDefinition artifact = new ArtifactDefinition(); artifact.setArtifactName("artifactName"); artifact.setEsId("esId"); - toscaArtifacts.put("assettoscatemplate", artifact); + artifactDefinitionHashMap.put("assettoscatemplate", artifact); - component.setToscaArtifacts(toscaArtifacts); + component.setToscaArtifacts(artifactDefinitionHashMap); + component.setArtifacts(artifactDefinitionHashMap); + component.setDeploymentArtifacts(artifactDefinitionHashMap); Mockito.when(artifactCassandraDao.getArtifact(Mockito.any(String.class))) .thenReturn(Either.right(CassandraOperationStatus.GENERAL_ERROR)); -- cgit 1.2.3-korg