summaryrefslogtreecommitdiffstats
path: root/catalog-model/src/test
AgeCommit message (Collapse)AuthorFilesLines
2020-02-25Policies import when import VSPDmitry Puzikov1-0/+4
Polices import implemented. Error type added for invalid policies. Import tests added. Fix test failures. Got rid of Either in the new code. Change-Id: I3e91cc6d24433c2b3862f407348e71e1e67c3b4e Issue-ID: SDC-2728 Signed-off-by: Dmitry Puzikov <d.puzikov2@partner.samsung.com>
2020-02-18Configuration file runtime reloadandre.schmid2-6/+1
Reloads the backend configuration file when the file listener catches a change. Forces validations errors when the configuration file could not be parsed. Remove not used configurations. Change-Id: Ic6fcb2b557d52ec53074c38ab8e0fcfa96e9be67 Issue-ID: SDC-2758 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2020-01-26Increase junit TCsvasraz1-40/+36
1. Re-enable disabled TCs (enable = true) 2. Enable @Ignored TCs 3. Add some Assert when missing 4. Remove old unused TCs (covered in UI) Change-Id: I900e52f4860b1fdc5bd1e529a1fe7f5c3491465b Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2672
2020-01-22Catalog alignmentys969326-235/+342
Issue-ID: SDC-2724 Signed-off-by: ys9693 <ys9693@att.com> Change-Id: I52b4aacb58cbd432ca0e1ff7ff1f7dd52099c6fe
2019-12-05Fix impossible to drag and drop same service twice into the compositionSatoshi Fujii1-0/+50
When a service proxy instance including underscore in its name is added into the composition, instance ID suffix is not properly calculated and that results in duplicate key error due to ID conflict. This change normalizes the name to find existing proxy instances to get suffix number calculated properly. Change-Id: I6f2ceb4b9cf020e1523264a99e1347b6caa98965 Issue-ID: SDC-2043 Signed-off-by: Satoshi Fujii <fujii-satoshi@jp.fujitsu.com>
2019-11-25Fix Sonar issuevasraz1-1/+1
Major SmellCode: Replace StringBuffer with StringBuilder Change-Id: I0283e5160e5c1f23423c66110015f18c8163411e Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2670
2019-11-03Create new non-mano Artifact Type entry for pnf software informationaribeiro2-0/+14
Issue-ID: SDC-2615 Change-Id: I4dd879d50b1dec58aceeaf0c265901c62d038071 Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
2019-09-04unit tests - catalog-modelTomasz Golabek3-0/+246
Coverage increasing Change-Id: Idb7902578aca65eaee1a63871e9b84e3c4767233 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-09-03unit tests - catalog-modelTomasz Golabek4-117/+182
Additional junit tests for be-model Change-Id: I7364cd33411d7f6eb69f9a02b2aea889c594ea7b Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-09-02unit tests - catalog-modelTomasz Golabek1-15/+154
Additional junit tests for ToscaListValueConverter Change-Id: I41e8b501129ceb0640e54e4173b3cdf13983ccd8 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-26unit tests - catalog-modelTomasz Golabek4-0/+217
Additional junit tests Change-Id: I82f88ec4cc1fb18314cfb33dd9aafa58688318e0 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-22unit tests - catalog-modelTomasz Golabek12-144/+393
Additional junit tests Change-Id: I9952933895ba22114fb0bf19a51e54f1a232c8f3 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-08-06Added unit tests for AbstractPropertyConstraintPiotr Borelowski1-0/+113
Improved the unit test coverage in the package org.openecomp.sdc.be.model.tosca.constraints Issue-ID: SDC-2327 Signed-off-by: Piotr Borelowski <p.borelowski@partner.samsung.com> Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I094ab463cc010ecd48e062a1a806b3b907223228
2019-07-25fixing warnings from checkstyle in common-beBartosz Gardziejewski1-1/+1
Issue-ID: SDC-2454 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I1ee7d055f865eef209e621ec45eba33eef69736f
2019-07-24Autowired annotation for catalog-beTomasz Golabek1-1/+1
Injection of the properties moved to the constructors/setters replacing field annotations. Change-Id: I766ff67e466bec5a91db1035f29e7f919d32e0ea Issue-ID: SDC-2400 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-07-21Added unit tests for AbstractStringPropertyConstraintPiotr Borelowski1-0/+85
Improved the unit test coverage in the package org.openecomp.sdc.be.model.tosca.constraints Issue-ID: SDC-2327 Signed-off-by: Piotr Borelowski <p.borelowski@partner.samsung.com> Change-Id: I79c3ecaa6aae9b9c3011d332444b072d7c1dc460
2019-07-14ComponentCache & ComponentCassandraDao removalTomasz Golabek3-839/+0
Also removed all classes uses these two. Change-Id: I6793c3c935ae61c5c65f70d3541c542edf188ab4 Issue-ID: SDC-2389 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-07-11Added oparent to sdc mainTomasz Golabek127-109/+2649
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-07Improved unit tests for ComponentValidationUtils and Sonar fixes.k.kedron1-4/+115
Improved unit tests for ComponentValidationUtils. Checkstyle for ComponentValidationUtils. Add a private constructor to hide the implicit public one in the ComponentValidationUtils. Issue-ID: SDC-2327 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I8a2f2f7b9a5e6475a4e28d13f3acab333b4af6da
2019-07-07Remove field injection in catalog-daoWojciech Sliwka1-3/+4
Change-Id: I96ac13d3b50737518924a3aaa9b320adbba241eb Issue-ID: SDC-2398 Signed-off-by: Wojciech Sliwka <wojciech.sliwka@nokia.com>
2019-06-12Upgrade SDC from Titan to Janus Graphshrikantawachar51-781/+820
Upgrade SDC from Titan to Janus Graph Change-Id: I67fb8b8e60cc6751697bc5ff2f06754c92803786 Issue-ID: SDC-2296 Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
2019-05-20Fixed declared properties are not updated properlySatoshi Fujii1-0/+42
Change-Id: I3712f9656d7cdeb8fa9c4212b2dd1496043c1006 Issue-ID: SDC-2314 Signed-off-by: Satoshi Fujii <fujii-satoshi@jp.fujitsu.com>
2019-05-14Support Capability PropertiesMojahidul Islam3-0/+191
This change includes following changes 1. Get capability properties from global types- BE 2. Show capability properties in cap/req screen 3. Support Capability Properties in assingment, operation and consumption screens Change-Id: Ieb4fa5705007c8bed3d82eb4fe4604572aa202d7 Issue-ID: SDC-2294 Signed-off-by: Mojahidul Islam <mojahidul.islam@amdocs.com>
2019-05-07Change to enable SDC list type inputToshimichi Fukuda4-6/+166
Change-Id: Ic3a9c6e714a5afd22b58bf2cb066932b1ec2a5c0 Issue-ID: SDC-2046 Signed-off-by: Toshimichi Fukuda <t_fukuda@jp.fujitsu.com> Signed-off-by: Satoshi Fujii <fujii-satoshi@jp.fujitsu.com> Signed-off-by: Ayumu Ueha <ueha.ayumu@jp.fujitsu.com>
2019-04-14Declare properties as policiestalio1-2/+2
Change-Id: I54dc7b444e08117097c314cf5f51bd356ac5287d Issue-ID: SDC-2240 Signed-off-by: talio <tali.orenbach@amdocs.com>
2019-03-30Heal Vertex Datashrek200017-52/+115
Enable healing of vertex information when reading it. Issue-ID: SDC-2213 Change-Id: I907beeb25bd231d9e05d3a5b8e070d6bdf9cb781 Signed-off-by: shrek2000 <orenkle@amdocs.com>
2019-03-19Display PNF/VNF Type for PNF (backend)kooper1-1/+9
Change-Id: Ie3fabe2a91c1e9040939e2bfe97705cfee15b201 Issue-ID: SDC-2157 Signed-off-by: kooper <sergey.sachkov@est.tech>
2019-03-04Requirement and capabilities featuremojahidi3-10/+480
1. Enhance Service/VF/PNF to support Req & Cap 2. Added Type fetch APIs to fetch types from global types Change-Id: I2b749ec9da34e488421b8ebe311ccf03c4b7c0fd Issue-ID: SDC-2142 Signed-off-by: mojahidi <mojahidul.islam@amdocs.com>
2019-01-21Operation on PNFsiddharth09051-0/+12
Operation on PNF Change-Id: I51448659eb5e730f42f30c6b5978809cfa1c9b6c Issue-ID: SDC-2054 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2019-01-14Interface operation feature enhancementspriyanshu3-319/+273
1. API restructuring to enhance model and provide more capabilities. 2. Allowed multiple interface creation under same resource/service. 3. Enhanced validations to align with updated model. 4. API restructuring to align UI model with Tosca model. 5. Enhanced Junit and code coverage. 6. Added BDD and CI-API tests. Change-Id: I2d8ac8a6154fd9be8254836ba0da1540210031c0 Issue-ID: SDC-1999 Signed-off-by: priyanshu <pagarwal@amdocs.com>
2019-01-10Add new test cases on existing class.isaac.manuelraj1-0/+68
Added new test cases on top of existing test classes. Issue-ID: SDC-1774 Change-Id: I2025ea57ab61df6955eed7b409e720583a8bdcff Signed-off-by: isaac.manuelraj <isaac.manuelraj@huawei.com>
2018-12-27Revert "Interface operation feature enhancements"priyanshu3-46/+120
This reverts commit 01f825bc Change-Id: I9e41da46a410be335283a27758cb1e77a087046f Issue-ID: SDC-1999 Signed-off-by: priyanshu <pagarwal@amdocs.com>
2018-12-24Interface operation feature enhancementspriyanshu3-120/+46
1. API restructuring to enhance model and provide more capabilities. 2. Allowed multiple interface creation under same resource/service 3. Enhanced validations to align with updated model 4. API restructuring to align UI model with Tosca model 5. Enhanced Junit and code coverage. Change-Id: Ieb5a5d72bc752774f9d702c587efaa127e43bd24 Issue-ID: SDC-1999 Signed-off-by: priyanshu <pagarwal@amdocs.com>
2018-12-19API for get all interface lifecycle typesshrikantawachar1-17/+65
API for get all interface lifecycle types Change-Id: I64471c98ff9626ac53562a075a34f506c2e263ab Issue-ID: SDC-1999 Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
2018-11-25UT-ToscaOperationFacade 6Sindhuri.A1-4/+119
UT for catalog be ToscaOperationFacade class Issue-ID: SDC-1775 Change-Id: I764b9c0f95414b47a757e9b946009b68afd49c72 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-11-19Add UT for Combination model classSatyaki Mallick1-0/+42
Unit Test for Combination class which is part of the Combination feature. Issue-ID: SDC-1774 Change-Id: Iaa69b2f9f583469603ccd7183b93eb5eb100cfe2 Signed-off-by: Satyaki Mallick <satyaki.mallick@huawei.com>
2018-11-19UT-ToscaOperationFacade 5Sindhuri.A1-0/+26
UT for catalog be ToscaOperationFacade class Issue-ID: SDC-1775 Change-Id: Ie47efa5e9146070f3ef7ec69683db3cbbca1650e Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-11-19UT-AdditionalInfoOperation2Sindhuri.A1-0/+43
UT for AdditionalInformationOperation class Issue-ID: SDC-1775 Change-Id: I971043f92b6566b121f3d31201ce29148d7d2b85 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-11-19UT-enhance NodeTemplateOperationTest4Sindhuri.A1-97/+106
UT for catalog model NodeTemplateOperation class Issue-ID: SDC-1775 Change-Id: Ib7907643e19264d94bda7cf04f4ad72b410eac42 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-11-12UT-ToscaOperationFacade 4Sindhuri.A1-0/+27
UT for catalog be ToscaOperationFacade class Issue-ID: SDC-1775 Change-Id: I9d42dfe6d6a2997e2d9f96d0fdd0f617a0e2cc3c Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-11-01UT-ToscaOperationFacade 3Sindhuri.A1-0/+47
UT for catalog be ToscaOperationFacade class Issue-ID: SDC-1775 Change-Id: I72849bcaa5b86bf77c41ce8aa320e32ca12be719 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-11-01UT-enhance NodeTemplateOperationTest3Sindhuri.A1-20/+29
UT for catalog model NodeTemplateOperation class Issue-ID: SDC-1775 Change-Id: Id40b90421b1fb4698a03707b245ccd5ce79721c4 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-11-01Add UT for ComponentValidationUtilsSatyaki Mallick1-0/+31
UT for ComponentValidationUtils. Issue-ID: SDC-1774 Change-Id: I0154d592a7f059b01843d7bf18f75a1e5bb9916f Signed-off-by: Satyaki Mallick <satyaki.mallick@huawei.com>
2018-10-29UT-TopologyTemplateOperationSindhuri.A1-3/+56
Add UT for catalog model TopologyTemplateOperation class Issue-ID: SDC-1775 Change-Id: I4962899dd946edcdeeb2d58c867a9b8d3a1904df Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-10-29UT-enhance ComponentInstanceOperationTestSindhuri.A1-22/+62
UT for catalog model ComponentInstanceOperation class Issue-ID: SDC-1775 Change-Id: I1805fea86f34f9cf67eaaa5e3c6c5750e91176c3 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-10-29UT-ToscaOperationFacade 2Sindhuri.A1-0/+46
UT for catalog be ToscaOperationFacade class Issue-ID: SDC-1775 Change-Id: I2f66bc665d2b50279ba1fb46f79ca3423311afd0 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-10-29UT-enhance NodeTemplateOperationTest2Sindhuri.A1-10/+21
UT for catalog model NodeTemplateOperation class Issue-ID: SDC-1775 Change-Id: I935f6cebcf12263c6f03f116a55056b290fb215a Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-10-29UT-ToscaElementOperationSindhuri.A1-0/+15
UT for catalog be ToscaElementOperation class Issue-ID: SDC-1775 Change-Id: I2b4824897dbd08c028d1dd3e1c6e50c6883dfe95 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-10-27UT-ToscaOperationFacadeSindhuri.A1-10/+95
UT for catalog be ToscaOperationFacade class Issue-ID: SDC-1775 Change-Id: I6fca2609a4c09ac3eba36243296989c649d77992 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-10-27UT-catalog model ModelConverter 2Sindhuri.A1-0/+21
Add UT for catalog model ModelConverter class Issue-ID: SDC-1775 Change-Id: I8cb17faa5a65391bc1ee0d58ed107eccf2e89204 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>