aboutsummaryrefslogtreecommitdiffstats
path: root/common/onap-tosca-datatype/src/main
AgeCommit message (Collapse)AuthorFilesLines
2023-09-07Create plugin point for csar generationvasraz1-2/+2
Issue-ID: SDC-4578 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: I3bb280ce4e442780598464216145abc130765539 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
2023-03-23Upgrade vulnerable dependenciesvasraz2-17/+57
Fix missing default no-args constructor Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Icfcbe0ec577b2d629179fa46e42141c196e08970 Issue-ID: SDC-4287 Issue-ID: SDC-4446
2022-12-20Add support comparable type constraints for scalar valuesvasraz1-1/+3
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I57234399f23721506d308dfb8351067845ebe892 Issue-ID: SDC-4305
2022-12-15Fix 'Tosca List Entry Schema failed to be recoginized with creating VSP'-bugvasraz2-6/+19
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Id33f7eff96b06a1cfb5e3e5d967b4e17da14a9a8 Issue-ID: SDC-2851
2022-12-12Add missing 'scalar-unit.bitrate' data typevasraz1-0/+3
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I33faf90f04667ef2b8a334dfba39fe256a21c223 Issue-ID: SDC-4300
2022-06-29VFC properties of type timestamp not visible in property assignmentfranciscovila1-0/+1
Fixing issues with timestamp type Issue-ID: SDC-4048 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: Iaf5c14cbfcd00fd964974388e42e2e26e9101d3b
2022-05-30Support of get_property in property assignmentandre.schmid1-1/+5
Refactors the current way store a get_input function allowing to support different get functions (get_property in this case). The information stored allows recreating and correctly validating the get function. Fix get function schema validation, the schema was being ignored. Improve validation error status and messages. Improve tosca get function dialog. Change-Id: I5de5f96dfba3c7a0fbb458885af5528bea7835aa Issue-ID: SDC-4014 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2022-01-21Support node template artifact propertiesJvD_Ericsson1-0/+3
Add properties variable to relevant classes and update functions to set these vaules Added properties to an artifact in ETSI-VNF-SAMPLE.csar Issue-ID: SDC-3847 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: Id4f835826be7556cd97403da2018644c6dfea95b
2021-06-14Add models imports endpoint and persistence structureandre.schmid2-72/+13
Create the structure to persist the model imports. Changed create model API, allowing to create a model along its TOSCA descriptor import structure. Introduced an endpoint to update the imports of a model. Change-Id: Ic775ef544051c29c721cacc20b37c2fb20338be9 Issue-ID: SDC-3614 Signed-off-by: André Schmid <andre.schmid@est.tech>
2021-03-29Improve test coverage (common)vasraz11-585/+73
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3428 Change-Id: I60862879fc09a81369d6e5fdf9f3c985994b163e
2021-03-29Reformat commonvasraz68-1550/+1285
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3449 Change-Id: Ifa1412b8a614f7cdb4c52f05d811ab5e9cf20d83
2021-03-12Adding unit testsxuegao1-12/+7
Adding unit tests to improve test coverage. Issue-ID: SDC-3428 Signed-off-by: xuegao <xue.gao@intl.att.com> Change-Id: I57da2ff92839cb78985e5f3d3c13dc575c1b6c17
2021-02-23Upgrade Vulnerable Direct Dependencies [snakeyaml]JulienBe4-214/+257
Change-Id: I84417ab3d4f18634be519b837a34d1f1e774ceff Signed-off-by: amohamad <a.mohamad@queensu.ca> Issue-ID: SDC-3051 Updated MVN dependencies in the respective pom.xml files Updated the signature of some methods to match new version 1.26 Modified test cases to match the new wording of exceptions Still working on troublshooting other failing test cases Change-Id: Ifc796574e6d8d4e4fc707db04944d83427b5dbe6 Signed-off-by: amohamad <a.mohamad@queensu.ca> Signed-off-by: JulienBe <julien.bertozzi@intl.att.com>
2020-11-17Fix import VFC with attributesaribeiro1-21/+35
Fix import VFC with default attribute value Fix Update, create and delete attribute action Make attribute definition tosca compliant Issue-ID: SDC-3381 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: Ibbd36b105b8c86d1e750f3b6d55752d63fe6530e
2020-09-08Upgrade to java 11sebdet1-0/+64
MOve SDC to Java 11, this is one of the PR to move to Jdk 11, jenkins will have to be changed as well Issue-ID: SDC-2725 Change-Id: I85f13f14ba8004f6e9656093a837465a2e4af3e1 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Signed-off-by: xuegao <xg353y@intl.att.com> Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-09-07Template design (NSSTs) for slice sub-nets (RAN, Core, Transport).hekeguang1-0/+418
Issue-ID: SDC-3086 Change-Id: Ib70da9e03d6dd152d901344c60f8ba47f38450fe Signed-off-by: hekeguang <hekeguang@chinamobile.com>
2020-07-09Add support for substitution_filter business logicaribeiro4-147/+15
Tosca simple YAML profile allows for substitution_filter to be specified for a topology template to provide processing instructions to the orchestrator. Issue-ID: SDC-3147 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: Ia94b8c447d3157e614f9d1524ad4520b3980ba4d
2020-06-19Remove unused methodxuegao1-98/+8
Removing unused method in Constraint and use lombok annotations instead. Issue-ID: SDC-3130 Signed-off-by: xuegao <xg353y@intl.att.com> Change-Id: Ia718d184c55d40503f42830966bb11675b7c3f85 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-06-18create tests for ScalarUnitValidator.javaJulienBe1-2/+4
Issue-ID: SDC-3123 Change-Id: Iaa60ce2df46ee7a4d9138a56cf4d4c115a059240 Signed-off-by: JulienBe <julien.bertozzi@intl.att.com>
2020-06-18create tests for PropertyTypeExt.java and remove unsused methodJulienBe1-44/+30
Issue-ID: SDC-3124 Change-Id: I5d3baeeff23c0003952eabc39a5f9dd296dd7c39 Signed-off-by: JulienBe <julien.bertozzi@intl.att.com>
2020-06-17Fix Java Code Conventions non-compliance issuesxuegao1-3/+0
Update locations of the constructor and private variable to comply with the Java Code Conventions. Issue-ID: SDC-3121 Signed-off-by: xuegao <xg353y@intl.att.com> Change-Id: I0114c880e389f0ed167262c9cd513583be35ba56 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-04-20Fix Tosca properties declarationaribeiro1-1/+1
Remove duplicated entries Default value for Boolean type should not be a String According to the description for the keyname 'attachments:' it should be of type List rather than String Issue-ID: SDC-2870 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: Iac2b4f89dac16a6aef9dcabea74def5cacff99a6
2019-11-19Fix for scalar-unit type value.aribeiro2-20/+95
Issue-ID: SDC-323 Change-Id: I7f19a7356e1cd34deca0a168b3cb707ef657b9cb Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
2019-10-30Fix zip slip security flawandre.schmid1-2/+2
Apply zip slip checking in zip operations throughout the system. Centralizes most of the zip logic in one class. Create tests to zip functionalities and zip slip problem. Change-Id: I721f3d44b34fe6d242c9537f5a515ce1bb534c9a Issue-ID: SDC-1401 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-10-29Fix for status properties value.aribeiro12-394/+384
These changes were made to align the normative types to the TOSCA property definition requirements. Issue-ID: SDC-322 Change-Id: I32e815dd26990dd6c82c859ad051b271db3c8029 Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
2019-09-04common code coverage increasePiotr Darosz1-3/+4
Add tests for classes in sdc.tosca.datatypes.model package Change-Id: Ifc277512d833b2501f0e594b9062d39c26565055 Issue-ID: SDC-2326 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
2019-09-03Implement PNFD Model driven conversionandre.schmid1-0/+36
Change-Id: I7427e82353cac17817457294d78953f867d2d6e8 Issue-ID: SDC-2509 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2019-07-17Fix checkstyle violations in sdc-main/commonmichal.banka21-96/+74
Change-Id: I3e132cf4bffd77f9910bf6eff2026c3267873b11 Issue-ID: SDC-2454 Signed-off-by: michal.banka <michal.banka@nokia.com>
2019-07-16Add Lombok support to Repositorynoahs1-27/+6
add @Data annotation Change-Id: I0a56a2f1978035a00eb4edafd5ecc7db6a7301a4 Issue-ID: SDC-2401 Signed-off-by: noahs <noah.shogan@amdocs.com>
2019-07-11Added oparent to sdc mainTomasz Golabek13-1/+241
Removed errors regarding to a missing license and others. Started locally and executed basic api tests Change-Id: Iea37613defc97f7b40613d60c10990841cb2a209 Issue-ID: SDC-2419 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-07-08Move import handling to service templateojasdubey2-3/+135
Moving the handling of all import formats parsing to ServiceTemplate class to make it generic and reusable Change-Id: I80595c3654a625275549a3bb3afe8ba7c9455aff Issue-ID: SDC-2421 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2019-06-23Add Lombok support to RelationshipTypenoahs1-75/+15
add @Data annotation Change-Id: I185a32166a6efe9d221c260a0f25d958dec2690e Issue-ID: SDC-2380 Signed-off-by: noahs <noah.shogan@amdocs.com>
2019-06-17Add lombok support to simple classesOren Kleks1-39/+4
Change-Id: I98ced4b0f30c3b676e02de08ccab0c06bc7b8965 Issue-ID: SDC-2354 Signed-off-by: shrek2000 <orenkle@amdocs.com>
2019-06-16BeanUtils upgrade to 1.9.xTomasz Golabek1-6/+19
Transitive dependency to beanutils 1.8.3 removed. Refactor of existing usage of beanutils proposed. Change-Id: I6614a5794979225376338c778b25f71911ae9c50 Issue-ID: SDC-2269 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-06-06Add lombok support to simple classesshrek20001-26/+6
Change-Id: I1d39f6bc0513189ce0f3581ddc51e9f557d2dadc Issue-ID: SDC-2354 Signed-off-by: shrek2000 <orenkle@amdocs.com>
2019-06-06Add lombok support to simple classesOren Kleks1-56/+4
Change-Id: Ie4c25fd87b3e302f7dd19f4d0156524398e1af55 Issue-ID: SDC-2354 Signed-off-by: shrek2000 <orenkle@amdocs.com>
2019-06-06Add lombok support to simple classesshrek20001-39/+4
Change-Id: I76b00170ba5304bf82df3903cc381d46d7f0f513 Issue-ID: SDC-2354 Signed-off-by: shrek2000 <orenkle@amdocs.com>
2019-06-05Add lombok support to simple classesshrek20001-123/+6
Change-Id: Id4db17168cce9a6a02138c2c6bd74971159994dc Issue-ID: SDC-2354 Signed-off-by: shrek2000 <orenkle@amdocs.com>
2019-06-05Add lombok support to simple classesshrek20001-38/+2
Change-Id: Ic48b301b2e45815bfb9e71d26626ad89cb61d753 Issue-ID: SDC-2354 Signed-off-by: shrek2000 <orenkle@amdocs.com>
2019-06-05Add lombok support to simple classesshrek20001-31/+5
Change-Id: I7060b515880159261fd228bdcfe5e75f84e2d99b Issue-ID: SDC-2354 Signed-off-by: shrek2000 <orenkle@amdocs.com>
2019-06-05Add lombok support to simple classesshrek20001-15/+4
Change-Id: Ic3956c9c6f4fddf412a2216de3d79a2cb2d779b0 Issue-ID: SDC-2354 Signed-off-by: shrek2000 <orenkle@amdocs.com>
2019-05-30Add Lombok support to RelationshipTemplatenoahs1-72/+2
add @Data annotation Change-Id: I030c5dc506b3fabcb6f447016dc1e74aeb2df30f Issue-ID: SDC-2343 Signed-off-by: noahs <noah.shogan@amdocs.com>
2019-05-28Add Lombok support to PreconditionDefinitionnoahs1-23/+2
add @Data annotation Change-Id: Ia1482cfb0b1775d4d729df7d0bfc182f59dd15b5 Issue-ID: SDC-2331 Signed-off-by: noahs <noah.shogan@amdocs.com>
2019-03-17Load TOSCA package into Tosca model objectshiria1-1/+5
Change-Id: I24360bcd988df48359eb6092f6a80e989e35f026 Issue-ID: SDC-2192 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-11-28Add updated normative typesYuli Shlosberg1-1/+22
Change-Id: I89977232727fd5516111279639a9ca19e7ce5018 Issue-ID: SDC-1962 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
2018-10-15Fix Policy type and Policy definitionshiria4-203/+148
Fix policy according to TOSCA spec Change-Id: I4e3da732666dd52895c4458f0cbd16c6ca47c1cd Issue-ID: SDC-1782 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-10-08Add support of interface in TOSCA datatypesshiria26-776/+1333
Move all interface functionality from DataModelUtil class to TOSCA datatype relevant class Change-Id: Ifea22b60e9a71fe024e87f9987a749e9d56aad82 Issue-ID: SDC-1781 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-09-27DM modification to align with R2 DM clean versionliang ding4-78/+94
Change-Id: Ifcb5d3e644f46e4c9a4467e28b0dd7616b485497 Issue-ID: SDC-1415 Signed-off-by: liang ding <liang.ding@intel.com>
2018-09-09Add support for service substitution filtershiria5-72/+226
Change-Id: Id320380b83f072e0b8f5a81831111cbe96957d78 Issue-ID: SDC-1740 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-08-26related-networks property support as inputAssaf, Shay (sa726r)1-1/+1
Change-Id: I2d6fb011f7440127559a8f02b1c8a72095694403 Issue-ID: SDC-1658 Signed-off-by: Assaf, Shay (sa726r) <sa726r@intl.att.com>