summaryrefslogtreecommitdiffstats
path: root/aai-traversal/src/test/java
AgeCommit message (Collapse)AuthorFilesLines
2024-01-02Update spring-boot to 2.3Fiete Ostkamp1-2/+3
- 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 Ostkamp6-376/+180
- 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 Ostkamp2-8/+10
- 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 Ostkamp1-1/+0
- 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 Ostkamp5-108/+285
- 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-11-13Update spring-boot to 2.2Fiete Ostkamp11-106/+162
- 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-10-12Enhancement of AAI-traversal healthcheckFiete Ostkamp2-15/+78
- 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-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-05Run the formatter for the traversal serviceFiete Ostkamp167-14477/+16260
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
2021-09-22Fix integration testsM.Hosnidokht4-0/+362
- 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-18[AAI] Integrate Micrometer to identify slow APIs (Making aai_uri tag ↵Dimple Soni1-1/+4
configurable) Issue-ID: AAI-3367 Signed-off-by: Dimple Soni <dimple.soni@yoppworks.com>" Change-Id: If8a5734c702242a292eeb6c9c26a844242e1f849
2021-05-19[AAI] Export relevant key metrics for monitoring in Prometheusroger yuan1-0/+105
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
2020-09-09Update traversal to use spring boot 2Maharajh, Robby (rx2202)8-9/+8
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)9-129/+774
Issue-ID: AAI-2933 Change-Id: I76f970d15ef911a3dd14d97f2fa050c8b6e29e96 Signed-off-by: LaMont, William(wl2432) <wl2432@att.com>
2020-04-20update traversal processing for v19LaMont, William(wl2432)45-320/+5912
Issue-ID: AAI-2866 Change-Id: I344e095e6f1d3b117971c1c78e50ae58bebf27e4 Signed-off-by: LaMont, William(wl2432) <wl2432@att.com>
2019-04-11add v16 to traversal repoLaMont, William (wl2432)11-53/+434
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)4-9/+9
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-02-26Method should not have too many parameterArindam Mondal1-29/+38
patch4: incorporated code review comment Issue-ID: AAI-2187 Change-Id: Ied22a0cacb53f37d768020c57c2026f229a1e94a Signed-off-by: Arindam Mondal <arind.mondal@samsung.com>
2019-02-19Merge "added test file to cover DslQueryBuilderTest"James Forsyth1-0/+59
2019-02-18added test file to cover DslQueryBuilderTestSandeep J1-0/+59
to increase code coverage Issue-ID: AAI-2146 Change-Id: Id1daef61abfffc935095a801648e543bb27f72af Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-02-18added test file to cover DslContext.javaSandeep J1-0/+43
to increase code coverage Issue-ID: AAI-2146 Change-Id: Ia0d9cc931bcc395584ea418f0fa23d3a501e6065 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-01-16Update traversal to support v15LaMont, William (wl2432)27-66/+1892
Issue-ID: AAI-2073 Change-Id: I1c3df218d1333bdebc984947edc100607958ab60 Signed-off-by: LaMont, William (wl2432) <wl2432@us.att.com>
2018-08-13Update traversal to use schema ingest libraryKajur, Harish (vk250x)75-1925/+5690
Update the traversal microservice to use the ingest library to make the application more model driven Issue-ID: AAI-1465 Change-Id: Ifcf56b5d0e7f25ce2bc735b3186e09bc28234100 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-04-18Fix the traversal bug due to the timeoutKajur, Harish (vk250x)1-1/+3
Issue-ID: AAI-1037 Change-Id: Ib703cf1ab080cae27d479a2427b45b58d5c25765 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-04-11Fix the basic auth issue which got brokenKajur, Harish (vk250x)1-4/+4
with spring boot Issue-ID: AAI-1020 Change-Id: If99add1e401284c505bfebccfe82a94694da1a4b Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-03-28Add to traversal custom query to get parent pathMaharajh, Robby (rx2202)6-74/+290
Issue-ID: AAI-963 Change-Id: I3b323a42519de29980337ab80d9d0b68f16878c3 Signed-off-by: Maharajh, Robby (rx2202) <rx2202@att.com>
2018-03-28Update the titan code to janus graph codeKajur, Harish (vk250x)11-488/+857
Issue-ID: AAI-949 Change-Id: Iabb282fb808742d2cc09791a189a5372a01f5be2 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-03-22Update the license for 2017-2018 licenseKajur, Harish (vk250x)85-287/+256
Issue-ID: AAI-857 Change-Id: Iaf82b650bf26b6ba60f7670313f1814e282bb858 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2018-03-07Update traversal from AJSC 2 to Spring BootVenkata Harish K Kajur17-757/+263
Issue-ID: AAI-799 Change-Id: I6500f661db704726f529f665203a9c0605e8193e Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
2018-02-15Sync logging context changesVenkata Harish K Kajur42-872/+4342
Issue-ID: AAI-493 Change-Id: I8c460cce840b4fe46ff4deacbe3a770755a4c677 Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
2018-01-15Add ability to do optional params for custom queryLamont, William (wl2432)6-1/+982
Change-Id: I1e61bbee2def41db5e7064ad3a3e916b7afcc299 Issue-ID: AAI-652 Signed-off-by: Lamont, William (wl2432) <wl2432@att.com>
2017-12-08Add the service model custom queryVenkata Harish K Kajur1-0/+76
Issue-ID: AAI-557 Change-Id: Ibe6ab6a565d0db65edd29e110ad1283c1af4e3f0 Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
2017-10-09Add unit test cases to increase the sonar coverageaditya2-1439/+824
Add unit test cases to increase the sonar coverage Issue ID: AAI-212 Change-Id: Ife2e388dec30068781f83e478180fc0054d83f17 Signed-off-by: Aditya Gajulapalli <ag282f@att.com>
2017-09-28Change all the packages from openecomp to onapVenkata Harish K Kajur60-3183/+3383
Issue-ID: AAI-61 AAI-82 Change-Id: Iba7de4bd0dea1398d8608c9c514d78ad69201d0a Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
2017-09-27Add unit test cases to increase the sonar coverageaditya9-147/+1213
Add unit test cases to increase the sonar coverage Issue ID: AAI-212 Change-Id: I7fec9a9f4d2e7f898cd15bba513bee2ece139ea8 Signed-off-by: Aditya Gajulapalli <ag282f@att.com>
2017-09-25Create a query to provide horizontal viewVenkata Harish K Kajur2-0/+203
Issue-ID: AAI-381 Change-Id: I7da103f72c68eef615f73d21a5a8cc4fc89160ad Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
2017-09-22Add stored queries for port mirroringVenkata Harish K Kajur7-0/+559
Issue-ID: AAI-373 Change-Id: I3356400a0d63791c0f959053e8a2d9fb784de456 Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
2017-09-19Add custom queriesLin, Jerry (jl319x)4-0/+538
Issue-ID: AAI-339 Change-Id: Ic93ef73daaa8c4e24168be62414bd67bad5b2a8b Signed-off-by: Lin, Jerry (jl319x) <jl319x@att.com>
2017-09-15Increase the code coverage for sonar to 30%Venkata Harish K Kajur9-147/+472
Issue-ID: AAI-212 Change-Id: I823f697733c4b6ae44d36f018b2d093316499add Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
2017-09-15Add unit tests to get 30% coverageVenkata Harish K Kajur7-0/+1012
Issue-ID: AAI-212 Change-Id: I270452f725f30c620091406df6f5ce07fc2cb264 Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
2017-09-14Add unit test cases to increase the sonar coverageaditya2-67/+1524
Add unit test cases to ModelBasedProcessing to increase the sonar coverage Issue ID: AAI-212 Change-Id: I303fc142f29fbf05183e9fc1e04a98e188ce81e3 Signed-off-by: Aditya Gajulapalli <ag282f@att.com>
2017-09-01added new queries for vce resiliency automationThreefoot, Jane (jt6620)4-0/+325
Issue-ID: AAI-258 Change-Id: I648dc6f51e8801a29324d6e56e357bdefc957ae3 Signed-off-by: Threefoot, Jane (jt6620) <jt6620@att.com>
2017-08-18[AAI-194 Amsterdam] Add the stored query and testVenkata Harish K Kajur1-0/+79
Change-Id: Idfcf4dacb9b778d187ef74fbfa1a33305aabecab Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
2017-08-14[AAI-168 Amsterdam] add stored queriesur326r5-5/+150
Change-Id: I3ab0459c97ebbab98b0a6dc4c9d3cb701aac548f Signed-off-by: ur326r <ur326r@att.com>
2017-08-14[AAI-147 Amsterdam] Fix commentLin, Jerry (jl319x)3-30/+30
Change-Id: I5407527041a2b3a5c886d8c09e225f102d47c3d3 Signed-off-by: Lin, Jerry (jl319x) <jl319x@att.com>
2017-08-14[AAI-147 Amsterdam] add custom queriesLin, Jerry (jl319x)7-30/+617
Change-Id: I0f03b5c63629a305d1156ff62902f872d50ff92d Signed-off-by: Lin, Jerry (jl319x) <jl319x@att.com>
2017-08-11[AAI-162 Amsterdam] Convert custom queries to notMaharajh, Robby (rx2202)7-173/+183
use gremlin Signed-off-by: Maharajh, Robby (rx2202) <rx2202@us.att.com> Change-Id: I83892630687c7c274b9fa63942954a26397a8361
2017-08-08[AAI-154 Amsterdam] Check in titan refactorMuller, Andrew (am8383)4-1/+394
Change-Id: I136eca1c2dbc337f9f6019e52cfe60b15ebfbe7d Signed-off-by: Muller, Andrew (am8383) <am8383@us.att.com>
2017-08-11[AAI-124 Amsterdam] added new queriesThreefoot, Jane (jt6620)9-5/+711
Change-Id: I92afb1df851b07810cf481140f7d6ab2a5d79c0d Signed-off-by: Threefoot, Jane (jt6620) <jt6620@att.com>
2017-08-02[AAI-123 Amsterdam] check-in source code:Lamont, William (wl2432)1-0/+85
Change-Id: Ib700f5b821f9ba77a2f64b5228112c1569f7eb8c Signed-off-by: Lamont, William (wl2432) <wl2432@att.com>