cps/ncmp-dmi-plugin.git
23 months agoMigrate DMI Plugin to Java 17 81/135481/3
egernug [Mon, 17 Jul 2023 12:45:51 +0000 (13:45 +0100)]
Migrate DMI Plugin to Java 17

As part of vulnerability work CPS is migrating to Java 17

Issue-ID: CPS-1775

Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: If53c7cdeb73b31a84d4c6ac5163ab38b6bb9d5fa

2 years agoDMI Data AVC RFC8641 and CloudEvent Compliant 08/135008/5
mpriyank [Tue, 20 Jun 2023 12:42:31 +0000 (13:42 +0100)]
DMI Data AVC RFC8641 and CloudEvent Compliant

- 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>
2 years agoChange to OpenAPI 3.0 02/135202/1
egernug [Wed, 28 Jun 2023 09:57:53 +0000 (10:57 +0100)]
Change to OpenAPI 3.0

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

2 years agoMerge "DMI Plugin replace WebSecurityConfigurerAdapter"
Toine Siebelink [Thu, 22 Jun 2023 15:36:49 +0000 (15:36 +0000)]
Merge "DMI Plugin replace WebSecurityConfigurerAdapter"

2 years agoDMI Plugin replace WebSecurityConfigurerAdapter 94/135094/2
egernug [Thu, 22 Jun 2023 12:26:13 +0000 (13:26 +0100)]
DMI Plugin replace WebSecurityConfigurerAdapter

Replacing the deprecated class.

Issue-ID: CPS-1759

Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: I68a7d1b822ef35420f65e7b57e3fc339524f8498

2 years agoAdd RTD link to CPS in Release notes 83/135083/2
ToineSiebelink [Thu, 22 Jun 2023 09:16:06 +0000 (10:16 +0100)]
Add RTD link to CPS in Release notes

Issue-ID: REQ-1580
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I3481703ab6c96b4a12e0804fe04c48c47ffe92ab

2 years agoApply latest ReadTheDoc config rules 42/135042/1
ToineSiebelink [Wed, 21 Jun 2023 09:54:51 +0000 (10:54 +0100)]
Apply latest ReadTheDoc config rules

Issue-ID: CPS-1757
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I3af4d9224e5908021f323285bc3c0dca6e6f0ac2

2 years agoDMI-Plugin : Replacing the word 'Batch' as 'DataOperation'. 78/134978/2
raviteja.karumuri [Mon, 19 Jun 2023 15:43:32 +0000 (16:43 +0100)]
DMI-Plugin : Replacing the word 'Batch' as 'DataOperation'.

Issue-ID: CPS-1754
Signed-off-by: raviteja.karumuri <raviteja.karumuri@est.tech>
Change-Id: I8a1d6e329bb79d3762da17e9740854048b2aeace

2 years agoDMI-Plugin : Update batch endpoint (move url param into rest body) 92/134692/7
raviteja.karumuri [Wed, 24 May 2023 17:23:38 +0000 (18:23 +0100)]
DMI-Plugin : Update batch endpoint (move url param into rest body)

Issue-ID: CPS-1636
Signed-off-by: raviteja.karumuri <raviteja.karumuri@est.tech>
Change-Id: I787be1be899a69c0972ccfd17016e67eaf8a771a

2 years agoRearrange method params 69/134269/1
mpriyank [Fri, 21 Apr 2023 11:06:11 +0000 (12:06 +0100)]
Rearrange method params

- auto generated code results in parameter sequence mismatch.

Issue-ID: CPS-1627
Change-Id: I5b9ca44867bff42bfc5ca35a41560d9ef86b069a
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years agoMerge "Align dependencies with CPS/NCMP"
Luke Gleeson [Thu, 20 Apr 2023 12:34:01 +0000 (12:34 +0000)]
Merge "Align dependencies with CPS/NCMP"

2 years agoAlign dependencies with CPS/NCMP 40/134240/5
ToineSiebelink [Wed, 19 Apr 2023 15:52:14 +0000 (16:52 +0100)]
Align dependencies with CPS/NCMP

- 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

2 years agoMerge "Define an interface to accept collection of cm handles for Get operation."
Toine Siebelink [Thu, 20 Apr 2023 08:48:32 +0000 (08:48 +0000)]
Merge "Define an interface to accept collection of cm handles for Get operation."

