summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test/java
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2022-05-18 14:00:11 +0100
committerMichael Morris <michael.morris@est.tech>2022-05-23 09:57:34 +0000
commit96c003f567110f221a3d3e9d7a6b437c6783b80c (patch)
treee483be4a1758c7fc9d8004952baeab125010c38f /catalog-be/src/test/java
parent601fc9e34e16a214d23f4ed4ac1bc64069cb7d3a (diff)
Include ETSI metadata 'entry_definition_type' in VSP package metadata
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Iaa3262d9171cc2a1c6a353191aa4afe5e2124717 Issue-ID: SDC-4011
Diffstat (limited to 'catalog-be/src/test/java')
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/tosca/CsarUtilsTest.java8
1 files changed, 5 insertions, 3 deletions
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<String, ArtifactDefinition> toscaArtifacts = new HashMap<>();
+ Map<String, ArtifactDefinition> 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));