Fix Service/VF set value to list/map properties 34/128134/1
authorandre.schmid <andre.schmid@est.tech>
Wed, 23 Mar 2022 15:39:45 +0000 (15:39 +0000)
committerandre.schmid <andre.schmid@est.tech>
Mon, 28 Mar 2022 15:52:47 +0000 (16:52 +0100)
commit32f75a4854fc1bcf3bfbd8037f2d1682cbbd9fc5
tree3c40200e9cdd8a4f3f93a0137ce5c02180890143
parent7fc7a76be1e90b9d75f7f6f11181a150cb1d1386
Fix Service/VF set value to list/map properties

In the Service Property Assignment page, setting a value to a property
of type list<complex> or map<complex> was having the type replaced by
the schema type and the value incorrectly set.
Add test cases to cover the problem.
Include small refactors.

Issue-ID: SDC-3926
Change-Id: I1257dbb02e18b103118672ec52d663707d53229c
Signed-off-by: andre.schmid <andre.schmid@est.tech>
(cherry picked from commit 88fdc6dd75f1119ffa8e54dbfd721b6ed722b779)
catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InputsBusinessLogic.java
catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceBusinessLogic.java
catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/PropertyValueConstraintValidationUtil.java
catalog-be/src/main/java/org/openecomp/sdc/be/servlets/ComponentPropertyServlet.java
catalog-be/src/test/java/org/openecomp/sdc/be/datamodel/utils/PropertyValueConstraintValidationUtilTest.java
catalog-be/src/test/resources/types/datatypes/constraintTest.json
catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyDefinition.java
common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyDataDefinition.java
common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/SchemaDefinition.java