summaryrefslogtreecommitdiffstats
path: root/aai-core/src
AgeCommit message (Collapse)AuthorFilesLines
2020-07-10Fix sonar issues in SchemaGeneratorFrancis Toth1-51/+55
Signed-off-by: Francis Toth <francis.toth@yoppworks.com> Change-Id: I1ba6fd929992699477502c46c1a5595a162d3209 Issue-ID: AAI-2902
2020-07-09Merge "Fix minor sonar issues in SchemaGenerator4Hist"William Reehil2-76/+40
2020-07-06Merge "Removed critical code smell"William Reehil1-3/+4
2020-07-06Merge "Critical Sonar bug fix"William Reehil1-2/+2
2020-06-29Merge "Fix the list endpoints test npe issue"William Reehil1-0/+2
2020-06-15Fix sonar issues in AggregateRodrigo Lima1-2/+2
- check obj.isPresent() in method processInput - return Optional.empty instead of null in method createPropertiesObject Issue-ID: AAI-2934 Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com> Change-Id: Iebe0184ce39f244dd56e6861617cbf4e5dafb06c
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-06-03Removed critical code smellezhil1-3/+4
Removed critical code smell in AAIUnmarshallingException Issue-ID: AAF-1120 Change-Id: I0949e9f2f466ac98db39cfa1adf50f86a531b3a5 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2020-06-03Critical Sonar bug fixezhil1-2/+2
Sonar critical bug fix in HttpsAuthClient Issue-ID: AAF-1120 Change-Id: I840d7d4ac56767fd56f687f850bec879a4edeca9 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2020-05-12aai-common support for v20LaMont, William(wl2432)25-154/+960
Issue-ID: AAI-2904 Change-Id: I6dca2f785882b38ca2b2474a11affaa0328c003a Signed-off-by: LaMont, William(wl2432) <wl2432@att.com>
2020-05-07Fix minor sonar issues in SchemaGenerator4HistFrancis Toth2-76/+40
Signed-off-by: Francis Toth <francis.toth@yoppworks.com> Change-Id: Ie4f64b8d9f43bf98c76c1751025ceaf2dae59180 Issue-ID: AAI-2901
2020-04-21AAI-common sonar fixesDavid Brilla14-248/+152
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-03-10Reenable spring-boot2 in aai-commonJimmy Forsyth2-18/+15
Issue-ID: AAI-2831 Signed-off-by: Jimmy Forsyth <jf2512@att.com> Change-Id: I9f3f1d8d1d9ef45786d0f17afa5c824e90c77263
2020-03-10Move back to spring-boot 1.5 for bugfixJimmy Forsyth2-15/+18
Issue-ID: AAI-2831 Signed-off-by: Jimmy Forsyth <jf2512@att.com> Change-Id: I1e3d278fe343e4f05cdfd71d2443aef19c8541c2
2020-03-03Update aai-common to be spring boot 2 compatibleHarish Venkata Kajur2-18/+15
Issue-ID: AAI-2806 Change-Id: Idad79373209ef25bb26551253aa8ad86e4a75549 Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
2020-02-25Enhancements for the aai-common libraryKajur, Harish (vk250x)245-9430/+14114
Issue-ID: AAI-2806 Change-Id: I2dbb46b897b35136ac1bb802978d3f974af1b307 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2020-02-21AAI-common sonar fixesDavid Brilla6-24/+22
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 Dantkale3-22/+20
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>
2020-02-13ListEndpoints fixMatej Babej1-6/+5
Fixing 4 code smells Issue-ID: AAI-2794 Change-Id: Ica204021dd343ec7deac01587287e361efda4643 Signed-off-by: Matej Babej <matej.babej@tieto.com>
2020-02-11Use "instanceof" instedDavid Brilla1-3/+4
Bug correction, from class.toString comparing to instanceof Issue-ID: AAI-2786 Change-Id: Idbbdaaa37208b8c40556a42255aa43175c14b1c7 Signed-off-by: David Brilla <david.brilla@tieto.com>
2020-02-11Use isAssignableFrom insteadDavid Brilla1-3/+3
Change from class -> string -> equals to isAssignableFrom Issue-ID: AAI-2786 Change-Id: I0f48ad5b7ad5728b397c54bfa883fea9431dd0a5 Signed-off-by: David Brilla <david.brilla@tieto.com>
2019-08-28Update core logic to change how toKajur, Harish (vk250x)1-322/+313
handle cassandra shutdown so that it returns an approprate 500 error Issue-ID: AAI-2082 Change-Id: Ia1b668de9dca90c44fa36b75a901b7cd596fe7d5 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-08-20Merge "Fixed Sonar "Blocker Bugs""James Forsyth2-50/+38
2019-08-15Merge "Sonar Fix- URIParser.java"James Forsyth1-9/+7
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-07-25Sonar Fix- URIParser.javadinesha1-9/+7
Fixed sonar issues across this file Issue-ID: AAI-2525 Change-Id: Ibc7f1e9a64de5283bcc9845522817c1dff30e5e6 Signed-off-by: dinesha <dineshgs@in.ibm.com>
2019-05-27Fixed Sonar "Blocker Bugs"Vasyl Razinkov2-50/+38
Fixed potential "thread-Leak" Signed-off-by: Vasyl Razinkov <vasylrazinkov@sidero.ie> Issue-ID: AAI-2459 Change-Id: Ic36ff778486a7a860070b05873dc88d7d31f736b
2019-04-11AAI-1523 Batch reformat aai-coreKeong Lim342-26828/+26873
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-10Update DBSerializer to properly deal1.4.3Kajur, Harish (vk250x)1-1/+12
with adding relationships to edge rules in older versions of the api that might not be in the latest versions of the API Issue-ID: AAI-2325 Change-Id: I78fa1c747c4c52a01d2d6ed762e0dc4cdf448fee Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-04-10Remove the generation code for swagger and xsdKajur, Harish (vk250x)36-9683/+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 "Update dmaap to use logging context"James Forsyth6-22/+67
2019-04-09Merge "Fix logic in Schema Generator to properly"James Forsyth2-7/+55
2019-04-09Merge "Optimize the areas where its creating extra memory"James Forsyth3-84/+84
2019-04-09Merge "Update schema service to fail to start"James Forsyth34-122/+146
2019-04-08Update schema service to fail to startKajur, Harish (vk250x)34-122/+146
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-07Update dmaap to use logging contextKajur, Harish (vk250x)6-22/+67
Change from using the MDC to use Logging Context When an update happens on a vertex, there is no need to update the aai-node-type as a vertex type will not be modified and this causes some issues with how janusgraph works Issue-ID: AAI-2325 Change-Id: Iee51fea0dcd5e80636b8303f5f69346f8d653aa0 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-04-07Fix logic in Schema Generator to properlyKajur, Harish (vk250x)2-7/+55
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-04-07Optimize the areas where its creating extra memoryKajur, Harish (vk250x)3-84/+84
After doing some analysis using profiler found that the most cases where memory is being spent when doing an GET is during the conversion from one case to another case and instead cached that during the start of the application Issue-ID: AAI-2331 Change-Id: I291d5f953d4158daca293198cf6fc7f5cf86d25d Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-04-07Add the logging statements for whenKajur, Venkata Harish (vk250x)5-41/+171
application is doing implicit delete so if an user did a PUT on cloud region in which they implicitly delete 100 tenants, it would log the specific tenants that got deleted with depth all on tenants because a cloud region could also have thousands of other child objects and there is no reason to log that if we can just log the objects that were lost in the implicit delete process Issue-ID: AAI-2332 Change-Id: I8cd0c876670f8687b6485d3735f9f47e84c38286 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-04-07Fix a potential bug in DBSerializerKajur, Harish (vk250x)1-3/+17
where the assumption is the aai-node-type property will exist on the node types. There is a case where a vertex is in the process of being deleted and during that time the vertex will be missing some properties and during that time the GET with depth all will result in exception This is possible because of our database being an eventually consistent database Issue-ID: AAI-2330 Change-Id: I2b11c9a2ec5c3b6bffd2690a0c075962e80781cc Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-02-27Merge "AAIAuthCore-replace duplicate literal by constant"James Forsyth1-3/+5
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-02-18Merge "Removed sysout and replaced with logger"James Forsyth1-3/+2
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>