Fix Service/VF set value to list/map properties 17/128017/2
authorandre.schmid <andre.schmid@est.tech>
Wed, 23 Mar 2022 15:39:45 +0000 (15:39 +0000)
committerMichael Morris <michael.morris@est.tech>
Mon, 28 Mar 2022 15:28:02 +0000 (15:28 +0000)
commit88fdc6dd75f1119ffa8e54dbfd721b6ed722b779
tree2dd23aa9e31bc833ea2d3351b676963072f43d7d
parentb34392d78130702e86e36b89f848118ac08e7e44
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>
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