2 years agoDefine an interface to accept collection of cm handles for Get operation. 14/134014/7
leventecsanyi [Wed, 5 Apr 2023 09:42:30 +0000 (11:42 +0200)]
Define an interface to accept collection of cm handles for Get operation.

 - Added REST endpoint (Not Implemented yet)
 - Created unit test

Issue-ID: CPS-1555
Change-Id: I24ce8d663602c08cc207f4657289631439d3fb9e
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2 years ago[CPS] Bump minor version - Step12 42/134042/2
mpriyank [Fri, 7 Apr 2023 09:20:37 +0000 (10:20 +0100)]
[CPS] Bump minor version - Step12

- bump minor version of ncmp-dmi-plugin from 1.3.0-SNAPSHOT to
  1.4.0-SNAPSHOT in the master branch

Issue-ID: CPS-1610
Change-Id: I9238d58841b3c5f0133087fa4df5ff717284f197
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years agoRemove docs/conf.yaml 20/134020/1
danielhanrahan [Wed, 5 Apr 2023 11:46:11 +0000 (12:46 +0100)]
Remove docs/conf.yaml

Change to ONAP pipeline is causing docs-rules job to fail if
docs/conf.yaml file exists. So we remove it.

Issue-ID: CPS-1596
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I71528d918b40e24be9c4a893b007b0771890885b

2 years agoFix error 500 while pulling test container cp-kafka 19/133919/1
halil.cakal [Wed, 29 Mar 2023 17:40:46 +0000 (18:40 +0100)]
Fix error 500 while pulling test container cp-kafka

Issue-ID: CPS-1492
Change-Id: I76be5264b111be36f9d2d1f0af13606244189e7c
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 years agoSubscription Create Response Handling Dmi Part 43/133643/19
halil.cakal [Tue, 14 Mar 2023 11:24:26 +0000 (11:24 +0000)]
Subscription Create Response Handling Dmi Part

- 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>
2 years agoFix Avc event creator 89/133789/1
mpriyank [Thu, 23 Mar 2023 14:17:00 +0000 (14:17 +0000)]
Fix Avc event creator

- 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>
2 years agoAdd sphinxcontirb.spelling extension into conf.py 96/133696/1
halil.cakal [Mon, 20 Mar 2023 10:33:08 +0000 (10:33 +0000)]
Add sphinxcontirb.spelling extension into conf.py

- It also align dmi module with cps for tox.ini config

Issue-ID: DOC-798
Change-Id: Ie241f5490243de43fa2889ef88a6dca93702f7a9
Signed-off-by: halil.cakal <halil.cakal@est.tech>
2 years agoMerge existing dmi-plugin of data access passthrough endpoints 29/133629/2
sourabh_sourabh [Mon, 13 Mar 2023 15:49:35 +0000 (15:49 +0000)]
Merge existing dmi-plugin of data access passthrough endpoints

- 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>
2 years agoNCMP-DMI: Modify CSIT script to have absolute root path env 17/133117/3
emaclee [Thu, 2 Feb 2023 11:03:31 +0000 (11:03 +0000)]
NCMP-DMI: Modify CSIT script to have absolute root path env

        - change set up to call docker compose for cps-ncmp
        - add root as a property in 'test.properties'
        - root is specified to be root directory folder for the current
          project

Issue-ID: CPS-1472
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: I7648285ab55dd48a934535014953d6f887594742

2 years agoMerge "[DMI] Publish Message hidden REST endpoint trigger"
Toine Siebelink [Wed, 1 Feb 2023 14:17:23 +0000 (14:17 +0000)]
Merge "[DMI] Publish Message hidden REST endpoint trigger"

2 years ago[DMI] Publish Message hidden REST endpoint trigger 83/132683/11
sourabh_sourabh [Wed, 1 Feb 2023 12:56:44 +0000 (12:56 +0000)]
[DMI] Publish Message hidden REST endpoint trigger

-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>
2 years agoUpdate INFO.yaml Committers 96/132996/1
lukegleeson [Tue, 24 Jan 2023 12:23:55 +0000 (12:23 +0000)]
Update INFO.yaml Committers

Issue-ID: CPS-1462
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: Ifd3dccdbd3959bdcba56ba1ec789218f45811b73

