summaryrefslogtreecommitdiffstats
path: root/prh-app-server/src
AgeCommit message (Collapse)AuthorFilesLines
2021-02-03Upgrade Spring Boot and Spring Cloud versionsMaciej Malewski2-6/+7
Spring Boot from 2.2.4.RELEASE to 2.4.2 Spring Cloud from Greenwich.SR1 to 2020.0.1 Issue-ID: DCAEGEN2-2537 Signed-off-by: Maciej Malewski <maciej.malewski@nokia.com> Change-Id: I51c8c450133a68435799802f548bb16ba562550c
2020-08-06DCAE-PRH Fix lib vulnerabilitiesdeen19851-3/+2
Change-Id: I55d230a82ab58f99b89c49162bf952799e115ff4 Signed-off-by: deen1985 <damian.nowak@nokia.com> Issue-ID: DCAEGEN2-2276 Signed-off-by: deen1985 <damian.nowak@nokia.com>
2020-03-05PRH error after PNF relocationJoanna Jeremicz3-4/+8
Path should be encoded before it is used as URL Change-Id: I408064245d9f56ea7925bc5a882ed42d8c84f191 Issue-ID: DCAEGEN2-2088 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-12-06Refactor AaiClient API - package restructureMichal Kabaj19-82/+77
- Reorganized aaiclient related classes between api/impl/main packages Issue-ID: DCAEGEN2-1955 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com> Change-Id: Ie68f74cd94a6de0806c192046c1746af25979170
2019-12-05Refactor AaiClient API - package structureMichal Kabaj10-18/+18
- Removed redundant get/patch packages - Flattened aii api package structure to 'api' and 'main' Issue-ID: DCAEGEN2-1955 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com> Change-Id: I9025245f70c5dd0bb03e7289f8bc7dbf08853687
2019-12-04Refactor AaiClient API - remove interfacesMichal Kabaj5-16/+16
- Removed JsonBodyBuilder because it had only one impl - AaiJsonBodyBuilderImpl - Removed AaiModel because it had only one impl - ConsumerDmaapModel - Replaced usages of removed interfaces with concrete implementations Issue-ID: DCAEGEN2-1955 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com> Change-Id: I6cd651b2061e8520a508e3a62091d1cb15002c99
2019-11-28aaiclient api refactorMichal Kabaj12-92/+107
- Moved aaiclient code from SDK to PRH improvement of logic fragmentation Issue-ID: DCAEGEN2-1955 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com> Change-Id: I11d5b92014cdeb036699099113f64fc320cb4dd1
2019-11-21Fix PrhWorkflowSchedulingIntegrationTestJoanna Jeremicz4-7/+74
- Clean up scheduledTasksRunner after previous integration tests - Prevent race condition Change-Id: If3763cbc031ddca3a14568742265644b4472a448 Issue-ID: DCAEGEN2-1853 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-11-07Merge "Update PNF in AAI"Piotr Wielebski2-4/+5
2019-11-05Update PNF in AAIJoanna Jeremicz3-4/+7
PNF is now updated with parameters from VES event whenever PNF_UPDATE case is executed Issue-ID: DCAEGEN2-1911 Change-Id: I262e4fbf52c92f7a187f3730b40f7f5d689d2dc3 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-11-04Fix SDK importsJoanna Jeremicz13-28/+30
Issue-ID: DCAEGEN2-1792 Change-Id: I29e436e1c0483c7f56129d6de8389e71442b86a0 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-10-10Adjust baseUrlJoanna Jeremicz2-2/+2
Make baseUrl in tests more real Change-Id: I61bb7012f5f67797244806e1cfe528bf10e6a0b5 Issue-ID: INT-1181 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-10-08Add baseUrl supportJoanna Jeremicz3-0/+3
Add support for baseUrl usage. It is needed for handling objects other than pnfs from the inventory. BaseUrl is necessary for fixing the existing bug, where pnf path is used to get service-instance from AAI. Issue-ID: INT-1181 Change-Id: I340a0fc569bfdd027bbac81f059a2a5f0dae17a1 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-07-11Replace dummy prh workflow scheduling test generating fake code coverage ↵grabinsk12-339/+198
with a prh workflow integration test with aai and dmaap mocked using wiremock and simple prh workflow scheduling test Change-Id: Id6cfbcf62e865e1527cce2e006b1d85ea499f3f3 Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-07-03Logical links creation bugJoanna Jeremicz2-0/+10
Cleanup and test enhancements Change-Id: I0c5c027ceed13ec9b63b60555e78ef552122aeac Issue-ID: DCAEGEN2-1611 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-07-02fix CbsConfiguration update buggrabinsk1-1/+2
'CbsConfiguration' bean is statefull. The singleton instance lifespan should match application lifespan. The problem was bootstrap context (and all it's beans) are destroyed during bootstrap context refresh. Change-Id: Ib02cd49c37935422d4ca861afee55f621015146e Issue-ID: DCAEGEN2-1647 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-06-28fix PRH dmaap content type configuration after breaking changes introduced ↵grabinsk12-77/+30
to SDK and mix of minor code cleanups Change-Id: I568f49b8b6635f23b2089a4355eb78451102c2b1 Issue-ID: DCAEGEN2-1647 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-06-25Merge "Adding logs in BBSActionTaskImpl"Piotr Wielebski1-2/+2
2019-06-25Adding logs in BBSActionTaskImplMarcin Migdal1-2/+2
Change-Id: I3a21021427eb75964c88542a68838ccb443c60e5 Issue-ID: DCAEGEN2-1636 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-06-24basic test for 'CbsConfiguration'grabinsk1-0/+70
Change-Id: Ic574a6d338d58b469db232ef1fe692d3dcda57f2 Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-06-24Replace mocks with real object usage in test CbsClientConfigurationResolver testgrabinsk1-16/+16
This adds test coverage missing from CbsProperties.toCbsClientConfiguration() method Change-Id: I2da6f4b4392dbace4a8a827406a9b485f9cbfa79 Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-06-21Skip putting non-primitive values from CBS config into PRH app environmentgrabinsk2-27/+19
Non-primitive properties are currently not used by app and cause serialization failure on 'actuator/env' endpoint. The serialization issue is caused by fact, that swagger enforces switch to jackson and there are no proper gson's JsonObject serializers registered. Change-Id: Id5cfb743282aeec7db88434f06815ae5cc9057a6 Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-06-17Merge "Do not start scheduling until application starts"Piotr Wielebski1-2/+7
2019-06-17Merge "cbs config refresh scheduler bugfix"Piotr Wielebski1-1/+1
2019-06-17Logical links creation bugJoanna Jeremicz1-1/+1
Added missing slash Change-Id: I63104d7d0919828ffb67dc437ee8c1d1299916b4 Issue-ID: DCAEGEN2-1611 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-06-17cbs config refresh scheduler bugfixgrabinsk1-1/+1
(inappropriate transient usage where volatile expected) Change-Id: I5208ff889e55530276e4605e591ff6b681d1e096 Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-06-14Do not start scheduling until application startsgrabinsk1-2/+7
(moving task schedule starting logic from bean's post construct to ApplicationStartedEvent listener) Change-Id: Ia09ecbf5efda9b8f838053359bba2cfe80ce095b Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-06-14fetching configuration from CBS at application bootstrapgrabinsk24-174/+956
Change-Id: Ibaa56c38b87fc8b8cfa858f74b7bc201bd507b37 Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-06-13Logical links creation bugJoanna Jeremicz5-61/+269
Fixed issues: Second PNF registration with same attachment point doesn't send output to PNF_READ Second PNF registration with different attachmentPoint doesn't replace previous Logical Link Change-Id: I238a8aa6d3f360da3451c720dc5cb1fa2e1ebd75 Issue-ID: DCAEGEN2-1611 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-06-12Align to new SDK versionJoanna Jeremicz3-44/+47
Change-Id: I06974c7f890bfa1cb875d776efa8b3a9f5b0a711 Issue-ID: DCAEGEN2-1613 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-06-10Merge "exposing actuator/loggers endpoint for ad-hoc logging level management"Piotr Wielebski1-0/+3
2019-06-10handle 404 from aaigrabinsk1-4/+10
(parsing response body from aai should not be attempted if there is no 2xx response) Change-Id: Iedc9daa65895600d826ac808784b3c6803a6dab4 Issue-ID: DCAEGEN2-1601 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-06-10exposing actuator/loggers endpoint for ad-hoc logging level managementgrabinsk1-0/+3
Change-Id: Ia19388a1a6e9a46273a59d0d9930f054d271f6f9 Issue-ID: DCAEGEN2-1609 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-06-10Merge "fix logging"Piotr Wielebski1-12/+3
2019-06-05fix loggingmicdzied1-12/+3
Change-Id: Iebc973500f880f6b5c248b5e26740568ac993b0b Issue-ID: DCAEGEN2-1601 Signed-off-by: micdzied <michal.1.dziedzic@nokia.com>
2019-06-04Fix attachment-point issuepwielebs2-20/+4
Change-Id: Iba52e54e09774a54d23c410c0081aae0643e76c3 Issue-ID: DCAEGEN2-1596 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2019-06-03cleanups around CbsClientConfiguration resolvinggrabinsk9-103/+213
Change-Id: Id3c02de034fbf396e81dab39c4442880b346e70d Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-06-03Merge "Adjust PRH with SDK"Piotr Wielebski2-18/+19
2019-06-03Adjust PRH with SDKkurczews2-18/+19
Change-Id: If1f230047bf635d5288482b275d05c484a4ecaec Issue-ID: DCAEGEN2-1521 Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
2019-05-31Add test for ScheduleController;grabinsk4-16/+84
moving web related logic out from ScheduleTasksRunner Change-Id: I57c0311509ca94b639e3dc9978fbe602aec1f0c4 Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-05-31Merge "replace local copy of 'MdcVariables' with one from SDK"Piotr Wielebski2-8/+10
2019-05-31Adding 'dev' profile with default spring's logback console appender to allow ↵grabinsk2-0/+19
starting app from IDE Change-Id: If59c8678f0fb323b3201eb4f52926e2f2baa3e67 Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-05-31replace local copy of 'MdcVariables' with one from SDKgrabinsk2-8/+10
Change-Id: I9d13941ca9c4d70b5c4d9c354fa0ba09c3e5e6fa Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-05-31Merge "Fix Sonar issues"Piotr Jaszczyk7-40/+27
2019-05-31Replace hand-written MockitoExtension with official one from ↵grabinsk5-121/+31
mockito-junit-jupiter Change-Id: I28e9057822f80f7514a640fbc66f54d9f5488cbf Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-05-30remove dependency to testNGgrabinsk1-2/+1
(SpringExtension does the job of AbstractTestNGSpringContextTests) Change-Id: Iafea26232a659b5e1ef6bb4e152a35ca795f9326 Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-05-30Fix Sonar issuespwielebs7-40/+27
Change-Id: If7134bf3b5aabdba6d057562ae863b40412e2d6b Issue-ID: DCAEGEN2-1501 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2019-05-30Merge "Configs cleanup Adding test for AppInfoController"Piotr Wielebski8-85/+95
2019-05-30Configs cleanupgrabinsk8-85/+95
Adding test for AppInfoController Change-Id: Ib793cf20a17bcca56f5fe2162048c1b95409da01 Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-05-30Update test json file due to changes in SDKpwielebs2-22/+1
Change-Id: I343c099502bd6fc63ea4fc22706be96832f67c5f Issue-ID: DCAEGEN2-1501 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>