summaryrefslogtreecommitdiffstats
path: root/aai-traversal/src
AgeCommit message (Collapse)AuthorFilesLines
2024-01-04Reduce traversal log noiseFiete Ostkamp2-11/+2
- remove debug statements for the happy path in the EchoResponse resource [1] [1] they account for the vast majority of log lines since they are invoked as part of the k8s liveness probe every two seconds Issue-ID: AAI-3716 Change-Id: I41e340cdb0bbeb64d849514e7460caa5b6fcc357 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
2024-01-04Add spring-cloud-sleuth for tracingFiete Ostkamp2-45/+77
- add tracing dependencies - align localhost-access-logback.xml with the one in the oom chart - bump version to 1.13.1 Issue-ID: AAI-3714 Change-Id: I6565d63f070bbd04188f383fc88ea9ca884951dd Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
2024-01-03Update spring-boot to 2.4Fiete Ostkamp10-23/+18
- update spring-boot to 2.4 - add junit vintage engine dependency to keep supporting junit 4 tests - update mockito to version 3.4.0 Issue-ID: AAI-3681 Change-Id: I8b40529418f9d03179970edf1ab12992db1cb5e8 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
2024-01-02Update spring-boot to 2.3Fiete Ostkamp5-9/+11
- update spring-boot to 2.3.12.RELEASE - replace deprecated properties Issue-ID: AAI-3680 Change-Id: Icd983c020fd62f7073f8ae61d3d4745db48dc660 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
2023-12-18Make the jax-rs resource a spring boot RestControllerFiete Ostkamp19-620/+433
- replace jax-rs annotations with spring boot equivalents - replace the jersey exception handler with a ControllerAdvice class - move AAIErrorResponse definitions from test/ to main/ Issue-ID: AAI-3694 Change-Id: I5a45309727bfd84bb2aee5c20957fd845c484d5e Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
2023-12-08Separate entity retrieval from jax-rs Response creationFiete Ostkamp10-181/+247
- move logic to retrieve entity from db into a separate method - do not use runner() from AAI core [1][2] - use global ExceptionHandler to provide a common exception to error response mapping [1] the runner will spawn a separate thread to process the request. In this change there is nothing to replace this functionality. The reason that it is removed is that it tightly couples the app with a) aai-common and b) jax-rs and is also catching all exceptions. Also the timeout mechanism that is implemented is not actually stopping the execution of the thread after the timeout, but rather returning an early response (after 3 minutes(!)). [2] these changes are also done to make a future full migration to spring boot/the removal of jax-rs easier Issue-ID: AAI-3693 Change-Id: I177913c5f6295e1cab476e3c206fecacd7620f69 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
2023-12-06Refactor global exception handlerFiete Ostkamp2-56/+49
- extract similar code to methods - return early Issue-ID: AAI-3692 Change-Id: I41e3c7caaafb7c68913decb59bc9a57486985399 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
2023-12-05Improve tests for exception handlingFiete Ostkamp6-109/+286
- add more assertions to ExceptionHandlerTest - add more assertions to DslConsumerTest - add class definitions for error responses to allow the usage of object mappers for that - reduce raw-type warnings by providing types for HttpEntities and ResponseEntities Issue-ID: AAI-3691 Change-Id: I0010ce6e3e7425109607b6a00b9ee08732829aaa Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
2023-12-04Merge "Update spring-boot to 2.2"Lukasz Rajewski35-182/+298
2023-11-15[AAI] Update aai-schema version v28 as default in the pom of traversalnandkishorpatke4-8/+8
- Update aai-schema version v28 as default in the pom of traversal - Update aai-schema version v28 as default in properties Issue-ID: AAI-3663 Change-Id: Ia2d0366c561cc468edf853720408197f4d52877e Signed-off-by: nandkishorpatke <nandkishor-laxman.patke@t-systems.com>
2023-11-13Update spring-boot to 2.2Fiete Ostkamp35-182/+298
- upgrade spring-boot from 2.1 to 2.2 - change logging level in tests from debug to info - do not version .classpath in git since it's dynamically generated Issue-ID: AAI-3679 Change-Id: I4b0378880a0670d522903d44dbe7e1b144b51177 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
2022-11-09AAI traversal logging structure enhancementleila2-45/+95
logging structure enhancement for logback and localhost xml files Issue-ID: AAI-3584 Signed-off-by: leila <leila.nishimwe@bell.ca> Change-Id: Iff2ff3f3faefb935780ead2d6c1b1f98f406f486
2022-10-12Enhancement of AAI-traversal healthcheckFiete Ostkamp4-90/+267
- enhance the EchoResponse endpoint to check for db connectivity when the myAction parameter is provided Issue-ID: AAI-3547 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: I4d5686b63efd139b942cee0c222305a17d2a2497
2022-10-10Merge "Migrate Mockito 1 to version 2 in the traversal service"William Reehil11-72/+140
2022-10-10Migrate Mockito 1 to version 2 in the traversal serviceFiete Ostkamp11-72/+140
- update mockito and powermock - update eelf-core since it has a compile time dependency to mockito 1.10.19 in version 1 - exclude the vaadin android-json since it leads to a warning in maven Issue-ID: AAI-3545 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: I06354182c5af21ce1c8cb851f9e65c3c38e7102c
2022-10-07Traversal tests are failing due to missing error.properties file in ↵Fiete Ostkamp1-0/+198
test/resources Issue-ID: AAI-3544 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: I095a50a716605f386cc0b2cb9b74596845476519
2022-10-05Run the formatter for the traversal serviceFiete Ostkamp253-23101/+25174
When building the traversal service with mvn install, the spotless and formatter plugins are invoked to verify the formatting. This results in 40000 lines of format violations that are printed out to the console. By invoking mvn formatter:format spotless:apply process-sources this number can be reduced to 2000 lines of format violations. Issue-ID: AAI-3543 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: Id0011b3e0a626369c79fd0656cd44455347b7fde
2022-08-16[AAI] Upversion to 1.9.6 to include v27wr148d3-6/+6
Issue-ID: AAI-3489 Signed-off-by: wr148d <wr148d@att.com> Change-Id: I33d2b9275f7d6ebaacb734db916203bb4bbad42e
2022-02-14[AAI] Update traversal to use the new v26 schema and upversion to 1.9.4wr148d3-6/+6
Issue-ID: AAI-3435 Signed-off-by: wr148d <wr148d@att.com> Change-Id: I9632b91d1d4fc948601f15b6b7ce6b3a5bd2a48a
2021-09-22Fix integration testsM.Hosnidokht6-0/+551
- Fixed the issue regarding docker image dependencies https://gerrit.onap.org/r/c/aai/traversal/+/123659 - Cleaned up pom file Issue-ID: AAI-3325 Signed-off-by: Mohammad Hosnidokht <mohammad.hosnidokht@yoppworks.com> Change-Id: I3a69e5881c2e7a3016efec491acb527f86077746
2021-08-27Fix the docker image issue missing dependenciesHarish Venkata Kajur6-552/+0
Issue-ID: AAI-3371 Change-Id: Ibacb0c760357f569f35df735ab67cf8ddba4920f Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
2021-08-24Merge "[AAI] Integrate Micrometer to identify slow APIs (Making aai_uri tag ↵William Reehil4-5/+15
configurable)"
2021-08-19[AAI] Updates for latest versions for Istanbulwr148d4-7/+7
Issue-ID: AAI-3361 Change-Id: I0af66a4e683cea6d543a77b8cc4a329cc92a8a95 Signed-off-by: wr148d <wr148d@att.com>
2021-08-18[AAI] Integrate Micrometer to identify slow APIs (Making aai_uri tag ↵Dimple Soni4-5/+15
configurable) Issue-ID: AAI-3367 Signed-off-by: Dimple Soni <dimple.soni@yoppworks.com>" Change-Id: If8a5734c702242a292eeb6c9c26a844242e1f849
2021-05-28Add multi-tenancy integration testsEric Santos6-0/+552
- Created a separate directory under 'src' for integration tests - Moved all multi-tenancy related integration test classes and files into 'it' directory - Depends on https://gerrit.onap.org/r/c/ci-management/+/121244 Issue-ID: AAI-3325 Signed-off-by: Santos, Eric <eric.santos@yoppworks.com> Change-Id: I7d43fc0a72874c2b25dfc40ea5331783bd496d15
2021-05-19[AAI] Export relevant key metrics for monitoring in Prometheusroger yuan8-2/+193
Make the key metrics available to the monitoring system by instrumenting the code. The Key metrics are available via /actuator/prometheus /actuator/info /actuator/health Issue-ID: AAI-3343 Signed-off-by: Roger Yuan <roger.yuan@yoppworks.com> Change-Id: If72858484231d95a39c938bacfc1773430806e5a
2021-04-19Add multitenancy filter with data-ownerEric Santos3-9/+56
Issue-ID: AAI-3299 Signed-off-by: Santos, Eric <eric.santos@yoppworks.com> Change-Id: Ia22001af5a1701bf70d8be6dbf8d09273ebd5575
2021-03-31Add keycloak integrationSam Huang4-3/+103
Issue-ID: AAI-3298 Signed-off-by: Sam Huang <sam.huang@yoppworks.com> Change-Id: I2d99769ab8d189d61de610ec020b15a8fe0aa652
2021-02-02Update traversal to use v23Harish Venkata Kajur3-6/+6
Issue-ID: AAI-3249 Change-Id: If0e0d7cff68af3b06429c817330d4077d97489b7 Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
2020-11-04fix sonar bugMariano Diaz1-1/+1
Issue-ID: AAI-2877 Signed-off-by: Mariano Diaz <mariano.diaz@yoppworks.com> Change-Id: I7841454d8844ca8390a6a63931b8bd35358609cb
2020-09-17Update to use aai-common 1.7.2 and use common aaf authMaharajh, Robby (rx2202)5-300/+0
Issue-ID: AAI-3128 Change-Id: I2ae25a9990daa8eafd045229686a2d586b90f66a Signed-off-by: Maharajh, Robby (rx2202) <rx2202@us.att.com>
2020-09-11Remove aaf binary in traversal msHarish Venkata Kajur1-0/+0
Issue-ID: AAI-3182 Change-Id: I7cbe62b7dd4c89590538feec8b7f912484bb86f7 Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
2020-09-10Updated api pattern for retired propertieswreehil1-1/+1
Issue-ID: AAI-2367 Signed-off-by: wreehil <wr148d@att.com> Change-Id: I67c7cc9f1b61f9df8842540dd6d59d2a3fea8701
2020-09-10Remove the aaf profile for localMaharajh, Robby (rx2202)1-1/+1
Issue-ID: AAI-2886 Change-Id: I662e5fc1321519174cc2efd6310812b09593cc76 Signed-off-by: Maharajh, Robby (rx2202) <rx2202@us.att.com>
2020-09-10Fix aaf startup issue for spring boot updateMaharajh, Robby (rx2202)3-187/+22
Issue-ID: AAI-2886 Change-Id: Ic9b43ebe3ca58eac65cd169f124b74d0032710ea Signed-off-by: Maharajh, Robby (rx2202) <rx2202@us.att.com>
2020-09-09Update traversal to use spring boot 2Maharajh, Robby (rx2202)17-46/+30
Issue-ID: AAI-2886 Issue-ID: AAI-2527 Change-Id: Id6432ff82b0377ff44115d5b42607d1926431f7b Signed-off-by: Maharajh, Robby (rx2202) <rx2202@us.att.com>
2020-06-22traversal support for v20LaMont, William(wl2432)24-190/+917
Issue-ID: AAI-2933 Change-Id: I76f970d15ef911a3dd14d97f2fa050c8b6e29e96 Signed-off-by: LaMont, William(wl2432) <wl2432@att.com>
2020-05-21Updated docker scripts to use aaiadmin userwr148d2-21/+16
Issue-ID: AAI-2822 Change-Id: Ie1985e58230ebe53b6a961eed6bb9c9a7dbc6f20 Signed-off-by: wr148d <wr148d@att.com>
2020-04-23Sonar fixesDavid Brilla17-349/+229
Issue-ID: AAI-2877 Change-Id: Ida4f641c4cc87b69ba5d0ae2c7f3804e53af5b68 Signed-off-by: David Brilla <david.brilla@tieto.com>
2020-04-20update traversal processing for v19LaMont, William(wl2432)114-2034/+9981
Issue-ID: AAI-2866 Change-Id: I344e095e6f1d3b117971c1c78e50ae58bebf27e4 Signed-off-by: LaMont, William(wl2432) <wl2432@att.com>
2019-11-25Change to use aai-parentJimmy Forsyth1-5/+5
Issue-ID: AAI-2724 Signed-off-by: Jimmy Forsyth <jf2512@att.com> Change-Id: Iec7303c7056aaa90302150983c4eb712ba617b09
2019-09-23Update the code to read aaf generated passwordsKajur, Harish (vk250x)2-12/+90
Issue-ID: AAI-2476 Change-Id: I7a13ef0556f9b73d1dda2526c1ef24e860f59dc9 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-09-18Remove the cadi jar file from traversalKajur, Harish (vk250x)1-0/+0
Issue-ID: AAI-2622 Change-Id: Ib685c132e305c948b7048f97aa2a0399422f1449 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-08-29Fixed project version parsingDmitry Puzikov2-34/+25
Change-Id: I4d5179b66f9a7e210a8a9c51e80bd029a1f83983 Issue-ID: INT-762 Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
2019-04-11add v16 to traversal repoLaMont, William (wl2432)31-484/+1573
Issue-ID: AAI-2322 Change-Id: I8967e1e90dc407424c8b8943d1278108f9786cef Signed-off-by: LaMont, William (wl2432) <wl2432@att.com>
2019-04-09Update traversal to use schema ingest changesKajur, Harish (vk250x)5-9/+10
for the application to not start if it doesn't start properly Issue-ID: AAI-2329 Change-Id: I43a196d08853a6fbb02d715d6ec39b78d6611163 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-03-26Remove the internal properties from onapKajur, Harish (vk250x)1-28/+0
Issue-ID: AAI-2288 Change-Id: I8ef38f6aab3d62b784cd779ec11f7dcc7e445bd0 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-03-18Merge "Modify updateQueryData to support debugging mode"James Forsyth1-4/+24
2019-03-18Merge "Method should not have too many parameter"James Forsyth5-1378/+1561
2019-03-17Add v16 to the local properties and pomMaharajh, Robby (rx2202)1-3/+3
Issue-ID: AAI-2266 Change-Id: I7661f2da34dd3142b7dc025bc642020f611077f6 Signed-off-by: Maharajh, Robby (rx2202) <rx2202@us.att.com>