2 years agoHack to get CSIT test working 91/132091/3
sourabh_sourabh [Wed, 9 Nov 2022 10:46:33 +0000 (10:46 +0000)]
Hack to get CSIT test working

Reviewers : Toine, Priyank and Luke

Issue-ID: CPS-1353
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: Ia9c5a907562793940d663e82033fa0eb2f1049a1
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2 years ago[DMI] Add Basic Auth to OpenAPI Definitions 25/131825/5
JosephKeenan [Wed, 26 Oct 2022 14:17:59 +0000 (15:17 +0100)]
[DMI] Add Basic Auth to OpenAPI Definitions

-Adding basic auth to OpenAPI definitions

Issue-ID: CPS-1350
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
Change-Id: I33423ba50683bc76395ddbb8ef7afc1c185bf4b5

2 years agoUpdating CSIT (docker compose) DMI Snapshot version 80/131880/3
ToineSiebelink [Thu, 27 Oct 2022 10:06:53 +0000 (11:06 +0100)]
Updating CSIT (docker compose) DMI Snapshot version

- use 'latest' for DMI (ie what is being built)
(DMI-VERSION property is not being used for CSIT)

Issue-ID: CPS-1353
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I8a5c0776587513d3cd0e1be8edc6db0980925273

2 years agoFinialise documentation as per doc procedure p02 14/131814/2
seanbeirne [Tue, 25 Oct 2022 16:36:55 +0000 (17:36 +0100)]
Finialise documentation as per doc procedure p02

Issue-ID: CPS-1321
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: Ibe269a391ac1c519693729b5e505342544913dd1

2 years agoBump minor version of DMI 02/131502/1
mpriyank [Mon, 17 Oct 2022 13:30:28 +0000 (14:30 +0100)]
Bump minor version of DMI

- Bumped minor version of DMI from 1.2.2-SNAPSHOT to 1.3.0-SNAPSHOT.
- Step 11 of the release process.

Issue-ID: CPS-1318
Change-Id: I8652e438135c20f4a1b5fdb17cd5eac594c03249
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years agoBump DMI to 1.2.2-SNAPSHOT 84/131384/1
mpriyank [Wed, 5 Oct 2022 11:26:20 +0000 (12:26 +0100)]
Bump DMI to 1.2.2-SNAPSHOT

- Bump DMI version to 1.2.2-SNAPSHOT

Issue-ID: CPS-1325
Change-Id: I12fd5918f196e1f2416e0dd05aaabcda9627689c
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years agoAdd container YAML for DMI 82/131382/1
mpriyank [Wed, 5 Oct 2022 10:54:20 +0000 (11:54 +0100)]
Add container YAML for DMI

- Step 6 of the release process to add the container yaml file and
  release 1.2.1 of ncmp-dmi-plugin docker image

Issue-ID: CPS-1296
Change-Id: I19171d408dac580cc4129bc4efbec0a52042fedc
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years agoAdd maven stage yaml for 1.2.1 DMI 81/131381/1
mpriyank [Wed, 5 Oct 2022 10:24:04 +0000 (11:24 +0100)]
Add maven stage yaml for 1.2.1 DMI

- Step 5 of the release process to add 1.2.1 stage yaml for maven
  artifacts.

Issue-ID: CPS-1296
Change-Id: I41c6457579b83d8c7b45164a122b35bd4bfbdd97
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years agoUpdate cps version in DMI plugin 80/131380/1
mpriyank [Wed, 5 Oct 2022 09:46:06 +0000 (10:46 +0100)]
Update cps version in DMI plugin

- updated cps version to 3.1.4

Issue-ID: CPS-1305
Change-Id: I60f1d370f790ac299ab4c663c0138ba1a191ff28
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years ago1.2.1 release notes section DMI 88/131188/1
mpriyank [Mon, 26 Sep 2022 14:03:49 +0000 (15:03 +0100)]
1.2.1 release notes section DMI

- release notes section for 1.2.1 dmi plugin

Issue-ID: CPS-1302
Change-Id: Ib662896a297409dd3e2ed7b5c35f70f781da8771
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years agoPrep for next DMI release 48/131148/2
mpriyank [Fri, 23 Sep 2022 11:59:38 +0000 (12:59 +0100)]
Prep for next DMI release

