aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test/resources/types/datatypes/constraintTest.json
diff options
context:
space:
mode:
authorfranciscovila <javier.paradela.vila@est.tech>2022-10-18 16:02:02 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2022-11-23 10:19:09 +0000
commit166d45efe6de92ce067bc7b6065a0d7de94a6388 (patch)
tree98beeddb9f19651137b9dedfd8a5c91566934f41 /catalog-be/src/test/resources/types/datatypes/constraintTest.json
parent83bbca087a66d5ea4cff1f5d066f7761948a2cb3 (diff)
Fix property constraints validation
Fix property constraints validation behaviour when a property is not required shouldnt be validated vs constraints if no value is provided. Also add constraints validation for length measures in list, map and string types. Issue-ID: SDC-4222 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: I48ebb46b3de9ddac3d9dd91400ea0fad983aa94d
Diffstat (limited to 'catalog-be/src/test/resources/types/datatypes/constraintTest.json')
-rw-r--r--catalog-be/src/test/resources/types/datatypes/constraintTest.json21
1 files changed, 21 insertions, 0 deletions
diff --git a/catalog-be/src/test/resources/types/datatypes/constraintTest.json b/catalog-be/src/test/resources/types/datatypes/constraintTest.json
index 83b4253939..a9d1469068 100644
--- a/catalog-be/src/test/resources/types/datatypes/constraintTest.json
+++ b/catalog-be/src/test/resources/types/datatypes/constraintTest.json
@@ -128,6 +128,11 @@
"uniqueId": "org.openecomp.datatypes.heat.network.neutron.Subnet.datatype.value_specs",
"type": "map",
"required": false,
+ "constraints": [
+ {
+ "minLength": 2
+ }
+ ],
"definition": false,
"defaultValue": "{}",
"description": "Extra parameters to include in the request",
@@ -186,6 +191,14 @@
"uniqueId": "org.openecomp.datatypes.heat.network.neutron.Subnet.datatype.subnetpool",
"type": "string",
"required": false,
+ "constraints": [
+ {
+ "minLength": "2"
+ },
+ {
+ "maxLength": "4"
+ }
+ ],
"definition": false,
"description": "The name or ID of the subnet pool",
"password": false,
@@ -198,6 +211,14 @@
"uniqueId": "org.openecomp.datatypes.heat.network.neutron.Subnet.datatype.dns_nameservers",
"type": "list",
"required": false,
+ "constraints": [
+ {
+ "minLength": "2"
+ },
+ {
+ "maxLength": "4"
+ }
+ ],
"definition": false,
"defaultValue": "[]",
"description": "A specified set of DNS name servers to be used",