summaryrefslogtreecommitdiffstats
path: root/src/test/groovy/org
AgeCommit message (Collapse)AuthorFilesLines
2024-06-24Create module structure in DMI Pluginegernug17-1958/+0
To push the stub in to DMI Plugin the Plugin will need to be modulized akin to CPS/NCMP. This involves creating a new module in the repo and porting the packages in src into this module Issue-ID: CPS-2284 Change-Id: Iffa4eded4e49c220891fe73c30ea3b2f12a9e66d Signed-off-by: egernug <gerard.nugent@est.tech>
2024-06-05Merge "Implement ACK in DMI Plugin"Toine Siebelink1-0/+69
2024-05-30Implement ACK in DMI Pluginegernug1-0/+69
Implementing a response in DMI Plugin to indicate that the datajobs API is not implemented Issue-ID: CPS-2243 Change-Id: I5215d634006a2031638110e3dc159c66ad4e7d86 Signed-off-by: egernug <gerard.nugent@est.tech>
2024-05-29Merge "CPS-2187 - Move Module Set Tag into request body for data access ↵Toine Siebelink1-2/+2
passthrough"
2024-05-28Merge "DMI CmSubscription topic params update"Lee Anjella Macabuhay1-8/+8
2024-05-28CPS-2187 - Move Module Set Tag into request body for data access passthroughdavid.mcweeney1-2/+2
Change-Id: If633e1d2cd3e9986917f3537286896198a6a3897 Signed-off-by: david.mcweeney <david.mcweeney@est.tech> Issue-ID: CPS-2187
2024-05-27DMI CmSubscription topic params updateseanbeirne1-8/+8
Issue-ID: CPS-2242 Change-Id: I4628e28a14bab7b15c615d13d6aea7ae97409f5a Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-05-20CPS-2182 -#3 Include module Set Tag in dmi batch data enpointdavid.mcweeney1-1/+8
Change-Id: Ib45cc59c12062429aababa7aedb3a028aac0315c Signed-off-by: david.mcweeney <david.mcweeney@est.tech> Issue-ID: CPS-2182
2024-05-16CPS-2187 - #5 Add module Set Tag to dmi (single cm handle) data requestdavid.mcweeney1-6/+18
Change-Id: Iae7e3bac67bb8e5bbb50e4157fdf7daf9fc2220f Signed-off-by: david.mcweeney <david.mcweeney@est.tech> Issue-ID: CPS-2187
2024-05-16Merge "CPS-2181 - #2 Included Module Set Tag as incoming param for Yang ↵Toine Siebelink1-0/+41
Module Resources - DMI"
2024-05-15CPS-2181 - #2 Included Module Set Tag as incoming param for Yang Module ↵david.mcweeney1-0/+41
Resources - DMI Change-Id: I799159798d9c6018a1495c61924111610bbe2978 Signed-off-by: david.mcweeney <david.mcweeney@est.tech> Issue-ID: CPS-2181
2024-05-08Increase Test Coverage for DMIseanbeirne2-3/+32
Issue-ID: CPS-2203 Change-Id: Ib2fd213512db9f23220db53ed795961e747ee17c Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-04-11Read and send Response (DMI <> NCMP) for CmSubscriptionseanbeirne3-0/+266
-Update subscription code to new models Issue-ID: CPS-1971 Change-Id: I382ca31407f8088ddea889a7ab904a22c09789ff Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-03-06Remove old subscription code and other fixesmpriyank4-295/+25
- removed old subscription related dummy code. - updated cps version to 3.4.6 to use the latest released version - added six dependency for the RTD fix - Removing the CloudEventMapper for now. Can be brought back when somebody uses it - added missing test for InvalidDatastoreException which was failing on coverage check locally Issue-ID: CPS-2149 Change-Id: I60e9036398fea82bb0162ab5524a1cc45dedb611 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-10-31Upgrade of DMI-Plugin to Spring Boot 3.1.2egernug1-2/+2
Issue-ID: CPS-1790 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: I3eaf8307660ce8d8d33ad98cabb891bcdd663713
2023-08-25Fix pojos and classes with new cps versionmpriyank4-133/+153
- 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 Responseseanbeirne1-1/+5
Issue-ID: CPS-1809 Signed-off-by: seanbeirne <sean.beirne@est.tech> Change-Id: I482cdea009dccc97aea5e96d5d831603c6e21206
2023-07-26DMI Plugins respond back to NCMP Events Schemaseanbeirne4-108/+281
- 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 Compliantmpriyank5-24/+68
- 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.0egernug1-3/+3
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 WebSecurityConfigurerAdapteregernug2-1/+6
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.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-12/+11
Issue-ID: CPS-1636 Signed-off-by: raviteja.karumuri <raviteja.karumuri@est.tech> Change-Id: I787be1be899a69c0972ccfd17016e67eaf8a771a
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-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.cakal1-0/+109
- 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-02-01[DMI] Publish Message hidden REST endpoint triggersourabh_sourabh2-0/+133
-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-07-26Groovy clean tests clean-upemaclee6-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 smellsemaclee1-1/+1
- 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 -> NCMPJosephKeenan5-153/+163
-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-25Test scenarios for async infra codempriyank2-4/+44
Issue-ID: CPS-987 Change-Id: Ie4c40b91e45ad325658a32eb474840af761e0029 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-04-11NCMP Kafka Producer Infrastructurempriyank4-6/+118
- 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-06Improve branch coverageToineSiebelink2-14/+23
- 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.aditya3-32/+16
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-10Refactor dmi plugin code and fix commentssourabh_sourabh1-12/+13
- 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-19impl patch operation in dmitragait3-8/+12
Change-Id: Ie87216fa6cb120bea685286b7f0dacd8e22f603b Signed-off-by: tragait <rahul.tyagi@est.tech> Issue-ID: CPS-641
2021-12-03Fix conversion to string for result from YangResource request on SDN-CToineSiebelink2-2/+100
-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 PluginDylanB95EST4-76/+143
-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 Kumari4-129/+109
- 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-07Updating get module schema request bodyniamhcore1-22/+4
Issue-ID: CPS-706 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I92d241c4ccde77aaaf8aa5a3903437016edf65d0
2021-10-06fix query param to optionstragait3-22/+46
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 Core6-14/+210
2021-10-01Fix issues with SOnar Qube coverage reportToineSiebelink6-14/+210
-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-7/+16
* 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-7/+8
Issue-ID: CPS-653 Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: I6b5f0fc74ea4e70e65b05ed353e25311ed36135e
2021-09-22Add get modules response type to openapiniamhcore2-26/+19
Issue-ID: CPS-657 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Ifcd22b6e82aaf4993f9071ad56b524fe620afaf7
2021-09-21fix data from object to stringtragait3-30/+34
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-16/+26
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/+7
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