- Bump the DMI version from 1.2.0-SNAPSHOT to 1.2.1-SNAPSHOT

Issue-ID: CPS-1296
Change-Id: I06890a87f786c5a7e4ca2b2d9611dee0b766d386
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years agoUpdate Release Notes for Kohn 51/131051/3
lukegleeson [Wed, 21 Sep 2022 13:56:09 +0000 (14:56 +0100)]
Update Release Notes for Kohn

Added Jira tickets completed

Issue-ID: CPS-1251
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: I27ab8420ff4268ddd080a44af70eaeb7cbdd05b5

2 years agoAdd 1.2.0 release container yaml 41/131041/1
mpriyank [Wed, 21 Sep 2022 08:59:31 +0000 (09:59 +0100)]
Add 1.2.0 release container yaml

- Step 5 of the release process to release the docker image

Issue-ID: CPS-1283
Change-Id: Iaba2d85a4be6ea456cdb43e857bc3c8639122090
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years agoAdd 1.2.0 stage release yaml 32/131032/1
mpriyank [Tue, 20 Sep 2022 16:42:36 +0000 (17:42 +0100)]
Add 1.2.0 stage release yaml

- Step 5 of the release process to release the maven artifacts

Issue-ID: CPS-1283
Change-Id: Idd76833a1b176a54ae3a98aa2e516cc856f14c74
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years agoRemoving snapshot version of cps-ncmp-events 27/131027/1
mpriyank [Tue, 20 Sep 2022 15:49:10 +0000 (16:49 +0100)]
Removing snapshot version of cps-ncmp-events

Issue-ID: CPS-1224
Change-Id: I4ed85503dc8f806ad65c9c4746915f62c61663b6
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years agoAsync event from dmi plugin 48/130948/2
mpriyank [Wed, 14 Sep 2022 16:29:50 +0000 (17:29 +0100)]
Async event from dmi plugin

- 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>
2 years agoUpdate INFO.yaml 37/130937/4
lukegleeson [Wed, 14 Sep 2022 14:33:27 +0000 (15:33 +0100)]
Update INFO.yaml

Removed Renu as committer

Issue-ID: CPS-1252
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: I21451b834b1ed46bed8a28ac6a6b0b6038608ab4

2 years agodmi plugin sync openapi yml 29/130929/4
mpriyank [Wed, 14 Sep 2022 09:47:45 +0000 (10:47 +0100)]
dmi plugin sync openapi yml

- copy target/generated-sources/swagger/openapi.yaml â†’ docs/api/swagger/openapi.yaml
- fixed the tox.ini for the documentation build issue
- updated description for topic paramter

Issue-ID: CPS-1276
Change-Id: I0771fd6b7a8fda5085a535e02cd40fa49e6b8b6f
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2 years agoUpdate info.yml for new Committer 29/130329/3
sourabh_sourabh [Wed, 17 Aug 2022 15:56:18 +0000 (16:56 +0100)]
Update info.yml for new Committer

- Updating INFO.yaml to include new committer for CPS (Sourabh)

Issue-ID: CPS-1213
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I5492e75a4219788426d62400c72debcd4fb722a9

2 years agoChore: Fix typo in INFO.yaml 19/130219/1
Bengt Thuree [Wed, 10 Aug 2022 04:45:12 +0000 (14:45 +1000)]
Chore: Fix typo in INFO.yaml

Remove duplicate of PTL, and fix his userid.

Issue-ID: CIMAN-33
Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
Change-Id: I859b2e89e18729e844d42a1712338fe164a9fd36

2 years agoGroovy clean tests clean-up 54/129954/10
emaclee [Fri, 15 Jul 2022 11:31:46 +0000 (12:31 +0100)]
Groovy clean tests clean-up

- 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

3 years agoUpdate dependencies (release task) 93/129893/9
ToineSiebelink [Wed, 13 Jul 2022 11:57:16 +0000 (12:57 +0100)]
Update dependencies (release task)

- Changed HTTP Client version to 4.5.13
- Use system Docker-Compose instead of downloading it
- Removed ALL Docker Compose File versions

Issue-ID: CPS-1106
Change-Id: I0734099caad79acd52aecdb2faf98cceb0943224
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
3 years agoUpdate ncmp-dmi-plugin info.yaml 24/129824/1
JosephKeenan [Thu, 7 Jul 2022 14:36:56 +0000 (15:36 +0100)]
Update ncmp-dmi-plugin info.yaml

