From aa92493c97b43075c18696d79f7d1bf62aa4805a Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Tue, 6 Dec 2022 11:40:17 +0000 Subject: Fix resource property constraint values mutable in Service design Issue-ID: SDC-4290 Signed-off-by: JvD_Ericsson Change-Id: Ica942b7a8bb1f03cbf6baec709135287e31def06 --- .../be/components/impl/ComponentInstanceBusinessLogicTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'catalog-be/src/test/java') diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java index f22b346052..f6a86ac02f 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogicTest.java @@ -319,6 +319,7 @@ class ComponentInstanceBusinessLogicTest { property.setName("property"); property.setValue("newVal"); property.setType("string"); + property.setUniqueId("propId"); properties.add(property); List origProperties = new ArrayList<>(); @@ -328,6 +329,14 @@ class ComponentInstanceBusinessLogicTest { origProperty.setType("string"); origProperties.add(origProperty); + List ciProperties = new ArrayList<>(); + PropertyDefinition ciProperty = new ComponentInstanceProperty(); + ciProperty.setName("property"); + ciProperty.setValue("value"); + ciProperty.setType("string"); + ciProperty.setUniqueId("propId"); + ciProperties.add(ciProperty); + Map types = new HashMap<>(); DataTypeDefinition dataTypeDef = new DataTypeDefinition(); types.put("string", dataTypeDef); @@ -340,6 +349,7 @@ class ComponentInstanceBusinessLogicTest { component.setComponentInstancesProperties(componentInstanceProps); ComponentInstance ci = createComponentInstance("ci1"); ci.setUniqueId("resourceId"); + ci.setProperties(ciProperties); component.setComponentInstances(Arrays.asList(ci, createComponentInstance("ci2"), createComponentInstance(componentInstanceID))); -- cgit 1.2.3-korg