summaryrefslogtreecommitdiffstats
path: root/asdctool/src/test/java
AgeCommit message (Collapse)AuthorFilesLines
2020-04-20Remove props from ValidationConfigManagerFrancis Toth1-17/+0
Signed-off-by: Francis Toth <francis.toth@yoppworks.com> Change-Id: I1c3a845c44722010e8933876e59752cef00937f0 Issue-ID: SDC-2499
2020-04-19Configure a new Artifact Typeandre.schmid1-1/+1
Centralizes artifact configuration in one yaml entry. Allow the configuration of a new artifact type without the need of code changes. The configuration file now is used as a source of artifacts types instead the artifact type enum. The enum will be used as a source of base artifact types and also in hard coded business rules. Change-Id: Id0383d9fca9bce0519a4d52a4ecb3a68c8713f0f Issue-ID: SDC-2754 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2020-04-16Upgrade Junit to version 5.6Baumel, Dvir (db384r)2-8/+10
Issue-ID: SDC-2844 Change-Id: I4716bf7920f9bb79c450ebfd48e9d4fba54fdfdd Signed-off-by: Baumel, Dvir (db384r) <dvir.baumel@intl.att.com>
2020-04-01Increase test coveragevasraz1-99/+0
Change-Id: I290371a025ba3376a013ba464e4dfb601d74aa8b Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2833
2020-03-19Added new unit testsk.kedron1-149/+122
Added new unit tests to GraphMLConverter class. Fixed the Sonar issue. Issue-ID: SDC-2327 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I985a860012c0c2b0b6524c0a2346415cb113d83c
2020-03-10Added new unit testsk.kedron1-14/+31
Added new unit tests to GraphMLDataAnalyzer class. Fixed the Sonar issue. Issue-ID: SDC-2327 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I9a61dff2e9b0be1733de00b06c255abb8a3d5a8f
2020-01-26Increase junit TCsvasraz1-118/+126
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 alignmentys969351-1279/+636
Issue-ID: SDC-2724 Signed-off-by: ys9693 <ys9693@att.com> Change-Id: I52b4aacb58cbd432ca0e1ff7ff1f7dd52099c6fe
2019-08-22unit tests - asdctoolTomasz Golabek3-0/+147
Additional junit tests Change-Id: I889772efaccbc6f1555d50cd47a02d868348d310 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-07-24Autowired annotation for catalog-beTomasz Golabek2-49/+0
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-22Improved test for ReportManger, ArtifactValidationUtils and Sonar fixes.k.kedron3-74/+267
Add new ReportManagerHelper to read files with reports. Fixed log.info to print the types of exception in the messages. Removed redundant new lines in the report files. Issue-ID: SDC-2327 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: If0135f01a05b0936dad681d16e846a6c6560cc80
2019-07-22Improved the CsarGenerator unit tests.k.kedron1-42/+283
Improved the CsarGeneratoryTest. Checkstyle for CsarGenerator and fixed typos. Issue-ID: SDC-2327 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I8159dd47540ee3f5ed8b46f99c494c0cb24ed1d6
2019-07-22Improved unit tests for ArtifactValidationUtils and Sonar fixes.k.kedron3-128/+268
Added new tests for ArtifactValidationUtils. Checkstyle in the ValidationConfigManager and ArtifactValidationUtils. Added private constructor to ValidationConfigManager. Added logger for ArtifactValidationUtils and simplified code. Updated the ValidationConfigManagerTest and ReportManagerTests to not influence on each other. Issue-ID: SDC-2327 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I9c7c725792737b6cfa6bba20eeeb3b1d4ef1e471
2019-07-16Fixing buildWojciech Sliwka1-1/+3
Change-Id: Ia75cdf511e44347294bb646add89b6c1f60f239c Issue-ID: SDC-2403 Signed-off-by: Wojciech Sliwka <wojciech.sliwka@nokia.com>
2019-07-16Constructor injection in asdctoolPiotr Darosz16-77/+152
Use constructor injection where possible Change-Id: Ibc80850166406a6e3230f555818988109e6ca776 Issue-ID: SDC-2403 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
2019-07-14ComponentCache & ComponentCassandraDao removalTomasz Golabek1-6/+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 Golabek70-48/+1448
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-07Remove field injection in catalog-daoWojciech Sliwka6-14/+28
Change-Id: I24c3a898fa34491e80074944614722fbb3085515 Issue-ID: SDC-2398 Signed-off-by: Wojciech Sliwka <wojciech.sliwka@nokia.com>
2019-06-23ExportImportMenu testsTomasz Golabek1-0/+272
Main class tested and refactored Change-Id: I379a18c289b613cdc7ecbb1617618af96ffa275b Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-06-13Added unit tests for SpringCLIToolPiotr Borelowski1-0/+61
Improved the unit test coverage in the package org.openecomp.sdc.asdctool.cli Issue-ID: SDC-2327 Signed-off-by: Piotr Borelowski <p.borelowski@partner.samsung.com> Change-Id: Ie5b262587ae704952eb75f8f4008f4d321a4acbd
2019-06-12Upgrade SDC from Titan to Janus Graphshrikantawachar21-133/+141
Upgrade SDC from Titan to Janus Graph Change-Id: I67fb8b8e60cc6751697bc5ff2f06754c92803786 Issue-ID: SDC-2296 Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
2019-06-12Added unit tests for CLIToolPiotr Borelowski1-0/+79
Improved the unit test coverage in the package org.openecomp.sdc.asdctool.cli Issue-ID: SDC-2327 Signed-off-by: Piotr Borelowski <p.borelowski@partner.samsung.com> Change-Id: I06bc14882d7e608b9e7beef49f310b708290a7f5
2019-06-10Inheritance in ComponentExceptionTomasz Golabek1-4/+24
ComponentException was split into ByActionStatus and ByResponseFormat exceptions. Test added for ComponentLockAspectTest in passing Change-Id: I89c9ee966b8b4445e791af897bd60cdb845b845b Issue-ID: SDC-2321 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-06-03fix sonar: close resourcesk.kazak1-3/+7
Use try-with-resources to close file data stream Fix tests for GraphJsonValidator Change-Id: I20931b4ef815abfb8da8ebd6242b765d0b02ef23 Issue-ID: SDC-2340 Signed-off-by: k.kazak@samsung.com
2019-04-01Increase test coverage for asdctoolParshad Patel4-0/+162
Add basic JUnit test cases in asdctool/migration/tasks/mig1806 Add hamcrest-all version in parent pom.xml Issue-ID: SDC-1895 Change-Id: I88b1bdb2f3619721fe80f57f0526de5b59e8a6af Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2019-02-26Fix Blocker & Critical Sonar issues in asdctoolParshad Patel1-2/+4
Fix NullPointerException issues Update test case Issue-ID: SDC-1895 Change-Id: I183b0bee127efa4331e79a1b76df558dbc9ca33a Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2018-10-24UT-asdctool DataMigrationSindhuri.A1-3/+103
UT for asdctool impl DataMigration class Issue-ID: SDC-1775 Change-Id: I78a114127ec461a74b29b226026a93c0a895befe Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-10-17UT-asdctool ModuleJsonTaskSindhuri.A1-13/+60
UT for asdctool impl validator ModuleJsonTask class Issue-ID: SDC-1775 Change-Id: Ia160c4b2b64313bd11927aaa45bf887ed3df96df Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-10-17UT-asdctool ArtifactUuidFixSindhuri.A1-67/+170
UT for asdctool impl ArtifactUuidFix class Issue-ID: SDC-1775 Change-Id: Idcf66bf73cdf013d615f4b7967197c3b99ee70e2 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-09-25UT-asdctool DeleteComponentHandlerSindhuri.A1-0/+91
UT for asdctool DeleteComponentHandler class Issue-ID: SDC-1775 Change-Id: Ifc574602d0451ad561a4d362f9d6bd0e4d17ff75 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-09-25UT-asdctool utils ReportWriterSindhuri.A1-0/+50
UT for asdctool utils ReportWriter class Issue-ID: SDC-1775 Change-Id: I8c53f2fa7db51bde899325feb503a5b1527ef85e Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-09-25UT-asdctool CsarGeneratorSindhuri.A1-0/+92
UT for asdctool CsarGenerator class Issue-ID: SDC-1775 Change-Id: I3ccc58d8d17dfab0baf5666ac9ce0d1b4adcd684 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
2018-08-06ASDC dead code removalPiotr Krysiak3-59/+0
Issue-ID: SDC-1493 Change-Id: I74c1748eb2b1f478a0e44b07c174f95964fed667 Signed-off-by: Piotr Krysiak <piotr.krysiak@nokia.com>
2018-07-29re base codeMichael Lando33-393/+1013
Change-Id: I12a5ca14a6d8a87e9316b9ff362eb131105f98a5 Issue-ID: SDC-1566 Signed-off-by: Michael Lando <ml636r@att.com>
2018-06-12update sdc logic for new typesMichael Lando1-1/+8
update sdc conformance level and add logic to package onap normatives. Change-Id: I321eeb0cccf662346eb36cb42420fd8fca72ae32 Issue-ID: SDC-1380 Signed-off-by: Michael Lando <ml636r@att.com>
2018-05-06Raise JUnit coverage asdctoolTal Gitelman56-184/+2778
Change-Id: I26742875e8e3dddb98b525c4833588bc23d81fdc Issue-ID: SDC-1296 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2018-05-01Remove dead code asdctoolTal Gitelman17-68/+68
Change-Id: I467f70b442a02a15b8a18b160309bac9a8ab3f9a Issue-ID: SDC-1270 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2018-03-07Sync Integ to MasterMichael Lando2-116/+36
Change-Id: I71e3acc26fa612127756ac04073a522b9cc6cd74 Issue-ID: SDC-977 Signed-off-by: Gitelman, Tal (tg851x) <tg851x@intl.att.com>
2018-02-05Correction of unit tests in test classpwielebs1-88/+35
Change-Id: I4642fd858ea59024df61fe2f118852a8ccbce408 Issue-ID: SDC-1001 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2017-12-10Final commit to master merge fromTal Gitelman23-106/+307
Change-Id: Ib464f9a8828437c86fe6def8af238aaf83473507 Issue-ID: SDC-714 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2017-10-22add more unit tests remove importsYuli Shlosberg2-54/+24
Change-Id: If2274759f929f595e63d71cc70c374268c019947 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit b947eb599bfab4599ce1b0c0573b1701c646e429)
2017-10-22add unit tests to sdc componentsYuli Shlosberg14-0/+974
Change-Id: Ia6b18b223dc79906289f856fee3bf18d75e28232 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit 4bc2f0f7d26f0c8eb1d32c9be97e83070f196abe)
2017-07-20[SDC] 1710 rebase + pom modificationsMichael Lando2-26/+9
Change-Id: I1f9c0a5201576c7a6b124f6a786db12c1a8cd7c0 Signed-off-by: Michael Lando <ml636r@att.com>
2017-07-17[SDC] rebase 1710 codeMichael Lando8-0/+553
Change-Id: I532ed68979fee7840ea8a5395e7e965b155fb9f9 Signed-off-by: Michael Lando <ml636r@att.com>
2017-06-09[SDC-29] catalog 1707 rebase commit.Michael Lando1-0/+54
Change-Id: I43c3dc5cf44abf5da817649bc738938a3e8388c1 Signed-off-by: Michael Lando <ml636r@att.com>