Issue-ID: CPS-1134
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
Change-Id: Ia9b3484f814c1bb9b99431231be3529087456334

3 years agoFix sonar code smells 20/129520/2
emaclee [Wed, 8 Jun 2022 10:41:59 +0000 (11:41 +0100)]
Fix sonar code smells

- 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

3 years agoAsync request response dmi -> NCMP 86/128686/31
JosephKeenan [Mon, 23 May 2022 14:43:05 +0000 (15:43 +0100)]
Async request response dmi -> NCMP

-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>
3 years agoSecurity Logging Fields 61/129061/6
sourabh_sourabh [Wed, 4 May 2022 10:38:52 +0000 (11:38 +0100)]
Security Logging Fields

- 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

3 years agoTest scenarios for async infra code 22/128722/4
mpriyank [Tue, 19 Apr 2022 12:44:45 +0000 (13:44 +0100)]
Test scenarios for async infra code

Issue-ID: CPS-987
Change-Id: Ie4c40b91e45ad325658a32eb474840af761e0029
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
3 years agoMerge "Add bounds to sphinx requirement"
Toine Siebelink [Tue, 12 Apr 2022 10:47:28 +0000 (10:47 +0000)]
Merge "Add bounds to sphinx requirement"

3 years agoMerge "NCMP Kafka Producer Infrastructure"
Toine Siebelink [Tue, 12 Apr 2022 10:41:40 +0000 (10:41 +0000)]
Merge "NCMP Kafka Producer Infrastructure"

3 years agoAdd bounds to sphinx requirement 66/128466/1
Cédric Ollivier [Mon, 11 Apr 2022 15:36:54 +0000 (17:36 +0200)]
Add bounds to sphinx requirement

As ONAP was created before Oct 20 2020 in RTD, we
must set bounds to enforce a compatible Sphinx version
(see manual).

Issue-ID: DOC-782

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I858cdbfbaf2fab82216cc392ddcff694ee83e2e6

3 years agoNCMP Kafka Producer Infrastructure 91/128391/4
mpriyank [Fri, 8 Apr 2022 09:42:22 +0000 (15:12 +0530)]
NCMP Kafka Producer Infrastructure

- 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>
3 years agoMerge "Fix SonarQube violations"
Joseph Keenan [Fri, 8 Apr 2022 09:42:24 +0000 (09:42 +0000)]
Merge "Fix SonarQube violations"

3 years agoFix SonarQube violations 90/128390/1
ToineSiebelink [Fri, 8 Apr 2022 09:12:05 +0000 (10:12 +0100)]
Fix SonarQube violations

- Use EnumMap
- Remove use of var

Issue-ID: CPS-475
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Iebc3d8a8a87d0477c38967126988a6825b7e80a9

3 years agoUpdate info.yml for new Committer 68/128368/1
JosephKeenan [Thu, 7 Apr 2022 15:04:57 +0000 (16:04 +0100)]
Update info.yml for new Committer

-Updating INFO.yaml to include new committer for CPS (JosephKeenan)

Issue-ID: CPS-985
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
Change-Id: I3e8afeebca737ec9e323927add288d04c046e591

3 years agoImprove branch coverage 22/128322/3
ToineSiebelink [Tue, 5 Apr 2022 12:54:32 +0000 (13:54 +0100)]
Improve branch coverage

- 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

3 years ago[dmi-plugin] Fix getResourceDataForPassthroughOperational endpoint 23/128223/6
puthuparambil.aditya [Tue, 29 Mar 2022 10:22:31 +0000 (11:22 +0100)]
[dmi-plugin] Fix getResourceDataForPassthroughOperational endpoint

Get endpoint only accepts application/json.

Issue-ID: CPS-957
Change-Id: I7b9dd00f293f183dc76623c8e32699e8e90fd17c
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
3 years agoMerge "CSIT: DMI to NCMP"
Bruno Sakoto [Wed, 30 Mar 2022 14:12:44 +0000 (14:12 +0000)]
Merge "CSIT: DMI to NCMP"

3 years agoCSIT: DMI to NCMP 97/128097/3
mpriyank [Fri, 25 Mar 2022 10:11:59 +0000 (15:41 +0530)]
CSIT: DMI to NCMP

