summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/test
AgeCommit message (Collapse)AuthorFilesLines
2020-09-07Fix Vulnerabilities reported by SONARvasraz4-174/+0
Change-Id: I8f4e173a4ea5111db55eebaf15be86f1583082ad Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3248
2020-07-22Fix CRITICAL BUGvasraz1-28/+49
https://sonarcloud.io/project/issues?fileUuids=AXF_8JZ3aPDFCRVJURGa&id=onap_sdc&resolved=false&types=BUG Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3204 Change-Id: I55f1c6c95c4de59d9ca5493d99c7fd3569379622
2020-04-19Validates artifact configurationandre.schmid1-0/+76
Validates if all the SDC base artifacts are configured. The base artifacts are provided by the ArtifactTypeEnum. Change-Id: Iffa38d6ba276014940afad71f7472bc8d730fcf8 Issue-ID: SDC-2929 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2020-04-19Configure a new Artifact Typeandre.schmid1-27/+20
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-19ZipSlip test fails on Mac OSNeil Derraugh1-2/+2
Mac OS has a symlink in the tmp dir that gets created in the test for ZipSlip. Using real paths prevents the test test from failing by using actual paths instead of a potentially different symlinked path to the canonical path. Issue-ID: SDC-2887 Signed-off-by: neil.derraugh <neil.derraugh@yoppworks.com> Change-Id: Iafb0a84f6ab68276c5782c1ef716c59435aa72f5
2020-02-18Configuration file runtime reloadandre.schmid3-16/+12
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-22Catalog alignmentys969321-1539/+71
Issue-ID: SDC-2724 Signed-off-by: ys9693 <ys9693@att.com> Change-Id: I52b4aacb58cbd432ca0e1ff7ff1f7dd52099c6fe
2019-11-27Add API to retrieve UI configurationilanap3-0/+260
Added configuration file with the menu configuration from catalog-ui. Added to the configuration manager. to chef and to the ui rest APIs. Issue-ID: SDC-2663 Signed-off-by: ilanap <ilanap@amdocs.com> Change-Id: Ia5e014a273238981241821c0d81b0455bd662b28 Signed-off-by: ilanap <ilanap@amdocs.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 informationaribeiro1-12/+0
Issue-ID: SDC-2615 Change-Id: I4dd879d50b1dec58aceeaf0c265901c62d038071 Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
2019-10-30Fix zip slip security flawandre.schmid5-67/+172
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-09-03unit tests - common-app-apiTomasz Golabek4-0/+236
Additional junit tests for common Change-Id: I79dd83e4de767652c019db292bdf7a23d9dca8a4 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-09-02testing common-app-api utils YamlToObjectConverterBartosz Gardziejewski1-0/+176
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I10fc2d7a35150e97b90a1c69c4faac949e439db3
2019-08-30testing common-app-api utils ValidationUtilBartosz Gardziejewski1-356/+780
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I49339dd340b2262f81d750ae7fe6165f3fabca14
2019-08-29refactoring tests in Common-App-Api utilBartosz Gardziejewski9-102/+832
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Id2c3d3ade4ec176eaee6302c46ddc4009eb40931
2019-08-23increasing test coverage in common-app-api common catalogBartosz Gardziejewski7-4/+450
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ida905fc6f0f28d75522c865d33abf636c1fb7fdb
2019-08-23increasing test coverage in common-app-api exception catalogBartosz Gardziejewski10-0/+507
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I0dd6bc60c88acbcf1b3755627a7b10b874a549ba
2019-08-23increasing test coverage in common-app-api fe catalogBartosz Gardziejewski5-482/+299
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ib4ca69ef881ea5db4f1d186b00f9a1cfbc603259
2019-08-23increasing test coverage in common-app-apiBartosz Gardziejewski6-2028/+289
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I7ae64864734e7246681ca6ef6d6bb71b3d3df158
2019-07-23File name calculation refactoringPiotr Darosz1-0/+61
FSConfigurationSource file name calculation refactoring and tests Change-Id: Idf1c45f860e12c14cfe88417500f2169b5dc86f7 Issue-ID: SDC-2474 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
2019-07-17fixing warnings from checkstyle in common-app-apiBartosz Gardziejewski1-4/+5
Issue-ID: SDC-2454 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I17c562380e39f3eab6b3bff45a4a12fe8a586cec
2019-07-11Added oparent to sdc mainTomasz Golabek44-37/+917
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-06-12Upgrade SDC from Titan to Janus Graphshrikantawachar3-41/+41
Upgrade SDC from Titan to Janus Graph Change-Id: I67fb8b8e60cc6751697bc5ff2f06754c92803786 Issue-ID: SDC-2296 Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
2019-06-11Add unit tests for MutableHttpServletRequestm.kowalski31-0/+75
Issue-ID: SDC-2327 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com> Change-Id: Ic6e68ff3bc10eefa9143a5c7fcac9dcb91d384af
2019-06-02Improve unit tests for ESTimeBasedEventm.kowalski31-108/+96
Issue-ID: SDC-2327 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com> Change-Id: I4e53f5f4cf14c5b44d72b10de53e5641e75a98b1
2019-06-02Improve unit tests for EcompErrorConfigurationm.kowalski31-49/+94
Issue-ID: SDC-2327 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com> Change-Id: I8ddaa70b02eeda837e5f74cd105a3e803d8652e6
2019-05-30Add unit tests for ConfigurationManagerm.kowalski34-0/+186
Issue-ID: SDC-2327 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com> Change-Id: I2acfba224c46ffa743a254b1c560767b947f8fdd
2019-05-27Add unit test for ErrorConfigurationm.kowalski31-40/+79
Issue-ID: SDC-2327 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com> Change-Id: I7e324be0b75238bb782004ac1659d51e2c1f3ffc
2018-11-26SDC can not handle complex string in tosca yamlTal Gitelman1-1/+1
Issue-ID: SDC-1918 Change-Id: I86957b5d4bf0dab5ca749623efbccd6f4b535f10 Signed-off-by: Tal Gitelman <tal.gitelman@att.com>
2018-11-13vCPE Tunnel XConn : allottedResourcEtype isTal Gitelman1-1/+1
- failing to match SO trigger Change-Id: I5e56408f619487c436e7547c0935b3791d24016d Issue-ID: SDC-1909 Signed-off-by: Tal Gitelman <tal.gitelman@att.com>
2018-11-01Add test case for RestUtil.javaisaac.manuelraj1-0/+21
Add test case for RestUtil.java class. Issue-ID: SDC-1774 Change-Id: Ic048bcbac46514d08ec2328b0ab488fbdc606e0a Signed-off-by: isaac.manuelraj <isaac.manuelraj@huawei.com>
2018-09-05add ability to disable tenant isolation.Tal Gitelman1-547/+24
Change-Id: I35b6db5ec0d3aa91295f57b60c04243b3f3d2208 Issue-ID: SDC-1571 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2018-08-15maven improvements and clean upMichael Lando1-1/+1
update plugging to latest available versions, remove un needed files from source control clean up commented sections. disable verbose for docker plug in. add logback file for tests to disable out put by default. update logging calls to new api. disable logging on debug level. update docker run to include simulator on demand Change-Id: Icc0fb7add6dd4fe65f5f3d8dd309fd8dae2681fc Issue-ID: SDC-1639 Signed-off-by: Michael Lando <ml636r@att.com>
2018-08-05add removed unit testsMichael Lando25-0/+4571
Change-Id: Iabd593d8d9ab0efeb32032d5c4d72b8fa1c27e63 Issue-ID: SDC-1590 Signed-off-by: Michael Lando <ml636r@att.com>
2018-07-29re base codeMichael Lando53-4707/+990
Change-Id: I12a5ca14a6d8a87e9316b9ff362eb131105f98a5 Issue-ID: SDC-1566 Signed-off-by: Michael Lando <ml636r@att.com>
2018-05-10Add common-app-api unit testsLior Nachmias14-12/+1788
Change-Id: I93cffb47273ddcdc2c11777c3ed0185f85829b9a Issue-ID: SDC-1317 Signed-off-by: Lior Nachmias <ln699k@att.com>
2018-04-24Create on boarding dockerAvi Ziv1-28/+0
Add BE and Cassandra init docker images Change-Id: Id9d767c73fc946819cec821b4634ce650cbb22fd Issue-ID: SDC-781 Signed-off-by: Michael Lando <ml636r@att.com>
2018-03-07Sync Integ to MasterMichael Lando5-188/+116
Change-Id: I71e3acc26fa612127756ac04073a522b9cc6cd74 Issue-ID: SDC-977 Signed-off-by: Gitelman, Tal (tg851x) <tg851x@intl.att.com>
2017-12-10Final commit to master merge fromTal Gitelman35-80/+8
Change-Id: Ib464f9a8828437c86fe6def8af238aaf83473507 Issue-ID: SDC-714 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2017-10-23add unit tests to componentsYuli Shlosberg1-0/+2
Change-Id: I665ad7f9f25c15cfaaa8deb38dd2390fd823a438 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit a78ce5b07f10c6160152a017675b71cca36fb049)
2017-10-22add more unit tests to BE componentsYuli Shlosberg2-0/+96
Change-Id: I23a72857d669f03e8cb7e543c006fed3318670b0 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit 6dc570c66839fe239b63f1aa8da489c520fb215d)
2017-10-22add unit tests to sdc componentsYuli Shlosberg28-0/+5496
Change-Id: Ia6b18b223dc79906289f856fee3bf18d75e28232 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit 4bc2f0f7d26f0c8eb1d32c9be97e83070f196abe)
2017-07-17[SDC] rebase 1710 codeMichael Lando1-3/+3
Change-Id: I532ed68979fee7840ea8a5395e7e965b155fb9f9 Signed-off-by: Michael Lando <ml636r@att.com>
2017-07-12Replace CapList with EvictingQueueGary Wu1-126/+0
The functionality of CapList is already provided by com.google.common.collect.EvictingQueue, so there's no need to implement our own. This change replaces CapList with a synchronized EvictingQueue. Change-Id: I2f7b72bf27169bb90d0bd20f289686685e7f06bf Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
2017-06-09[SDC-29] catalog 1707 rebase commit.Michael Lando3-76/+80
Change-Id: I43c3dc5cf44abf5da817649bc738938a3e8388c1 Signed-off-by: Michael Lando <ml636r@att.com>
2017-02-19Initial OpenECOMP SDC commitMichael Lando11-0/+1464
Change-Id: I0924d5a6ae9cdc161ae17c68d3689a30d10f407b Signed-off-by: Michael Lando <ml636r@att.com>