summaryrefslogtreecommitdiffstats
path: root/aai-core/src/test
AgeCommit message (Collapse)AuthorFilesLines
2022-10-14Remove the apache commons-lang dependency in aai-commonFiete Ostkamp6-71/+48
Issue-ID: AAI-3551 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: Ib68b6fb43044532abf39c1ac088ef969c5aa00c2
2022-10-13Migrate Mockito 1 to version 2 in aai-coreFiete Ostkamp5-27/+35
Issue-ID: AAI-3549 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: Ibb8edcd80fe3b112af0d113894122ce0b256006b
2022-09-29Replace deprecated Gremlin query in aai-commonFiete Ostkamp1-16/+25
addInE and addOutE are deprecated since Gremlin 3.1.0. Issue-ID: AAI-3534 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: I4c4db97d8075e9c75b13ee206c27b8c01b5e0cf4
2022-01-20[AAI] Ignore DataCopyTest to try to release a docker imagewr148d1-1/+2
Issue-ID: AAI-3428 Signed-off-by: wr148d <wr148d@att.com> Change-Id: I46def8946547ef522b8f16671c80138aa4737552
2022-01-20[AAI] Update the tests to ignore OwnerCheckTestwr148d1-2/+3
Issue-ID: AAI-3428 Change-Id: I1a75ce29981338edf28cff1f248066b3bee9e80d Signed-off-by: wr148d <wr148d@att.com>
2022-01-13[AAI] Revert some testing changes to ignore tests and rollback of eclipse ↵wr148d1-3/+1
perisistence Issue-ID: AAI-3428 Change-Id: Ib1a1235d44c1c0ddc767ad944eccafec7de618d1 Signed-off-by: wr148d <wr148d@att.com>
2022-01-11Updating the eclipse persistence version to 2.6.0 to resolve an issuewr148d2-0/+4
Issue-ID: AAI-3428 Change-Id: I514120be2e021e580e98cfe8a97689ec4598f523 Signed-off-by: wr148d <wr148d@att.com>
2021-07-02Fix all blocker sonar issues and some checkstyleLiard Samuel11-39/+60
Issue-ID: AAI-3362 Signed-off-by: sliard <samuel.liard@gmail.com> Change-Id: I365be3e8afe75b54f5a65deadb054df73857274e
2021-04-14Added proxy args in the haproxy DockerfileRenu Kumari1-0/+2
Added DirtiesContext to URIToRelationshipObjectTest for successful test case execution. Issue-ID: AAI-3318 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I53d9b031f93515fdec16fe3f7b0a580c8439b5b3
2021-01-06Use data owner attribute instead of owning entity for OwnerCheckM.Hosnidokht2-18/+68
Issue-ID: AAI-3226 Signed-off-by: Mohammad Hosnidokht <mohammad.hosnidokht@yoppworks.com> Change-Id: I8222546e7264e99ca3e53fe1212a45008c1064e6
2020-09-10Add side effect to check pnf owning entityRodrigo Lima3-0/+242
- Create side effect to check : user's groups contains pnf's owning entity name - Create unit tests for side effect - Add new process method in HttpEntry to pass set of groups - Pass set of groups to db serializer Issue-ID: AAI-3176 Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com> Change-Id: I4bc7ab6e22bce8cbe60bd7ef6bb5db73dac3a1c4
2020-08-11Add dirty context to junit to fix spring failureHarish Venkata Kajur1-0/+2
Issue-ID: AAI-3105 Change-Id: I7b387c76009dba950aea0debf382f316c558d6ad Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
2020-08-05Merge "Junit testcase for JSONStrategy"William Reehil1-1/+9
2020-07-10Fix minor sonar issuesFrancis Toth1-3/+3
Signed-off-by: Francis Toth <francis.toth@yoppworks.com> Change-Id: Iea540bb663429d55ce90879f9d9a22888c583833 Issue-ID: AAI-2128
2020-06-09Fix the list endpoints test npe issueHarish Venkata Kajur1-0/+2
Issue-ID: AAI-2927 Change-Id: I8449e52a42fa7dcf8194680f5a2da5c2b6b6c439 Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
2020-05-12aai-common support for v20LaMont, William(wl2432)12-67/+228
Issue-ID: AAI-2904 Change-Id: I6dca2f785882b38ca2b2474a11affaa0328c003a Signed-off-by: LaMont, William(wl2432) <wl2432@att.com>
2020-04-24Junit testcase for JSONStrategyezhil1-1/+9
Issue-ID: AAF-1120 Change-Id: I437501322e7cdcc4117add39349ea9696c90ad71 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2020-04-21AAI-common sonar fixesDavid Brilla1-30/+6
Issue-ID: AAI-2786 Change-Id: Ia37e660886fce56c8ab5c53888fcbf265692a359 Signed-off-by: David Brilla <david.brilla@tieto.com>
2020-04-14Fix build issue in ubuntu 1804Jimmy Forsyth2-0/+8
Issue-ID: AAI-2850 Signed-off-by: Jimmy Forsyth <jf2512@att.com> Change-Id: Iff320d89fa221bcb6c9fa4fb0f726724e1bb0eae
2020-03-12Adding test cases to aai-core to increase coverageYoo, Brian (by703c)11-1/+1138
Issue-ID: AAI-2828 Change-Id: I81e62cb1e1e984291bcd77c544f18d2d511b9d07 Signed-off-by: Yoo, Brian (by703c) <by703c@att.com>
2020-02-25Enhancements for the aai-common libraryKajur, Harish (vk250x)95-1750/+7565
Issue-ID: AAI-2806 Change-Id: I2dbb46b897b35136ac1bb802978d3f974af1b307 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2020-02-21AAI-common sonar fixesDavid Brilla1-1/+1
Fixing bugs, code smells of aai-common repo found on sonar. Issue-ID: AAI-2786 Change-Id: I421f8b46f385c7334b0f3cd80c07cb2f833f127f Signed-off-by: David Brilla <david.brilla@tieto.com>
2020-02-14[AAI-2528] | Update to spring-boot 2.1.6.RELEASESneha Dantkale2-3/+5
Issue-ID: AAI-2528 Change-Id: I87756450c12538af3f21e4affa24ef76724d232c Signed-off-by: Sneha Dantkale <Sneha.dantkale@amdocs.com> Change-Id: I9437899ba1c7f2aec816a8076c954b080f9512fb Signed-off-by: Sneha Dantkale <Sneha.dantkale@amdocs.com> Change-Id: If3ad26f98c815e4872320b2652cf6c2e0b675de0 Signed-off-by: Sneha Dantkale <Sneha.dantkale@amdocs.com>
2019-08-07Attempt to fix the test failures on centosJimmy Forsyth1-3/+3
Issue-ID: AAI-2574 Signed-off-by: Jimmy Forsyth <jf2512@att.com> Change-Id: I51f0bc9a23e5ea1f3946ba5cf97d9cd532318558
2019-04-11AAI-1523 Batch reformat aai-coreKeong Lim113-7288/+6901
Use maven plugins from AAI-2198 to do batch reformat of aai-core to consistent code style. Change-Id: If43889a61778f3a766c3663098064cdcc8e507bf Issue-ID: AAI-1523 Signed-off-by: Keong Lim <keong.lim@huawei.com>
2019-04-10Remove the generation code for swagger and xsdKajur, Harish (vk250x)14-4011/+0
The following code has been moved to schema service Issue-ID: AAI-2313 Change-Id: I58911dffef70ab2c32a73de79ac971c3650106e6 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-04-09Merge "Fix logic in Schema Generator to properly"James Forsyth1-5/+53
2019-04-08Update schema service to fail to startKajur, Harish (vk250x)19-41/+44
when all of the schema failed to load so the microservice wouldn't be in a bad state and also have the microservice dictate what versions of schema they are using Issue-ID: AAI-2329 Change-Id: Ie2e6e2bb3bac37b2ad57ada613e7c0e65647b64e Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-04-07Fix logic in Schema Generator to properlyKajur, Harish (vk250x)1-5/+53
check if indexes are needed on dbaliased properties Added test to verify indexes are created. Issue-ID: AAI-2333 Change-Id: Ib80de5cce3dfc99277d7cbd6e1a51530ff588478 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-02-26Remove schema service dependency and add oxm1.4.1Kajur, Harish (vk250x)19-0/+47790
and edgerules for the junits that are dependent on them Issue-ID: AAI-2193 Change-Id: I310ad37b14fb1296016ebbde2cf8eedd9c9c8aff Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-02-20AAI-1523 checkstyle warnings for aai-core restKeong Lim1-18/+18
Issue-ID: AAI-1523 re-indent code with spaces to clean up some checkstyle warnings for aai-core test rest (part of 24k lines of output) Change-Id: I610a40db3f9a79e31a210718bfe830c38809d9f3 Signed-off-by: Keong Lim <keong.lim@huawei.com>
2019-02-20AAI-1523 checkstyle warnings for aai-core queryKeong Lim13-1280/+1280
Issue-ID: AAI-1523 re-indent code with spaces to clean up some checkstyle warnings for aai-core test query (part of 24k lines of output) Change-Id: I2be142e000d9620a035092fdca5509ba5245f962 Signed-off-by: Keong Lim <keong.lim@huawei.com>
2019-01-30AAI-1523 checkstyle warnings for aai-core parsersKeong Lim12-2640/+2640
Issue-ID: AAI-1523 re-indent code with spaces to clean up some checkstyle warnings for aai-core test parsers (part of 24k lines of output) Change-Id: I9908650b6fccfca9657b0b2ca75f74dc6b469449 Signed-off-by: Keong Lim <keong.lim@huawei.com>
2019-01-30AAI-1523 checkstyle warnings for aai-core loggingKeong Lim5-208/+208
Issue-ID: AAI-1523 re-indent code with spaces to clean up some checkstyle warnings for aai-core test logging (part of 24k lines of output) Change-Id: I10e558911e8088cdf088f757a62fc4d3a79752c7 Signed-off-by: Keong Lim <keong.lim@huawei.com>
2019-01-30AAI-1523 checkstyle warnings for aai-core introspeKeong Lim8-794/+794
Issue-ID: AAI-1523 re-indent code with spaces to clean up some checkstyle warnings for aai-core test introspection (part of 24k lines of output) Change-Id: I3b5341661be9f7adc73b87eeaf88cc2d911985fa Signed-off-by: Keong Lim <keong.lim@huawei.com>
2019-01-18AAI-1523 checkstyle warnings for aai-core exceptioKeong Lim2-197/+197
Issue-ID: AAI-1523 re-indent code with spaces to clean up some checkstyle warnings for aai-core test exceptions (part of 24k lines of output) Change-Id: Ib577b1b26604e47b75466ff980c7aab0dcebebc3 Signed-off-by: Keong Lim <keong.lim@huawei.com>
2019-01-18AAI-1523 checkstyle warnings for aai-core concurreKeong Lim1-19/+19
Issue-ID: AAI-1523 re-indent code with spaces to clean up some checkstyle warnings for aai-core test concurrent (part of 24k lines of output) Change-Id: I82d2a46eeefa806b8ce433ecc8e373afaac8e0eb Signed-off-by: Keong Lim <keong.lim@huawei.com>
2019-01-14Remove the classes that were originally singletonKajur, Harish (vk250x)1-185/+0
GremlinGroovy shell singleton and groovy builder singleton were changed from being singleton because we found that the classes that were dynamically loaded were never cleaned up by the garbage collector which caused a huge increase in the memory consumption for the traversal microservice which uses this The conversions from singleton was already committed but the singleton was not cleaned up earlier Issue-ID: AAI-1811 Change-Id: Ib74d85be4c1053e7b482fa5b89b562b2352ff803 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-01-13Sync up the changes for v15Kajur, Harish (vk250x)40-455/+26806
Issue-ID: AAI-1811 Change-Id: I307731ee35d8a644ae995c4b372345a7ebeca0a1 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com> Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
2019-01-02Merge "Update DBSerializer for relationships retrieving"James Forsyth1-4/+14
2018-12-28Update DBSerializer for relationships retrievingHarish Venkata Kajur1-4/+14
Enhance the code for how the db serializer works when it comes to dealing with the relationships For a particular vertex, when retrieving its relationship vertexes it doesn't need to get all the properties of the relationship vertex as it only cares about the aai-uri and named properties so only partially retrieving those props that is needed for relationships Issue-ID: AAI-1987 Change-Id: I1440c561d187ff180a599a3f52ac5c8715d5c8e3 Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
2018-12-17Update aai-core use new schema ingest libraryKajur, Harish (vk250x)4-24/+34
Issue-ID: AAI-2003 Change-Id: I9234b6b594e559b58e445a97b78a4658190e6527 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-12-11Merge "AAI-1523 checkstyle warnings for aai-core auth"James Forsyth2-199/+199
2018-12-05Improve the performance of resoures microservice1.4.0Kajur, Harish (vk250x)16-114/+1984
Currently the findSubGraph is being invoked and causing additional calls to the database by backing a tree backed vertex and slowing the performance of GET ALLs Original intention of both of them was to pre fetch depth 0, 1, and 2 at once so we don't have to get them at each depth but since that was not done right there is extra amount of time After the aai-uri migration to ensure all vertexes have the aai-uri and also to make sure they are unique across graph we don't need to traverse a vertex to find the parents to build aai-uri it was done previously when there was no aai-uri to derive the uri of a given vertex and its not necessary anymore so there would be performance improvements of vserver when there are a lot of relationships Currently the edge labels are retrieved for each vertex a and b and the performance of the GET with relationships will be propotional to the GET request and how many cousin edges it has and the more cousin edges there are the more slower the response time will be as for each cousin vertex its trying to get the edge in between so the code is modified to only go to the database for the edge label when there are multiple edge labels (cousin edges) between a and b If there are only one edge label and its a cousin vertex then we can use the edge rule to be able to figure out the edge label Improve PUT on the cloud region by modifying the getEdgesBetween method which currently was retrieving all the parent child edges between a and b and then only using the first edge The traversal itself was too complicated and was costly in terms of database retrieval and calls and optimized the code to utilize the edge information so we can modify the query to db at runtime based on the information provided so when a 10000 vservers under a tenant adding a new vserver under tenant would be slow because of the old query performance as it was taking some time there but with this optimization, its only spending at most a millisecond or 2 in that method Also noticed that when a PUT operation takes place, the method calls the related objects to create a dmaap event which was in turn calling the findParents and actually utilizing the parents to create the dmaap event and would spend quite a lot of time here because of the expensive call of the findParents in this case we need those vertexes So optimized the code so based on a given vertex, we have the aai-uri and the newly added metadata uriTemplate to break the aai-uri into its parent aai-uri and grand parent aai-uri and so forth With this breakdown, we can get the list of aai-uris which are parents, grandparents and then use the aai-uri to look them up which is O(1) lookup time due to the fact they are unique indexes The time it takes when doing a traversal to find the parents is propotional to the number of edges but this will be optimistic Another area which was improved was the json path execution of the edge rules so when the edge rules get loaded into memory it creates a document object, it utilizes the jsonpath to query information about the edge rules but the only thing here is each time it gets called the query gets invoked and uses jsonpath to retrieve the edge rules when we can cached them based on the filter so that the user executed and if the filter is the same as before, the expected edge rules will return the same Too much time was spent making the query and retrieving and building the edgerules So a cache is a perfect way to optimize this part Issue-ID: AAI-1987 Change-Id: Ieb8237de3fd31136ceac14bf4a8216a7ab3b7179 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-11-22AAI-1523 checkstyle warnings for aai-core authKeong Lim2-199/+199
Issue-ID: AAI-1523 re-indent code with spaces to clean up some checkstyle warnings for aai-core test auth (part of 24k lines of output) Change-Id: I634a49d499f5a6605510633ec2ab6069a04cccba Signed-off-by: Keong Lim <keong.lim@huawei.com>
2018-11-19AAI-1523 checkstyle warnings for aai-coreKeong Lim4-79/+79
Issue-ID: AAI-1523 re-indent code with spaces to clean up some checkstyle warnings for aai-core test (part of 24k lines of output) Change-Id: I3b33fbe46458e4f0f3273c48ff9cfb0673ae18f4 Signed-off-by: Keong Lim <keong.lim@huawei.com>
2018-11-01Fix bug on create created ts and modified tsKajur, Harish (vk250x)1-8/+47
where on create the values should be the same but it ends up being different sometimes Issue-ID: AAI-1832 Change-Id: Ia8cfb75a5812e6b59f8000a820cf3605ab17eb2b Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-11-01Add capability to record timestampKajur, Harish (vk250x)1-0/+181
Issue-ID: AAI-1831 Change-Id: Ifcadf1caa0f7764c759997f10f3f789b1a702872 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-11-01Add required properties to schemaKajur, Harish (vk250x)1-0/+156
Issue-ID: AAI-1826 Change-Id: Ifc7122880e2c98888aa6b478cba3f70fb4c62e52 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-11-01Replace platform specific line seperators SystemKajur, Harish (vk250x)2-142/+144
Issue-ID: AAI-1463 Change-Id: Ibdd3803dd825342d54dfa1b008f1a8c2d78d6198 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>