- CSIT to register cm handle which tests the integration between DMI and
  NCMP
- CSIT to get module refs which tests the integration between DMI and
  SDNC

Issue-ID: CPS-922
Change-Id: I9c89f168cb3cc98ad27cd0022adbf81452717a76
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
3 years agoIncrease (branch) coverage 38/128138/1
ToineSiebelink [Mon, 28 Mar 2022 16:19:57 +0000 (17:19 +0100)]
Increase (branch) coverage

Issue-ID: CPS-475
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Idc2752dae882dd994892d91b7038ae8ef81e532e

3 years agoMerge "Update SpringBoot when approved version has Log4J 2.17.1 or higher"
Toine Siebelink [Fri, 25 Mar 2022 15:48:04 +0000 (15:48 +0000)]
Merge "Update SpringBoot when approved version has Log4J 2.17.1 or higher"

3 years agoUpdate SpringBoot when approved version has Log4J 2.17.1 or higher 12/128012/6
JosephKeenan [Wed, 23 Mar 2022 15:12:53 +0000 (15:12 +0000)]
Update SpringBoot when approved version has Log4J 2.17.1 or higher

-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>
3 years agoUpdate versions for next release in DMI 96/127996/1
mpriyank [Wed, 23 Mar 2022 11:44:33 +0000 (17:14 +0530)]
Update versions for next release in DMI

- Updated minor version number (on master) for next release as part of
  creating Jakarta release branch
- Updated default DMI version to point to latest docker image

Issue-ID: CPS-956
Change-Id: I3e1d92fb5719ceaf06dd9afc5fa13859d6437f6b
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
3 years agoException scenario handling 92/127992/1
mpriyank [Wed, 23 Mar 2022 09:50:10 +0000 (15:20 +0530)]
Exception scenario handling

- 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>
3 years agoDMI version update 61/127961/2
mpriyank [Tue, 22 Mar 2022 12:29:48 +0000 (17:59 +0530)]
DMI version update

- Updated default dmi version to 1.1.1-SNAPSHOT-latest

Issue-ID: CPS-933
Change-Id: I0381adb78a1993044123008ac6c85ddc4a9a49d9
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
3 years agoUpgrade to next snapshot version 78/127878/2
Bruno Sakoto [Thu, 17 Mar 2022 20:54:25 +0000 (16:54 -0400)]
Upgrade to next snapshot version

Issue-ID: CPS-933
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I4d9a670b7bbc9cafe32a39ab6d7891e26fc77982

3 years agoRelease container artifact for version 1.1.0 77/127877/1
Bruno Sakoto [Thu, 17 Mar 2022 17:54:20 +0000 (13:54 -0400)]
Release container artifact for version 1.1.0

Issue-ID: CPS-933
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: Ie4a0d17715f74e87b12a5b17125473cb3dc8e1c4

3 years agoRelease maven artifacts for version 1.1.0 75/127875/1
Bruno Sakoto [Thu, 17 Mar 2022 17:48:27 +0000 (13:48 -0400)]
Release maven artifacts for version 1.1.0

Issue-ID: CPS-933
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I2f00d5948e80344c38b31b42b5e45c7d7a846410

3 years agoUpdate cps core version to 3.0.0 58/127858/2
Bruno Sakoto [Thu, 17 Mar 2022 03:20:05 +0000 (23:20 -0400)]
Update cps core version to 3.0.0

Issue-ID: CPS-933
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I0e6fb59396681e38f78f96d49be58c1a426486cc

3 years agoCSIT setup in NCMP-DMI-PLUGIN Repo 87/127687/14
mpriyank [Fri, 11 Mar 2022 11:52:24 +0000 (17:22 +0530)]
CSIT setup in NCMP-DMI-PLUGIN Repo

- Infrastructure code for ncmp-dmi CSITs.
- Enhanced timeout message for sdnc during setup.
- Basic CSITs for dmi health and get modules from SDNC.
- Fixed shell script permissions from 100644 to 100755.
- Fixing .gitignore as it was ignoring *.zip format and we need key0.zip
  as part of SDNC CSIT setup.

