summaryrefslogtreecommitdiffstats
path: root/src/main/java
AgeCommit message (Collapse)AuthorFilesLines
2023-06-20DMI-Plugin : Replacing the word 'Batch' as 'DataOperation'.raviteja.karumuri1-6/+6
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.karumuri1-6/+7
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 Gleeson1-10/+9
2023-04-20Align dependencies with CPS/NCMPToineSiebelink1-10/+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.leventecsanyi1-0/+15
- 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-29Subscription Create Response Handling Dmi Parthalil.cakal3-0/+173
- 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_sourabh3-0/+170
-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-06-10Fix sonar code smellsemaclee1-3/+2
- 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 -> NCMPJosephKeenan8-141/+335
-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-04-12Merge "NCMP Kafka Producer Infrastructure"Toine Siebelink4-16/+133
2022-04-11NCMP Kafka Producer Infrastructurempriyank4-16/+133
- 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 coverageToineSiebelink2-56/+33
- 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.aditya4-20/+6
Get endpoint only accepts application/json. Issue-ID: CPS-957 Change-Id: I7b9dd00f293f183dc76623c8e32699e8e90fd17c Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
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_sourabh1-57/+80
- 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 dmitragait3-3/+24
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-CToineSiebelink2-31/+65
-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-12Support Update and Delete operations for DS Passtrough-Running in DMI PluginDylanB95EST5-139/+152
-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 Kumari5-132/+120
- 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-07Updating get module schema request bodyniamhcore1-15/+11
Issue-ID: CPS-706 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I92d241c4ccde77aaaf8aa5a3903437016edf65d0
2021-10-06fix query param to optionstragait4-73/+62
Issue-ID: CPS-678 Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: I4ac72da512e2c7883920907137b8834ce20d4528
2021-10-05Merge "Fix issues with SOnar Qube coverage report"Niamh Core9-19/+21
2021-10-01Fix issues with SOnar Qube coverage reportToineSiebelink9-19/+21
-removed invalid jacoco exclude -removed strange (generated/accidental?) comment in main pom header -moved manually coded 'models' package (included in coverage now) to separate it from swagger generated package/classes with same name (exluded in coverage) -added some missing test scenarios -increased coverage limit from 70 to 98% to prevent regression Issue-ID: CPS-475 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I2f1c276c543926d2d259e33b418f21de4abfea96
2021-09-30Changing resource identifier to a query paramniamhcore1-8/+8
* Updating yaml * Update jib-maven-plugin version Issue-ID: CPS-679 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Ie2f49bd8e22723ca4dcd2c20ed39722f22c281c1
2021-09-27fix fetch modules request bodytragait1-10/+14
Issue-ID: CPS-653 Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: I6b5f0fc74ea4e70e65b05ed353e25311ed36135e
2021-09-22Add get modules response type to openapiniamhcore3-19/+18
Issue-ID: CPS-657 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Ifcd22b6e82aaf4993f9071ad56b524fe620afaf7
2021-09-21fix data from object to stringtragait3-49/+40
Also, make dmi service url configurable, change name of dmi creds env var Issue-ID: CPS-675 Issue-ID: CPS-634 Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: I6fe794b3e65b6a3aae2a1698ea64a925238a18d3
2021-09-15Update response code for passthrough-running create use-caseniamhcore2-3/+3
Issue-ID: CPS-659 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I4ebc4f68604efe78efb951989c2fb021443c36c9
2021-09-10revert cps:634 postpone this bug to jakartatragait4-6/+16
This commit also have fix in application yaml for correct ncmp api path for registration url. Issue-ID: CPS-634 Issue-ID: CPS-617 Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: I465991492a01092e28b97583f84ed959c54ffaa6
2021-09-06Fix Sonar Qube Violationslukegleeson2-9/+13
Issue-ID: CPS-475 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I7d4242f49212fb7b973450a841f0251e2fb36b08
2021-09-03fix data type as string for dmi request bodytragait2-12/+3
Issue-ID: CPS-634 Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: Ib3d9d7cab12c77332d799b89e73e5a9b934a4473
2021-08-31Merge "Adding name and revision tag for yang resources output"Toine Siebelink1-3/+28
2021-08-31Adding name and revision tag for yang resources outputniamhcore1-3/+28
Issue-ID: CPS-589 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I43f6971f416c6aa3ac1b1a56626930ad16288680
2021-08-30Merge "fix getforentity in onap DMI plugin"Niamh Core2-1/+5
2021-08-27fix getforentity in onap DMI plugintragait2-1/+5
Issue-ID: CPS-573 Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: Idb2186e6f3275530513bbd5e788c98b4ceda9d10
2021-08-27Address minor code review comments for CPS-484niamhcore2-7/+11
Issue-ID: CPS-565 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I8cb28cf60622e5a9c0211b4fa7db2f255ede165a
2021-08-25Write data for cm handle passthrough:runningniamhcore5-131/+195
Issue-ID: CPS-574 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I15e2ad500d2bbf7a1d408b8a852287e55bddbecb
2021-08-20Merge "Get resource data for pass-through running (dmi-impl)"Niamh Core4-12/+84
2021-08-19Get resource data for pass-through running (dmi-impl)tragait4-12/+84
Issue-ID: CPS-561 Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: Ia92a97296e2c3e84d0b6f6d9d1d0daf1e8f46b55
2021-08-18Fix Sonar Qube Violationslukegleeson2-8/+4
Issue-ID: CPS-475 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I04c857c3046c76eb3311ad916af2c4321ca47686
2021-08-18Transform module information from NetConf node to Generic format for NCMPniamhcore6-8/+155
Issue-ID: CPS-531 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I918be4db5066d92b23e25fc7fbc22d4535fafc8c