summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2023-11-02Merge "Sonar Fixes"Toine Siebelink2-9/+7
2023-11-02Sonar Fixesegernug2-9/+7
Fixing deprecations in WebSecurityConfig and DmiConfiguration Issue-ID: CPS-89 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: I4c6d10ff7ef174db2a6e93e5e6e4b2b0b97b12f6
2023-11-01Merge "Upgrade of DMI-Plugin to Spring Boot 3.1.2"Toine Siebelink6-15/+17
2023-10-31Upgrade of DMI-Plugin to Spring Boot 3.1.2egernug6-15/+17
Issue-ID: CPS-1790 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: I3eaf8307660ce8d8d33ad98cabb891bcdd663713
2023-10-25[BUG] DMI Change management base endpointhalil.cakal2-6/+3
- Update DMI management endpoint from /manage to /actuator - The actuator port is as same as application port - Change CSIT portfolio - Change web config filters - Change docker-compose - Update the docs Issue-ID: CPS-1922 Change-Id: Iab45a625b518f1b24a77c99dbdf20a58105723b6 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2023-08-25Fix pojos and classes with new cps versionmpriyank9-353/+401
- incorporate changes done on pojos and schema rename in cps 3.3.6 which affects dmi plugin - refactor the test cases and naming - dmi plugin to use the upgraded cps version Issue-ID: CPS-1828 Change-Id: I98fbb15dac58caac584b9e267be0c1cdc3675b91 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-07-26DMI to NCMP Subscription Delete Responseseanbeirne3-2/+10
Issue-ID: CPS-1809 Signed-off-by: seanbeirne <sean.beirne@est.tech> Change-Id: I482cdea009dccc97aea5e96d5d831603c6e21206
2023-07-26DMI Plugins respond back to NCMP Events Schemaseanbeirne11-283/+545
- Introduced Cloud Events for Subscription Response - Created SubscriptionEventResponseMapper - Created CloudEventContructionException for DMI - Modified Folder Structure for Subscriptions Issue-ID: CPS-1738 Signed-off-by: seanbeirne <sean.beirne@est.tech> Change-Id: I242926fb3e6ceb8e6a6ca23bfbd794feacdeaf20
2023-06-30DMI Data AVC RFC8641 and CloudEvent Compliantmpriyank12-105/+332
- Introduced CloudEvents for DMI Data AVC Events - Kafkatemplate config to support legacy as well as CloudEvents - AvcEvent to be compliant with RFC8641 schema format - Updating the released version of CPS and NCMP 3.3.3 - Refactored the test code to handle the changes related to CloudEvents Issue-ID: CPS-1719 Change-Id: I082bbceda6dc26c860e1eff977ede219296d1875 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-06-28Change to OpenAPI 3.0egernug3-14/+15
In preparation for Java 17 migration Swagger codegen needs to be replaced by OpenaAPI 3.0 Issue-ID: CPS-1745 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: I46be8bafad5b5ccff055221e4f3c60b7ec422a70
2023-06-22DMI Plugin replace WebSecurityConfigurerAdapteregernug3-15/+43
Replacing the deprecated class. Issue-ID: CPS-1759 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: I68a7d1b822ef35420f65e7b57e3fc339524f8498
2023-06-20DMI-Plugin : Replacing the word 'Batch' as 'DataOperation'.raviteja.karumuri2-12/+12
Issue-ID: CPS-1754 Signed-off-by: raviteja.karumuri <raviteja.karumuri@est.tech> Change-Id: I8a1d6e329bb79d3762da17e9740854048b2aeace
2023-06-01DMI-Plugin : Update batch endpoint (move url param into rest body)raviteja.karumuri2-18/+18
Issue-ID: CPS-1636 Signed-off-by: raviteja.karumuri <raviteja.karumuri@est.tech> Change-Id: I787be1be899a69c0972ccfd17016e67eaf8a771a
2023-04-21Rearrange method paramsmpriyank1-5/+4
- auto generated code results in parameter sequence mismatch. Issue-ID: CPS-1627 Change-Id: I5b9ca44867bff42bfc5ca35a41560d9ef86b069a Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-04-20Merge "Align dependencies with CPS/NCMP"Luke Gleeson2-64/+9
2023-04-20Align dependencies with CPS/NCMPToineSiebelink2-64/+9
- Updated several generic dependecies - Changed OpenAPI to use core.v3 version - Order of parameters in generated controlelr code changed - Some maven plugins can uses 'latest' version (affected OpenApi code gen) - set some lib versions for csit test - removed spotbug exclusion file (it alwasy used CPS version of this file anyway) - removed @Valid annotaions in affect file (as agrred long time back) Issue-ID: CPS-1627 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ib355382df68ed440618737067590631c7c3a1c8b
2023-04-17Define an interface to accept collection of cm handles for Get operation.leventecsanyi2-0/+30
- Added REST endpoint (Not Implemented yet) - Created unit test Issue-ID: CPS-1555 Change-Id: I24ce8d663602c08cc207f4657289631439d3fb9e Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2023-03-29Fix error 500 while pulling test container cp-kafkahalil.cakal2-53/+7
Issue-ID: CPS-1492 Change-Id: I76be5264b111be36f9d2d1f0af13606244189e7c Signed-off-by: halil.cakal <halil.cakal@est.tech>
2023-03-29Subscription Create Response Handling Dmi Parthalil.cakal7-2/+345
- Consume suscription event (payload) with kafka message key and kafka timestamp from ncmp, and extract cm handle ids. - Generate subscription event response (payload) and revert it back to ncmp to specified topic with the corresponding kafka message key. - Configure kafka consumer properties and dmi service name. Issue-ID: CPS-1492 Change-Id: I87de30c00e0f93e350ce6f9fd6079504952da09b Signed-off-by: halil.cakal <halil.cakal@est.tech>
2023-03-23Fix Avc event creatormpriyank1-5/+6
- adhere to changes in the Avc event schema in cps-and-ncmp repo. - Update cps version dependency in dmi-plugin Issue-ID: CPS-1578 Change-Id: I6749aac437b7954725e5a3a7887ec260cb5e733e Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-03-15Merge existing dmi-plugin of data access passthrough endpointssourabh_sourabh3-21/+122
- Introduced datastore enum and execute existing method based on given datastore. Issue-ID: CPS-1550 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: Idf908a89dce2f5f1a155d630e04ba7869328b94d Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2023-02-01[DMI] Publish Message hidden REST endpoint triggersourabh_sourabh5-0/+303
-Added endpoint to simulate events -Events are published to dmi-cm-events topic -Added Kafka test -WILL FAIL UNTIL CPS PART IS MERGED Issue-ID: CPS-1385 Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Change-Id: Ie802ba819e7b8c5a16504f900bdb89f3e4b0ab4a Signed-off-by: seanbeirne <sean.beirne@est.tech> Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2022-09-15Async event from dmi pluginmpriyank1-1/+2
- Updating cps version to 3.1.0 - Raising async event with correct eventSchema and eventSchemaVersion Issue-ID: CPS-1224 Change-Id: I5e25f6217ad5ff554c98f5756120a44467f99aea Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-07-26Groovy clean tests clean-upemaclee7-204/+205
- test labels are modified to set standards for writing tests - labels are not expected to be technical - labels need to be in simple language that ANYONE can understand - labels should not have exact method names except for some mocking - variables are modified to give highlight to ONLY important parameter of test - wild cards are preferred when possible i.e. for exception cases Issue-ID: CPS-588 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: I3d42471e7aa4bc61f962ad19cc1f237f6985a9a2
2022-06-10Fix sonar code smellsemaclee2-4/+3
- Remove this unused method parameter "operation" (https://sonarcloud.io/project/issues?resolved=false&types=CODE_SMELL&id=onap_cps-ncmp-dmi-plugin&open=AYEgIe-wVOe7T_lfxJBt) - Change method to private Issue-ID: CPS-475 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: I07e9b8150da935387f2a63c5b0e622d5157412de
2022-06-01Async request response dmi -> NCMPJosephKeenan15-302/+514
-Added Async for passthrough running and operational -Build will fail until cps is merged https://gerrit.onap.org/r/c/cps/+/128685 Issue-ID: CPS-830 Change-Id: Iedbfab109f5cd777a5be8eed7414758d0f5ec05c Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-05-09Security Logging Fieldssourabh_sourabh3-0/+82
- logback encoder and sleuth dependencies are added. - New appender is added to log JSON format content on console. Issue-ID: CPS-986 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: Id7e4d836188da54b94144076a8755e4a2643a7ad
2022-04-25Test scenarios for async infra codempriyank3-5/+45
Issue-ID: CPS-987 Change-Id: Ie4c40b91e45ad325658a32eb474840af761e0029 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-04-12Merge "NCMP Kafka Producer Infrastructure"Toine Siebelink10-24/+282
2022-04-11NCMP Kafka Producer Infrastructurempriyank10-24/+282
- Producer configuration and Topic related information. - Accepted topicParameter and request id from NCMP to process async - Replacing Springfox and using Springdoc instead Issue-ID: CPS-829 Change-Id: I369b5ec6c16318220bb218701006918a0bf21419 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-04-08Fix SonarQube violationsToineSiebelink2-9/+8
- Use EnumMap - Remove use of var Issue-ID: CPS-475 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Iebc3d8a8a87d0477c38967126988a6825b7e80a9
2022-04-06Improve branch coverageToineSiebelink4-70/+56
- update to oparent 3.3.0 to allow for checkstyle @SupressWarnings (not used in the end) - refactor code to minimize unused branches (no more switch-statements :-)) - Added test for neccessary but uncovered branches Issue-ID: CPS-475 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I03c7355a7e9d19f57523a65fbff45c9d8f1c9e07
2022-04-04[dmi-plugin] Fix getResourceDataForPassthroughOperational endpointputhuparambil.aditya7-52/+22
Get endpoint only accepts application/json. Issue-ID: CPS-957 Change-Id: I7b9dd00f293f183dc76623c8e32699e8e90fd17c Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
2022-03-28Increase (branch) coverageToineSiebelink1-12/+20
Issue-ID: CPS-475 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Idc2752dae882dd994892d91b7038ae8ef81e532e
2022-03-25Update SpringBoot when approved version has Log4J 2.17.1 or higherJosephKeenan1-0/+9
-Updated cps-dependencies/pom.xml SpringBoot to v2.6.4 Issue-ID: CPS-958 Change-Id: Idac149e77eab1c273694672ee0282868e0e8589a Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-03-23Exception scenario handlingmpriyank1-1/+1
- Updated logic to throw exception when response code is not 2XX, previously it was checking for 201 CREATED Issue-ID: CPS-955 Change-Id: I45cc53cf5b0e603755a75dbd089ead0eb87e5970 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-03-10Refactor dmi plugin code and fix commentssourabh_sourabh2-69/+93
- Used UriComponentBuilder is populate urls. - Removed incorrect import of StringUtils Issue-ID: CPS-569 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: I11c6ad2fec528f9792c05405a7242128c0a6d4e2
2022-01-24Merge "Align DMI Plugin REST API Specification and Implementation"Toine Siebelink1-1/+1
2022-01-20Align DMI Plugin REST API Specification and Implementationputhuparambil.aditya1-1/+1
Issue-ID: CPS-824 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: If4478f6afd6a36570dc2d800484cffdb40c256c9
2022-01-19impl patch operation in dmitragait7-11/+44
Change-Id: Ie87216fa6cb120bea685286b7f0dacd8e22f603b Signed-off-by: tragait <rahul.tyagi@est.tech> Issue-ID: CPS-641
2021-12-21Fix Sonar Qube Violations - Recurring tasksourabh_sourabh2-1/+5
Issue-ID: CPS-475 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: I4279d5ca24b6cd78f419288eba10f557965c5e7b
2021-12-03Fix conversion to string for result from YangResource request on SDN-CToineSiebelink4-33/+165
-Extracted out relevant method to separate class -Added comprehensive tests around relevant methods Issue-ID: CPS-788 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Icb2104ca606b28f1904ead368bcde27f578e7e53
2021-11-23Generating openapi documentation from openapi.yamlputhuparambil.aditya1-0/+8
Issue-ID: CPS-755 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ib19afce259639d0154e6dbeb825c5da0e3dbfa3a
2021-11-12Support Update and Delete operations for DS Passtrough-Running in DMI PluginDylanB95EST14-215/+319
-Add Update operation for Passthrough Running -Use POST operatiosn for all methods as agrred -refactor to simplify and beter reuse of common methods -add delete operation for passthrough running Issue-ID: CPS-637 Issue-ID: CPS-638 Change-Id: I441181f977dee2bc0be944662465d868595ea452 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-11-02Refactor Get Modules by CMHandle flowRenu Kumari9-261/+229
- Used jayway to convert sdnc response to POJO to clean up classes - Moved SDNC error handling to the SDNCOperation - Added SdncException - Added spring-security test Mock user in the controllerSpec Issue-ID: CPS-571 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: Ice91e48536dd2e309721440b61d37a49ce43b403
2021-10-28Upgrade spring boot dependencies to 2.5.5Bruno Sakoto1-8/+0
Also remove org.jetbrains.annotations that is not part of spring boot 2.5.5 anymore. Issue-ID: CPS-582 Change-Id: Ia15861b423c9ba63ebf416513aac9ac61eab4742 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
2021-10-08Update the ncmp dmi registration urlRenu Kumari1-1/+1
Issue-ID: CPS-722 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I67ca134c5f3528d5c5e96f006fd58f603b38fc16
2021-10-07Change the dmiRegistrationURl to /ncmpRenu Kumari1-1/+1
Issue-ID: CPS-722 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I9ae28a5791476950f37fd75a4cf266b8c1249505
2021-10-07Updating get module schema request bodyniamhcore3-38/+15
Issue-ID: CPS-706 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I92d241c4ccde77aaaf8aa5a3903437016edf65d0
2021-10-07Merge "fix query param to options"Niamh Core7-95/+108