Issue-ID: CPS-930
Change-Id: I39054e3ec2c9281821ca146831ae6cc82d674924
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
3 years agoCreate primary documentation for Jakarta release 14/127814/1
Bruno Sakoto [Tue, 15 Mar 2022 15:57:45 +0000 (11:57 -0400)]
Create primary documentation for Jakarta release

* Update release notes
* Update openapi documentation

Issue-ID: CPS-935
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: If63ee52efa505694010c88f3135a71312185b4dc

3 years agoRefactor dmi plugin code and fix comments 66/127466/16
sourabh_sourabh [Thu, 3 Mar 2022 09:20:45 +0000 (14:50 +0530)]
Refactor dmi plugin code and fix comments

- 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

3 years agoUpdate dependencies as recommnede by SECCOM 41/127441/1
ToineSiebelink [Wed, 2 Mar 2022 12:26:02 +0000 (12:26 +0000)]
Update dependencies as recommnede by SECCOM

See also https://wiki.onap.org/display/SV/Jakarta+CPS

Issue-ID: CPS-815
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I194ab1bf1f3886074ef503b9a61a25abdca6409f

3 years agoUpdate release notes 89/127089/1
Bruno Sakoto [Fri, 11 Feb 2022 20:05:35 +0000 (15:05 -0500)]
Update release notes

Adding Istanbul releases:
* 1.0.2
* 1.0.3

Issue-ID: CPS-891
Change-Id: Ica396a0978f1c618471ac35d85c0ba7c90d5406c
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
3 years agoMerge "Align DMI Plugin REST API Specification and Implementation"
Toine Siebelink [Mon, 24 Jan 2022 14:57:28 +0000 (14:57 +0000)]
Merge "Align DMI Plugin REST API Specification and Implementation"

3 years agoAlign DMI Plugin REST API Specification and Implementation 69/126669/2
puthuparambil.aditya [Thu, 20 Jan 2022 15:26:52 +0000 (15:26 +0000)]
Align DMI Plugin REST API Specification and Implementation

Issue-ID: CPS-824
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: If4478f6afd6a36570dc2d800484cffdb40c256c9

3 years agoimpl patch operation in dmi 28/126528/5
tragait [Mon, 10 Jan 2022 12:16:25 +0000 (12:16 +0000)]
impl patch operation in dmi

Change-Id: Ie87216fa6cb120bea685286b7f0dacd8e22f603b
Signed-off-by: tragait <rahul.tyagi@est.tech>
Issue-ID: CPS-641

3 years agoRemove Niamh as committer 07/126507/1
ToineSiebelink [Fri, 7 Jan 2022 12:45:48 +0000 (12:45 +0000)]
Remove Niamh as committer

Issue-ID: CPS-846

Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I8c22280169c74cdc03c8822eccdc7b76d5209c35

3 years agodmi-plugin update release notes 79/126479/2
puthuparambil.aditya [Wed, 5 Jan 2022 13:41:29 +0000 (13:41 +0000)]
dmi-plugin update release notes

Issue-ID: CPS-841
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: I203ecb51fb90d9efa2d2a56ecfbebb199aa0ea53

3 years agodmi-plugin upgrade log4j to 2.17.1 60/126460/1
puthuparambil.aditya [Wed, 5 Jan 2022 10:58:29 +0000 (10:58 +0000)]
dmi-plugin upgrade log4j to 2.17.1

Issue-ID: CPS-841
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: I770ad18e1466471bb6bfdfa3e11812ce2eff1f0d

3 years agoFix Sonar Qube Violations - Recurring task 48/126348/3
sourabh_sourabh [Mon, 20 Dec 2021 10:10:55 +0000 (15:40 +0530)]
Fix Sonar Qube Violations - Recurring task

Issue-ID: CPS-475
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I4279d5ca24b6cd78f419288eba10f557965c5e7b

3 years agoUpdate log4j version due to security vulnerability for NCMP-DMI 54/126254/3
niamhcore [Wed, 15 Dec 2021 11:23:56 +0000 (11:23 +0000)]
Update log4j version due to security vulnerability for NCMP-DMI

This change excludes old log4j libraries and includes newer versions
that are not tagged with a security vulnerability.

Issue-ID: CPS-820
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I2694cdc66449a9634dfe726b39736a8b0ba67e5a

