aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-dao/src/test
AgeCommit message (Collapse)AuthorFilesLines
2021-08-31Fix additional types import file generationandre.schmid1-1/+1
The additional_type_definitions.yaml is missing types entries and header. Also, the solution is not considering the types entries, i.e. 'data_types:', 'policy_types:', etc., when replacing types and generating the new file, which renders the solution broken. This change aims to fix the related problems. Change-Id: I412683b49966c09dd067ecbf8a1d778155b23fa6 Issue-ID: SDC-3703 Signed-off-by: andre.schmid <andre.schmid@est.tech>
2021-08-27Support querying of model by typeMichaelMorris1-2/+8
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3678 Change-Id: I5fd19eefe475113df501901628b2ee8669004399
2021-08-26Remove usage of outdated library JMockit (catalog-dao)vasraz6-972/+921
Move JanusGraph to correct folder Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I726b2a714e0b59422865ef6ca2e7ba9f5881353b Issue-ID: SDC-3379
2021-08-25Import VSP with non-standard data typesMichaelMorris1-1/+1
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3673 Change-Id: I0fd16410788da3a82c74b1d38ffa4458e85e6ccc
2021-07-05Reduce usage of outdated library JMockit (catalog-dao)vasraz4-205/+162
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3379 Change-Id: I6b46049b71eafbfedfd3d40c68c743efff13ef54
2021-06-14Add models imports endpoint and persistence structureandre.schmid1-0/+152
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-06-08Support adding of relationship type to modelMichaelMorris1-1/+1
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3610 Change-Id: If315e21fa40e491cb1977dd9ceaf3e9b607e2f6f
2021-05-28Add Support for creating model typearibeiro1-0/+70
Add new vertex type called "model" was added to represent models Add new edge type called MODEL_ELEMENT was added to connect a tosca type to a model Add new edge type called MODEL was added to connect a resource/service to the model it is based on Issue-ID: SDC-3596 Signed-off-by: MichaelMorris <michael.morris@est.tech> Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I310e14d0cf5a9ca0eb0bda592efe8a3baf73749c
2021-03-26Improve test coveragexuegao1-35/+43
Add unit tests to improve test coverage. Issue-ID: SDC-3428 Change-Id: Ifd9e6eb25fa3ec9f4f93d283277574120edff835 Signed-off-by: xuegao <xue.gao@intl.att.com>
2021-03-25Improve test coveragexuegao1-0/+39
Add unit tests to improve test coverage. Issue-ID: SDC-3428 Change-Id: I47da0decd6b6df93ace68b2af586b255ef0b792e Signed-off-by: xuegao <xue.gao@intl.att.com>
2021-03-24Improve test coveragexuegao5-10/+113
Add unit tests to improve test coverage. Issue-ID: SDC-3428 Change-Id: I29a8f1d49f1dfd6bca79f3d873d1e1ff7adc4fb2 Signed-off-by: xuegao <xue.gao@intl.att.com>
2021-02-26Improve test coveragevasraz1-38/+0
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3490 Change-Id: Idb71d433834a8612a5434c84c7f0fdef5573cea2
2020-07-29Upgrade Vulnerable Direct Dependencies [log4j]amohamad2-8/+13
Signed-off-by: amohamad <a.mohamad@queensu.ca> Issue-ID: SDC-3051 Upgrade from the vulnerable log4j 1.x to log4j 2.13.1 Add a log4j version property in sdc-main pom.xml Add two maven dependencies to respective child pom.xml Change name of log4j .properties and .xml config files to reflect log4j2 naming Update the configuration files to the totally new log4j 2 config syntax Replace PropertyConfigurator with LoggerContext Remove the abandoned log4j.lf5.util.ResourceUtils Signed-off-by: amohamad <a.mohamad@queensu.ca> Change-Id: Ie0f141eb2e0337ee5b63b61dc1395ccd8040558d
2020-06-21Toggletalio2-3/+16
Add toggling mechanism to catalog side. The first toggleable feature is healing - this was added to healing flow, in healJanusGraphDao Issue-ID: SDC-2874 Signed-off-by: talio <talio@amdocs.com> Change-Id: If386651cab8304ebaf13497ded3a7a50bd60e477 Signed-off-by: talio <talio@amdocs.com>
2020-05-05Remove all thrift's dependenciesvasraz1-6/+5
Remove unused/duplicated dependencies Change-Id: Ic2239acc5ddde1d0874b5139c228934ec1e61cd0 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2985
2020-04-06Increase test coveragevasraz6-185/+159
Change-Id: I5ed0e2520305519af573df10768c3ee69c39f213 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2833
2020-01-30Upgrade to Cassandra 3shrek20001-3/+0
Creating base dockers suitable for Cassandra 3 remove cqlsh version Change-Id: I996bad2341410cdf45c49f191e998acf4781fc5d Issue-ID: SDC-2596 Signed-off-by: shrek2000 <oren.kleks@amdocs.com>
2020-01-22Catalog alignmentys969334-2334/+182
Issue-ID: SDC-2724 Signed-off-by: ys9693 <ys9693@att.com> Change-Id: I52b4aacb58cbd432ca0e1ff7ff1f7dd52099c6fe
2019-10-08Fix failing unit testvasraz1-132/+138
Issue-ID: SDC-2609 Change-Id: Ibf411a8d10af858ee2f42f9b4b565b81fee33ebe Signed-off-by: vasraz <vasyl.razinkov@est.tech>
2019-08-22unit tests - catalog-beTomasz Golabek5-0/+186
Additional junit tests Change-Id: Ief7f445521f7821e47715a44c423fd11a17568e1 Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
2019-07-22Improved unit tests for the DaoUtils class.k.kedron1-33/+35
Issue-ID: SDC-2327 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I634fc1ccccbfa5b1fec5f2612782f00990438c6b
2019-07-14ComponentCache & ComponentCassandraDao removalTomasz Golabek3-698/+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 Golabek126-123/+2642
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 Sliwka1-5/+16
Change-Id: I24c3a898fa34491e80074944614722fbb3085515 Issue-ID: SDC-2398 Signed-off-by: Wojciech Sliwka <wojciech.sliwka@nokia.com>
2019-06-12Upgrade SDC from Titan to Janus Graphshrikantawachar8-296/+295
Upgrade SDC from Titan to Janus Graph Change-Id: I67fb8b8e60cc6751697bc5ff2f06754c92803786 Issue-ID: SDC-2296 Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
2019-04-04Make Cassandra port configurable.Tal Gitelman1-0/+20
SDC-BE & Onboarding - BE. Reviewer: Evgenia A & Areli F. Change-Id: Iaf86d647b0560764ef65d9148c85bffaf934992d Issue-ID: SDC-2077 Signed-off-by: Tal Gitelman <tal.gitelman@att.com>
2019-03-30Heal Vertex Datashrek20003-1/+349
Enable healing of vertex information when reading it. Issue-ID: SDC-2213 Change-Id: I907beeb25bd231d9e05d3a5b8e070d6bdf9cb781 Signed-off-by: shrek2000 <orenkle@amdocs.com>
2018-08-29Add tests for SdcSchema classesPiotr Darosz4-122/+321
Introduce Cassandra Unit tool and tests for schema-related classes Change-Id: I14da602c42056730e7992dd92b4da8b87dd9fb0d Issue-ID: SDC-1358 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
2018-08-20Fix sonars in SdcSchemaBuilderTal Gitelman1-2/+2
Issue-ID: SDC-1438 Change-Id: If243a30607a42a44e70a4de7520fd2006af9ed05 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2018-08-05add removed unit testsMichael Lando23-0/+1636
Change-Id: Iabd593d8d9ab0efeb32032d5c4d72b8fa1c27e63 Issue-ID: SDC-1590 Signed-off-by: Michael Lando <ml636r@att.com>
2018-08-01Catalog-dao dead code removalPiotr Krysiak6-503/+7
Issue-ID: SDC-1551 Change-Id: I4947b3f8219f20c543abf06798caf69035ed7aa0 Signed-off-by: Piotr Krysiak <piotr.krysiak@nokia.com>
2018-07-29re base codeMichael Lando127-2439/+519
Change-Id: I12a5ca14a6d8a87e9316b9ff362eb131105f98a5 Issue-ID: SDC-1566 Signed-off-by: Michael Lando <ml636r@att.com>
2018-07-24Refactor tests inside the catalog-dao modelPiotr Darosz4-170/+37
Use Hamcrest matchers to simplify getter/setter tests structure Change-Id: Icee88395034ffb61e60a9190d2a9e77571e6fac3 Issue-ID: SDC-1434 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
2018-06-03new unit tests for sdc-daoTal Gitelman25-61/+732
Change-Id: I78124626e54cf578f0cb4459ee26591cab4af24f Issue-ID: SDC-1333 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2018-05-31new unit tests for sdc-daoTal Gitelman48-19/+1023
Change-Id: Ibf37c20c3d07f3cd2962e324f3e37354adad9870 Issue-ID: SDC-1333 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2018-05-30new unit tests for sdc-daoTal Gitelman9-61/+331
Change-Id: I734ad9a0ef636ed6a2d70ff68dd06036bf2447e3 Issue-ID: SDC-1333 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2018-05-30new unit tests for sdc-daoTal Gitelman1-0/+50
Change-Id: I2ec09504aee1ab315dbc8e1d02ac85ed76e24c9b Issue-ID: SDC-1333 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2018-05-30new unit tests for sdc-daoTal Gitelman14-168/+1499
Change-Id: I00ac8b1bd58fd952b7c23d402ce71436658403b8 Issue-ID: SDC-1333 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2018-05-27new unit tests for sdc-daoTal Gitelman15-83/+358
Change-Id: I2f754832fd4557ba1aa7375ac036aa777d199c3e Issue-ID: SDC-1333 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2018-05-27new unit tests for sdc-beTal Gitelman8-54/+1262
Change-Id: Ibd71f40a0318cb2f8a3e39bf4ad714ae05f75d72 Issue-ID: SDC-1333 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2018-05-10new unit tests for sdc-modelYuli Shlosberg1-68/+68
Change-Id: Ie4cdc54ae829832b4092b249b467f5b9b4b756b6 Issue-ID: SDC-1302 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
2018-05-01new unit tests for sdc-daoYuli Shlosberg10-0/+889
Change-Id: Ic25eacbfdbaa8ebcffa8d3f0625ee860c98a2894 Issue-ID: SDC-1170 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
2018-04-30Remove dead code catalog-daoTal Gitelman1-3/+0
Change-Id: Id4383326458c328d2316c8e3599c87cf265ec415 Issue-ID: SDC-1270 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2018-03-07Sync Integ to MasterMichael Lando8-479/+174
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 Gitelman85-203/+24
Change-Id: Ib464f9a8828437c86fe6def8af238aaf83473507 Issue-ID: SDC-714 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
2017-10-23remove neo4j classesYuli Shlosberg4-266/+0
Change-Id: I7a9b781c30d4eb269c19dfdaa5d230807a97f08b Issue-Id: SDC-487 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit 00fca27997c4a4a473823c4dc0123c074dac7b50)
2017-10-22add more unit tests remove importsYuli Shlosberg2-9/+36
Change-Id: If2274759f929f595e63d71cc70c374268c019947 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit b947eb599bfab4599ce1b0c0573b1701c646e429)
2017-10-22add more unit tests to BE componentsYuli Shlosberg16-34/+1080
Change-Id: I23a72857d669f03e8cb7e543c006fed3318670b0 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit 6dc570c66839fe239b63f1aa8da489c520fb215d)
2017-10-22add more unit tests to BE componentsYuli Shlosberg30-87/+1924
Change-Id: Ic14375454aac2960cd9b250e98991ca073e17a24 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit 8c4c1dd56dedace1c59d32f5c51c285da05301bf)
2017-10-22add unit tests to BE componentsYuli Shlosberg51-0/+8523
Change-Id: Ic22f03832f1810f51958db2e7dba5569a9bf1cd7 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit 031b1e4dc965195624fb0c574376cba1b0c57488)