3 years agoAdd Examples to DMI-Plugin API Spec 86/125986/7
lukegleeson [Tue, 30 Nov 2021 17:06:03 +0000 (17:06 +0000)]
Add Examples to DMI-Plugin API Spec

Issue-ID: CPS-784
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: I02e450c9c14322fa9c9ac3e14807aeebdb4b9e39

3 years agoAdd new features to Release Notes 44/126144/1
DylanB95EST [Wed, 8 Dec 2021 10:05:12 +0000 (10:05 +0000)]
Add new features to Release Notes

Add New Implemented Features to Release Notes for DMI Plugin

Issue-ID: CPS-637
Issue-ID: CPS-639
Change-Id: I20a27aa9428ea69fc605f866cadf1b6297e9b9ad
Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
3 years agoMerge "Fix conversion to string for result from YangResource request on SDN-C"
aditya puthuparambil [Fri, 3 Dec 2021 13:16:44 +0000 (13:16 +0000)]
Merge "Fix conversion to string for result from YangResource request on SDN-C"

3 years agoFix conversion to string for result from YangResource request on SDN-C 22/126022/3
ToineSiebelink [Thu, 2 Dec 2021 13:53:24 +0000 (13:53 +0000)]
Fix conversion to string for result from YangResource request on SDN-C

-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

3 years agoMerge "Update snapshot version in rtd release notes"
aditya puthuparambil [Thu, 2 Dec 2021 11:03:16 +0000 (11:03 +0000)]
Merge "Update snapshot version in rtd release notes"

3 years agoUpdating docker compose to pull new tagged image 04/126004/1
JosephKeenan [Wed, 1 Dec 2021 14:33:44 +0000 (14:33 +0000)]
Updating docker compose to pull new tagged image

Issue-ID: CPS-795
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
Change-Id: Iea4c4cd7eabaa43dc8f4026bea888dce114f954d

3 years agoModifying docker tag to add project version so we can specify exact DMI version in... 97/125997/1
JosephKeenan [Wed, 1 Dec 2021 09:46:58 +0000 (09:46 +0000)]
Modifying docker tag to add project version so we can specify exact DMI version in builds & CSIT

Issue-ID: CPS-795
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
Change-Id: Iadd4ac79f5873a2e6e6acba40a1642f1ba87c4e2

3 years agoUpdate snapshot version in rtd release notes 85/125985/1
Bruno Sakoto [Tue, 30 Nov 2021 17:18:01 +0000 (12:18 -0500)]
Update snapshot version in rtd release notes

Issue-ID: CPS-794
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I3b43759e1d43d541735be15d1c938584f0e8d426

3 years agoGenerating openapi documentation from openapi.yaml 49/125849/1
puthuparambil.aditya [Tue, 23 Nov 2021 14:53:43 +0000 (14:53 +0000)]
Generating openapi documentation from openapi.yaml

Issue-ID: CPS-755
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: Ib19afce259639d0154e6dbeb825c5da0e3dbfa3a

3 years agoMerge "Update release notes for DMI"
Toine Siebelink [Fri, 19 Nov 2021 09:38:49 +0000 (09:38 +0000)]
Merge "Update release notes for DMI"

3 years agoUpdate release notes for DMI 79/125779/2
niamhcore [Wed, 17 Nov 2021 11:23:36 +0000 (11:23 +0000)]
Update release notes for DMI

Issue-ID: CPS-636
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I448430c53b2d8cf7c8a99a9c012964a2230d44b6

3 years agoMerge "Support Update and Delete operations for DS Passtrough-Running in DMI Plugin"
Toine Siebelink [Fri, 12 Nov 2021 15:38:55 +0000 (15:38 +0000)]
Merge "Support Update and Delete operations for DS Passtrough-Running in DMI Plugin"

3 years agoSupport Update and Delete operations for DS Passtrough-Running in DMI Plugin 64/125664/10
DylanB95EST [Tue, 9 Nov 2021 13:54:35 +0000 (13:54 +0000)]
Support Update and Delete operations for DS Passtrough-Running in DMI Plugin

-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>
3 years agoImprove internal documentation links 63/125663/1
lukegleeson [Mon, 8 Nov 2021 21:29:40 +0000 (21:29 +0000)]
Improve internal documentation links

Issue-ID: CPS-749
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: I0aacfe86234fb56a0edf8b28f1f255d9052048ed