cps.git
10 months agoFix intermittent test failure of Delta between anchors 77/138777/1
danielhanrahan [Fri, 16 Aug 2024 13:15:23 +0000 (14:15 +0100)]
Fix intermittent test failure of Delta between anchors

Test fails sometimes due to non-deterministic order of results.
The issue is fixed by sorting the delta reports.

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

10 months agoGet data job result from DMI 82/138582/13
leventecsanyi [Fri, 26 Jul 2024 09:24:13 +0000 (11:24 +0200)]
Get data job result from DMI

- added DataJobResult interface
- extended the DmiRestClient to retrieve status
- added mock response to DmiDispatcher

Issue-ID: CPS-2296
Change-Id: I551afd827cccd91c5f9837bd4923b30320865d55
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
10 months agoMerge "Rearrange CSIT test order"
Sourabh Sourabh [Fri, 16 Aug 2024 10:59:38 +0000 (10:59 +0000)]
Merge "Rearrange CSIT test order"

10 months agoMerge "Upgrading robotframework confluentkafka lib"
Sourabh Sourabh [Fri, 16 Aug 2024 10:54:21 +0000 (10:54 +0000)]
Merge "Upgrading robotframework confluentkafka lib"

10 months agoMerge "Refactored Data Job interfaces"
Priyank Maheshwari [Fri, 16 Aug 2024 10:09:09 +0000 (10:09 +0000)]
Merge "Refactored Data Job interfaces"

10 months agoRearrange CSIT test order 48/138748/7
mpriyank [Wed, 14 Aug 2024 14:02:45 +0000 (15:02 +0100)]
Rearrange CSIT test order

- Waiting for Cmhandle to be ready before fetching the modules in the CSIT.
- Added condition to check size of the json array if it atleast has one
  item

Issue-ID: CPS-2313
Change-Id: Ib4f08069780c55a758ba976db5b96239c83ac990
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
10 months agoIntegration test of registration with alternate ID 61/138761/1
danielhanrahan [Thu, 15 Aug 2024 12:42:54 +0000 (13:42 +0100)]
Integration test of registration with alternate ID

Add functional test of registering a batch of CM-handles with
a mixture of existing, duplicate, new and blank alternate IDs.

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

10 months agoFix syntax error on k6 test 58/138758/1
danielhanrahan [Thu, 15 Aug 2024 11:42:21 +0000 (12:42 +0100)]
Fix syntax error on k6 test

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

10 months agoUpgrading robotframework confluentkafka lib 10/138710/4
mpriyank [Tue, 13 Aug 2024 08:39:45 +0000 (09:39 +0100)]
Upgrading robotframework confluentkafka lib

- upgrading confluentkafka library for robotframework to 2.4.0-2
- reverted the change for the CSIT as the fix was done in the
  dmi-plugin-stub

Issue-ID: CPS-2363
Change-Id: I3f7cd622177485435566ef814ffb38d4a93ed0ad
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
10 months agoAdd moduleSetTag on k6 test 45/138745/2
emaclee [Wed, 14 Aug 2024 13:25:33 +0000 (14:25 +0100)]
Add moduleSetTag on k6 test

Issue-ID: CPS-2357
Change-Id: I21b980b1e36988d3b5daf07e4f6a14fe4309cd20
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
10 months agoMerge "K6 performance test for Alternate Id Read"
Sourabh Sourabh [Wed, 14 Aug 2024 13:18:25 +0000 (13:18 +0000)]
Merge "K6 performance test for Alternate Id Read"

10 months agoMerge "Support alternate Id interface for CPS-E-05 #2"
Lee Anjella Macabuhay [Wed, 14 Aug 2024 13:01:18 +0000 (13:01 +0000)]
Merge "Support alternate Id interface for CPS-E-05 #2"

10 months agoMerge "CPS-NCMP: Slow cmHandle registration when we use moduleSetTag, alternateId...
Lee Anjella Macabuhay [Wed, 14 Aug 2024 12:38:59 +0000 (12:38 +0000)]
Merge "CPS-NCMP: Slow cmHandle registration when we use moduleSetTag, alternateId and dataProducerIdentifier"

10 months agonew onap logo 24/138724/1
thmsdt [Wed, 14 Aug 2024 08:13:07 +0000 (10:13 +0200)]
new onap logo

Issue-ID: DOC-826

Change-Id: I7da5ba787243fb50a0f332e24825ae4967b5432c
Signed-off-by: thmsdt <thomas.kulik@telekom.de>
10 months agoCPS-NCMP: Slow cmHandle registration when we use moduleSetTag, alternateId and dataPr... 00/138700/8
sourabh_sourabh [Mon, 12 Aug 2024 09:38:39 +0000 (10:38 +0100)]
CPS-NCMP: Slow cmHandle registration when we use moduleSetTag, alternateId and dataProducerIdentifier

- Created a new repo. service for fragment table that executes a native
  sql query to find first ready cm handle id based on moduleset tag and
  then returns list of module references.
- Exposed a new interface into module service that is used by
  module sync service to get list of midule refs by module set tag.

Issue-ID: CPS-2353
Change-Id: I438dbd1ed37c1ff4e15f792e93a095aa604120bc
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
10 months agoRefactored Data Job interfaces 03/138703/2
leventecsanyi [Thu, 8 Aug 2024 14:21:07 +0000 (16:21 +0200)]
Refactored Data Job interfaces

-modified writejob & status endpoints

Issue-ID: CPS-2360
Change-Id: I87647f59493886593825f5175c6ed708e55b3e30
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
10 months agoK6 performance test for Alternate Id Read 60/138560/7
seanbeirne [Fri, 19 Jul 2024 15:55:06 +0000 (16:55 +0100)]
K6 performance test for Alternate Id Read

Issue-Id: CPS-2279
Change-Id: Iade53a85afb183c0df259c5e7fc12fa0f6986218
Signed-off-by: seanbeirne <sean.beirne@est.tech>
10 months agoSupport alternate Id interface for CPS-E-05 #2 97/138497/16
seanbeirne [Wed, 17 Jul 2024 10:35:22 +0000 (11:35 +0100)]
Support alternate Id interface for CPS-E-05 #2

- Supports Alternate Ids for getResourceDataForCmHandle

Issue-Id: CPS-2279
Change-Id: I1f145308cec5b545fab2d5c96efbc00fc3a110f4
Signed-off-by: seanbeirne <sean.beirne@est.tech>
10 months agoFix CSIT build failure 96/138696/4
mpriyank [Fri, 9 Aug 2024 11:57:18 +0000 (12:57 +0100)]
Fix CSIT build failure

- Doubling the CmHandle wait time to check for READY state
- commenting the data operations header condition to check for source and to be investigated separately

Issue-ID: CPS-2363
Change-Id: I1de8c61569444df7450af1142d8589e90d309340
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
10 months agoMerge "Refactoring of CPS Delta APIs"
Priyank Maheshwari [Thu, 8 Aug 2024 09:34:17 +0000 (09:34 +0000)]
Merge "Refactoring of CPS Delta APIs"

10 months agoMerge "Cm Subscriptions Docs"
Sourabh Sourabh [Wed, 7 Aug 2024 14:34:47 +0000 (14:34 +0000)]
Merge "Cm Subscriptions Docs"

10 months agoRefactoring of CPS Delta APIs 66/138266/6
Arpit Singh [Tue, 9 Jul 2024 11:44:02 +0000 (17:14 +0530)]
Refactoring of CPS Delta APIs

Refactoring of CPS delta APIs from two separate endpoints to a single endpoint.
  - GET: /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/deltaAnchors
  - POST: /v2/dataspaces/{dataspace-name}/anchors/{anchor-name}/deltaByPayload
To new endpoint can perform two operatios as follows:
  - GET: /v2/dataspaces/{dataspace-name}/anchors/{source-anchor-name}/delta
  - POST: /v2/dataspaces/{dataspace-name}/anchors/{source-anchor-name}/delta

Note: this patch only addresses the issue around refactoring of Delta
endpoint to a singular well defined endpoint. A separate patch will
be created to refactor the entire Delta feature out of CPS Data,
into a separate interface namely CPS Delta

Issue-ID: CPS-2310
Change-Id: Ic62c8308cf368b4378235597a11c476809a150b8
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
10 months agoMerge "Handle null NcmpOut event"
Lee Anjella Macabuhay [Tue, 6 Aug 2024 15:43:02 +0000 (15:43 +0000)]
Merge "Handle null NcmpOut event"

10 months agoHandle null NcmpOut event 23/138623/3
mpriyank [Fri, 2 Aug 2024 14:39:09 +0000 (15:39 +0100)]
Handle null NcmpOut event

- Handling null event in the Cm Subscription delete use case.
- creating taskKey as concat of subscription-id and event type
- added relevant test case to cover the branch

Issue-ID: CPS-2351
Change-Id: I75a6fa9d4cddd24a5e288be065dffc46f6bbe886
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
10 months agoRemove dmi stub from CPS repo 53/138453/4
egernug [Fri, 12 Jul 2024 13:17:54 +0000 (14:17 +0100)]
Remove dmi stub from CPS repo

DMI Stub has been relocated to the DMI Plugin repo. Removing from this repo

Issue-ID: CPS-2145

Change-Id: I957e89231d537985ff1b42cee611a6dac6ef93c4
Signed-off-by: egernug <gerard.nugent@est.tech>
10 months agoCm Subscriptions Docs 62/138562/6
mpriyank [Wed, 24 Jul 2024 13:10:48 +0000 (14:10 +0100)]
Cm Subscriptions Docs

- Included documentation for an overview of Cm Data Subscription for the
  Create and Delete use case.
- Only included the json schemas for the events that are coming in and
  going out of NCMP.
- Not mentioning anything abt the internal events we use between DMIs.
- The docs can later be used to explain abt the notifications when they
  are implemented.

Issue-ID: CPS-2324
Change-Id: I2497656e0e56c93054b7e92b1742a668463c3ffc
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
10 months agoUpdating CM Data Notification Event Schema 07/138607/4
sourabh_sourabh [Wed, 31 Jul 2024 16:19:19 +0000 (17:19 +0100)]
Updating CM Data Notification Event Schema

- Updated "avc-event-schema" value attribute to accept type object.
- Modified cm avc event consumer to not wrap received event into another cloud event using "CloudEventBuilder.from"

Issue-ID: CPS-2299
Change-Id: I3b2acd53a3939d992b337e98debb7f62f3a528dd
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
10 months agoMerge "Handle duplicate targets NcmpOut event"
Lee Anjella Macabuhay [Thu, 1 Aug 2024 18:51:25 +0000 (18:51 +0000)]
Merge "Handle duplicate targets NcmpOut event"

10 months agoUpdate OpenAPI Policy Executor 11/138611/1
ToineSiebelink [Thu, 1 Aug 2024 12:00:58 +0000 (13:00 +0100)]
Update OpenAPI Policy Executor

- remove conflict error response in OpenAPI
(mistakenly added here but only need for NCMP interface)

Issue-ID: CPS-2335
Change-Id: Ib24a4d0853fff2104958879f7d247197725b5870
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
10 months agoMerge "Openapi specs update"
Daniel Hanrahan [Thu, 1 Aug 2024 11:25:58 +0000 (11:25 +0000)]
Merge "Openapi specs update"

10 months agoOpenapi specs update 96/138596/3
mpriyank [Mon, 29 Jul 2024 15:11:53 +0000 (16:11 +0100)]
Openapi specs update

- Correcting the openapi info section for CPS-Core, NCMP and NCMP
  Inventory APIs to reflect the correct released version of the APIs
- Also correcting the specs for dataOperationForCmHandle which now
  handles 200 cmhandle operations instead of 50.

Issue-ID: CPS-2333
Change-Id: I8b0e055a8ee77ed86cee6cbfac3123634f7007ed
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
10 months agoXML content support on add list element 61/138261/13
Rudrangi Anupriya [Fri, 19 Jul 2024 14:50:26 +0000 (20:20 +0530)]
XML content support on add list element

Issue-ID: CPS-2287
Change-Id: Ibb7ffb66ccbb03703266132c6d5c2eade0e7cb4a
Signed-off-by: Rudrangi Anupriya <ra00745022@techmahindra.com>
10 months agoMerge "Fix DMI host/port and clean up Postman collection"
Sourabh Sourabh [Thu, 1 Aug 2024 08:54:49 +0000 (08:54 +0000)]
Merge "Fix DMI host/port and clean up Postman collection"

10 months agoMerge "Refactor OpenAPI Policy Executor"
Sourabh Sourabh [Wed, 31 Jul 2024 16:39:43 +0000 (16:39 +0000)]
Merge "Refactor OpenAPI Policy Executor"

10 months agoRefactor OpenAPI Policy Executor 98/138598/3
ToineSiebelink [Mon, 29 Jul 2024 16:45:52 +0000 (17:45 +0100)]
Refactor OpenAPI Policy Executor

- replace payload with request(s)
- replace payloadType with schema (one schema for each operation)
- include conflict error response in OpenAPI
- introduce 4 schemas in NCMP (doc module) for create, update, patch & delete
- udpate stub & test to follow new API and use one schema for testign purposes

Issue-ID: CPS-2335
Change-Id: Ifc40062ae83429a9ffba350ec3bcc28cb7147293
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
10 months agoHandle duplicate targets NcmpOut event 09/138609/1
mpriyank [Wed, 31 Jul 2024 15:29:01 +0000 (16:29 +0100)]
Handle duplicate targets NcmpOut event

- Accpted , Rejected and Pending targets in the NcmpOut response to have
  unique values hence changing the datastructre to Set.

Issue-ID: CPS-2338
Change-Id: I24a109fad4c854eff1b052df38947cc121445bb9
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
10 months agoEffect changes on scheduled tasks (don't want scheduled tasks to be monitored) 13/138513/12
sourabh_sourabh [Fri, 19 Jul 2024 16:27:54 +0000 (17:27 +0100)]
Effect changes on scheduled tasks (don't want scheduled tasks to be monitored)

- Applied a filter on tasks.scheduled.execution.
- It is configurable from application.ymal into cps.scheduled-task-names: - tasks.scheduled.execution by default.
- Added a new property configuration bean for open telemetry.
- Introduced new propery attribute that takes list of task names to be
  filtered.

Issue-ID: CPS-2250
Change-Id: I8e5334cd166343181df6dd1985471f5465f14f0e
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
10 months agoMerge "Add k6 for legacy async batch passthrough read operation"
Daniel Hanrahan [Wed, 31 Jul 2024 12:30:21 +0000 (12:30 +0000)]
Merge "Add k6 for legacy async batch passthrough read operation"

10 months agoAdd k6 for legacy async batch passthrough read operation 84/138584/5
halil.cakal [Thu, 25 Jul 2024 10:12:29 +0000 (11:12 +0100)]
Add k6 for legacy async batch passthrough read operation

- add kafka support to k6 codebase
- add two new tests: data operation batch passthrough read
   and data operation async batch read (from kafka)
- calculate the events/second via Trend
- add kafka ui support to docker-compose

Note: Before this commit being merged, the k6 executable
should have been compiled with the kafka extension of xk6-kafka

Issue-ID: CPS-2268

Change-Id: Ib7777b7bc9f15b210ea36d3541cba0e0c943f883
Signed-off-by: halil.cakal <halil.cakal@est.tech>
10 months agoMerge "Uplift liquibase-core dependency"
Toine Siebelink [Wed, 31 Jul 2024 08:25:22 +0000 (08:25 +0000)]
Merge "Uplift liquibase-core dependency"

10 months agoFix DMI host/port and clean up Postman collection 04/138604/1
danielhanrahan [Tue, 30 Jul 2024 16:00:21 +0000 (17:00 +0100)]
Fix DMI host/port and clean up Postman collection

Currently, Postman collection does not work out-of-the-box,
due to DMI host being incorrect. DMI Plugin URL supplied to
NCMP inventory must be accessible from inside the docker network.
Using localhost does not work, as it will point to NCMP itself.

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

10 months agoFix ordering issue in QueryServiceIntegrationSpec 03/138603/1
danielhanrahan [Tue, 30 Jul 2024 13:38:14 +0000 (14:38 +0100)]
Fix ordering issue in QueryServiceIntegrationSpec

A test intermittently fails due to comparing unordered list.
Fix is to compare as a set.

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

10 months agoUplift liquibase-core dependency 00/138600/2
mpriyank [Tue, 30 Jul 2024 09:48:51 +0000 (10:48 +0100)]
Uplift liquibase-core dependency

- upgraded from 4.21.0 to 4.28.0
- updated the release notes

Issue-ID: CPS-2326
Change-Id: I8734fd8005438ec682e8b2f458ec84bbabb4be56
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
11 months agoMerge "Delete Subscription method"
Priyank Maheshwari [Fri, 26 Jul 2024 15:04:07 +0000 (15:04 +0000)]
Merge "Delete Subscription method"

11 months agoMerge "[k6] Fix response code check for passthrough write test"
Daniel Hanrahan [Fri, 26 Jul 2024 14:55:31 +0000 (14:55 +0000)]
Merge "[k6] Fix response code check for passthrough write test"

11 months agoDelete Subscription method 19/138419/17
emaclee [Thu, 11 Jul 2024 10:50:08 +0000 (11:50 +0100)]
Delete Subscription method

Issue-ID: CPS-2253
Change-Id: I30768dc431e13d0bac0dcc7b9b16cb0854f06702
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
11 months agoMerge "Added missing authorization header to DataJobService"
Sourabh Sourabh [Fri, 26 Jul 2024 08:55:21 +0000 (08:55 +0000)]
Merge "Added missing authorization header to DataJobService"

11 months agoAdded missing authorization header to DataJobService 77/138577/3
leventecsanyi [Thu, 25 Jul 2024 14:53:08 +0000 (16:53 +0200)]
Added missing authorization header to DataJobService

- added auth header to the interface & updated testware

Issue-ID: CPS-2330
Change-Id: I091fc5c3c3fa323024f55055129cc7240732479a
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
11 months agoIntegration test to validate DMI service URL 71/138571/4
sourabh_sourabh [Thu, 25 Jul 2024 12:03:09 +0000 (13:03 +0100)]
Integration test to validate DMI service URL

- New groovy test is written to validate if dmi service url is encoded
  correctly.

Issue-ID: CPS-2317
Change-Id: I75023a0bd2c41c832177edf062c694bb0d9b14b8
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
11 months ago[k6] Fix response code check for passthrough write test 78/138578/1
danielhanrahan [Thu, 25 Jul 2024 15:20:15 +0000 (16:20 +0100)]
[k6] Fix response code check for passthrough write test

The POST operation returns 201, not 200.
This causes checks to fail when running k6 manually.

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

11 months agoGet data job status from DMI Plugin 24/138424/20
leventecsanyi [Mon, 8 Jul 2024 15:33:16 +0000 (17:33 +0200)]
Get data job status from DMI Plugin

    - added java interface
    - extended DmiRestClient to get data job status
    - added testware

Issue-ID: CPS-2296
Change-Id: If9006bba06397724c15bdc3bdf1bd52a0188f002
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
11 months agoRelease notes update for CPS-2306 and CPS-2319 39/138539/3
Arpit Singh [Thu, 25 Jul 2024 10:35:31 +0000 (16:05 +0530)]
Release notes update for CPS-2306 and CPS-2319

Issue-ID: CPS-2319
Change-Id: I2ab58437c133521fdce10ade61b16e34cfdec0bc
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
11 months agoIntegration test for the writeDataJob 58/138358/19
leventecsanyi [Fri, 21 Jun 2024 08:50:06 +0000 (10:50 +0200)]
Integration test for the writeDataJob

    - added Stub controller
    - created integration test for writeDataJob

Issue-ID: CPS-2236
Change-Id: I067a11dc5bfe629d50128cf303b2a81abc75a348
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
11 months agoMerge "Fix "Create a node" and "Add List Elements" APIs response code"
Priyank Maheshwari [Thu, 25 Jul 2024 09:34:12 +0000 (09:34 +0000)]
Merge "Fix "Create a node" and "Add List Elements" APIs response code"

11 months agoMerge "Fix NCMP CSITs by using new TLS certificates"
Priyank Maheshwari [Thu, 25 Jul 2024 09:33:09 +0000 (09:33 +0000)]
Merge "Fix NCMP CSITs by using new TLS certificates"

11 months agoMerge "Fix dataProducerId in SubJobWriteRequest"
Sourabh Sourabh [Thu, 25 Jul 2024 09:27:49 +0000 (09:27 +0000)]
Merge "Fix dataProducerId in SubJobWriteRequest"

11 months agoFix NCMP CSITs by using new TLS certificates 03/138503/18
danielhanrahan [Wed, 24 Jul 2024 11:19:48 +0000 (12:19 +0100)]
Fix NCMP CSITs by using new TLS certificates

TLS certs for SDNC and PNF simulators have expired, causing CSITs
to fail. The new certificates are valid until 22/07/2034

- Add new certificates, valid for 10 years
- Re-enable NCMP CSITs

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

11 months agoFix timing issue for data sync CSIT 22/138522/3
danielhanrahan [Mon, 22 Jul 2024 12:46:32 +0000 (13:46 +0100)]
Fix timing issue for data sync CSIT

The default data sync watchdog sleep time is 30 seconds, while
the CSIT only waits 10 seconds for data sync to run. This is
leading to intermittent failures.

- increase CSIT time out to 40 seconds for data sync operation
- adjust log levels for data sync so that issues are easier to debug

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

11 months agoFix dataProducerId in SubJobWriteRequest 00/138500/4
leventecsanyi [Wed, 17 Jul 2024 14:48:15 +0000 (16:48 +0200)]
Fix dataProducerId in SubJobWriteRequest

Issue-ID: CPS-2322
Change-Id: I7bfdfd05ffacb085ac056707d477f348cb5bd64f
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
11 months agoUpdate response message for data validation failure 67/138267/8
Arpit Singh [Tue, 9 Jul 2024 11:50:51 +0000 (17:20 +0530)]
Update response message for data validation failure

- Make the response message more informative and cleaner in case of data
  validation failure.
- Updated message body will not contain the entire jsonData as part of
  response sent back to the user

Issue-ID: CPS-2306
Change-Id: I28aab1450779af98ccdd11701e78bdfcdbc18cf0
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
11 months agoFix "Create a node" and "Add List Elements" APIs response code 68/138268/5
Arpit Singh [Wed, 17 Jul 2024 04:54:44 +0000 (10:24 +0530)]
Fix "Create a node" and "Add List Elements" APIs response code

Create a node and Add list elements APIs would return a 500 response
code when a JSON payload mismatching the Schema was sent as part of
the request body.

Updated the code to return response code 400.

Issue-ID: CPS-2319
Change-Id: I86d6af446966790d9e45045b330f0c411fcd0f1d
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
11 months agoDisable NCMP CSITs 58/138558/1
mpriyank [Wed, 24 Jul 2024 08:30:14 +0000 (09:30 +0100)]
Disable NCMP CSITs

- comment the CSITs temporarily until the SDNC certs are corrected.

Issue-ID: CPS-2325
Change-Id: I335b17e4f148ff838301fb511656da1068d124b4
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
11 months agoMerge "Integration test to validate DMI service URL"
Daniel Hanrahan [Fri, 19 Jul 2024 10:02:29 +0000 (10:02 +0000)]
Merge "Integration test to validate DMI service URL"

11 months ago[k6] Measure NCMP overhead for passthrough operations 94/138494/3
danielhanrahan [Tue, 16 Jul 2024 10:47:24 +0000 (11:47 +0100)]
[k6] Measure NCMP overhead for passthrough operations

Measure NCMP overhead by subtracting DMI delay from request duration.

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

11 months agoIntegration test to validate DMI service URL 93/138493/3
sourabh_sourabh [Tue, 16 Jul 2024 16:21:45 +0000 (17:21 +0100)]
Integration test to validate DMI service URL

- New groovy test is written to validate if dmi service url is encoded
  correctly.

Issue-ID: CPS-2317
Change-Id: I048bf37dd3ba4f37df7dace927f55bf8dd899922
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
11 months agoMerge "CPS NCMP: Add state tags to cps.ncmp.lcm.events.publish metrics"
Daniel Hanrahan [Wed, 17 Jul 2024 12:10:47 +0000 (12:10 +0000)]
Merge "CPS NCMP: Add state tags to cps.ncmp.lcm.events.publish metrics"

11 months agoMerge "XML content support on replace a node with descendants"
Daniel Hanrahan [Tue, 16 Jul 2024 19:26:48 +0000 (19:26 +0000)]
Merge "XML content support on replace a node with descendants"

11 months agoMerge "Report throughput for passthrough read operation"
Daniel Hanrahan [Tue, 16 Jul 2024 13:57:32 +0000 (13:57 +0000)]
Merge "Report throughput for passthrough read operation"

11 months agoSeparate dmi delay for passthrough operations 90/138490/1
halil.cakal [Tue, 16 Jul 2024 12:53:05 +0000 (13:53 +0100)]
Separate dmi delay for passthrough operations

- set dmi delay to 670 ms for passthrough write (CUD)
- set dmi delay to 300 ms for passthrough read

Issue-ID:CPS-2285

Change-Id: I7a4294d3ed04c89aeb5988a9975516135317af12
Signed-off-by: halil.cakal <halil.cakal@est.tech>
11 months agoCPS NCMP: Add state tags to cps.ncmp.lcm.events.publish metrics 03/138403/3
sourabh_sourabh [Mon, 8 Jul 2024 16:54:11 +0000 (17:54 +0100)]
CPS NCMP: Add state tags to cps.ncmp.lcm.events.publish metrics

- Added cm handle state into micrometer Timer as an extra tags while capturing total time taken to publish a LCM events for publishLcmEvent method.

Issue-ID: CPS-2123
Change-Id: I6357c628496700fee7448dbc381a7e0e62d8b540
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
11 months agoXML content support on replace a node with descendants 59/138259/16
Rudrangi Anupriya [Thu, 11 Jul 2024 16:26:24 +0000 (21:56 +0530)]
XML content support on replace a node with descendants

Issue-ID: CPS-2282
Change-Id: Ibb7ffb65ccbb03703266712c6d5c2eade0e7ab4b
Signed-off-by: Rudrangi Anupriya <ra00745022@techmahindra.com>
11 months agoReport throughput for passthrough read operation 09/138409/4
halil.cakal [Tue, 9 Jul 2024 16:43:25 +0000 (17:43 +0100)]
Report throughput for passthrough read operation

- change threshold from avg duration to req per second
- the delay for dmi has been hanlded in seprate commit
   in dmi repository
- add delays through docker-compose env variables

Issue-ID:CPS-2285

Change-Id: I35978b21c208fdb4209b1610160dc5545ee22965
Signed-off-by: halil.cakal <halil.cakal@est.tech>
11 months agoMerge "Add passthrough write (CUD) operations to k6"
Daniel Hanrahan [Tue, 16 Jul 2024 09:24:18 +0000 (09:24 +0000)]
Merge "Add passthrough write (CUD) operations to k6"

11 months agoMapper to group Subscription Details for DMI 15/138415/4
mpriyank [Wed, 10 Jul 2024 13:46:46 +0000 (14:46 +0100)]
Mapper to group Subscription Details for DMI

- introduced a mapper to group a collection of subscription
  keys(datastore cmhandle and xpath ) based on datastore and xpath
- the information will be used to send out to the dmi plugin

Issue-ID: CPS-2312
Change-Id: I99f509eb5b4a8c3a7fb1078ae86490d894f22b6c
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
11 months agoBump CPS to 3.5.2 Snapshot 85/138485/1
mpriyank [Mon, 15 Jul 2024 11:25:15 +0000 (12:25 +0100)]
Bump CPS to 3.5.2 Snapshot

- bump CPS to 3.5.2-SNAPSHOT
- updated the release notes and prepared for the next release

Issue-ID: CPS-2318
Change-Id: I584faf6218e60ad62e32ef8c3cb0deb4047149a2
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
11 months agocontainer yaml for CPS 3.5.1 84/138484/1
mpriyank [Mon, 15 Jul 2024 10:59:56 +0000 (11:59 +0100)]
container yaml for CPS 3.5.1

- adding container yaml for CPS release 3.5.1

Issue-ID: CPS-2318
Change-Id: Iba39b49c46c30f917e526cdf716b963dc1e139d4
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
11 months agomaven stage yaml for 3.5.1 83/138483/1
mpriyank [Mon, 15 Jul 2024 10:21:57 +0000 (11:21 +0100)]
maven stage yaml for 3.5.1

- adding maven stage yaml for CPS 3.5.1 release

Issue-ID: CPS-2318
Change-Id: I14f4f8a890fbab80497696907fde4fd22601a562
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
11 months agoMerge "Release notes CPS 3.5.1"
Daniel Hanrahan [Mon, 15 Jul 2024 10:05:06 +0000 (10:05 +0000)]
Merge "Release notes CPS 3.5.1"

11 months agoRelease notes CPS 3.5.1 82/138482/1
mpriyank [Mon, 15 Jul 2024 09:48:49 +0000 (10:48 +0100)]
Release notes CPS 3.5.1

- Added release notes and syncd the openapi files.

Issue-ID: CPS-2318
Change-Id: I1982e31f3bcb9337ed9814cb55a4db885b157158
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
11 months agoPrint DMI stub logs in CSITs 61/138461/1
danielhanrahan [Fri, 12 Jul 2024 14:05:15 +0000 (15:05 +0100)]
Print DMI stub logs in CSITs

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

11 months agoAdd passthrough write (CUD) operations to k6 36/138436/2
halil.cakal [Thu, 11 Jul 2024 13:54:57 +0000 (14:54 +0100)]
Add passthrough write (CUD) operations to k6

- the delay for dmi has been hanlded in seprate commit
- for simplicity only the POST request is considered

Issue-ID: CPS-2267

Change-Id: I62ede04dd8e2744fc723566742396df31c42ea5d
Signed-off-by: halil.cakal <halil.cakal@est.tech>
11 months agoPrint docker logs in CSITs for 2 cps-and-ncmp instances 37/138437/1
danielhanrahan [Fri, 12 Jul 2024 10:58:40 +0000 (11:58 +0100)]
Print docker logs in CSITs for 2 cps-and-ncmp instances

Following introduction of 2 instances of cps-and-ncmp,
CSIT logs show an error "No such container: cps-and-ncmp".
This commit prints docker logs for each cps-and-ncmp container.

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

11 months agoMerge "Policy Executor Feature Toggle"
Sourabh Sourabh [Thu, 11 Jul 2024 16:11:34 +0000 (16:11 +0000)]
Merge "Policy Executor Feature Toggle"

11 months agoPolicy Executor Feature Toggle 22/138422/3
ToineSiebelink [Wed, 10 Jul 2024 16:34:13 +0000 (17:34 +0100)]
Policy Executor Feature Toggle

- defined config parameters for feature toggle and server details
- log request details when feature enabled
- improved JavaDoc in Controller
- improved configuration properties checks in HttpClientConfigurationSpec

Issue-ID: CPS-2311
Change-Id: I1ff4bd3592ce2570ac74f9ec6e62b75001cb611a
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
11 months agoMerge "Fix timing issue in CmHandleCreateSpec"
Priyank Maheshwari [Thu, 11 Jul 2024 13:29:59 +0000 (13:29 +0000)]
Merge "Fix timing issue in CmHandleCreateSpec"

11 months agoFix timing issue in CmHandleCreateSpec 20/138420/2
danielhanrahan [Thu, 11 Jul 2024 11:16:43 +0000 (12:16 +0100)]
Fix timing issue in CmHandleCreateSpec

The test for module sync retry on LOCKED handles has a timing issue,
due the ordering of the steps. After a LOCKED handle gets reset to
ADVISED state (but DMI is not yet set to available), the Module Sync
Watchdog may wake up and put it back into LOCKED state again.

This fix is to first make the DMI available before waiting for the
LOCKED handle to reset.

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

11 months agoDocumentation updated in docs/ncmp-inventory-querying.rst 18/138418/3
sourabh_sourabh [Thu, 11 Jul 2024 09:45:45 +0000 (10:45 +0100)]
Documentation updated in docs/ncmp-inventory-querying.rst

- Existing API docs in docs/ncmp-cmhandle-querying.rst is updated where
  CPS Path is now supported as ancestor axis.

Issue-ID: CPS-2289
Change-Id: I065179fe7c294588580448a8467765e9d116d33a
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
11 months agoMerge "NCMP inventory cm handle search should support cps path query"
Toine Siebelink [Wed, 10 Jul 2024 16:43:03 +0000 (16:43 +0000)]
Merge "NCMP inventory cm handle search should support cps path query"

11 months agoRemove nginx logs that not being used anywhere 13/138413/1
halil.cakal [Wed, 10 Jul 2024 13:58:26 +0000 (14:58 +0100)]
Remove nginx logs that not being used anywhere

Issue-ID: CPS-2038

Change-Id: Iba8950db4f3fcfc13f32bf915189f5fcb2ccee90
Signed-off-by: halil.cakal <halil.cakal@est.tech>
11 months agoNCMP inventory cm handle search should support cps path query 11/138411/2
sourabh_sourabh [Wed, 10 Jul 2024 11:51:31 +0000 (12:51 +0100)]
NCMP inventory cm handle search should support cps path query

- Added cps path query conditions for inventory search api

Issue-ID: CPS-2289
Change-Id: I0bcc9a45af65ad9d41c4d4cf79b35bfb95f50cff
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
11 months agoSplit integration tests into cps and ncmp packages 04/138404/3
danielhanrahan [Tue, 9 Jul 2024 11:06:20 +0000 (12:06 +0100)]
Split integration tests into cps and ncmp packages

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

11 months agoPolicy Executor API, make Authorization header optional 10/138410/2
ToineSiebelink [Wed, 10 Jul 2024 08:24:22 +0000 (09:24 +0100)]
Policy Executor API, make Authorization header optional

Issue-ID: CPS-22291
Change-Id: I2b8f9b97c92dfc640c8b40b7053c609bbdcb2f6e
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
11 months agoNCMP: NCMP search API fixed to handle cps path that is ancestor axis as 02/138402/6
sourabh_sourabh [Mon, 8 Jul 2024 16:40:38 +0000 (17:40 +0100)]
NCMP: NCMP search API fixed to handle cps path that is ancestor axis as
well

- Cps path builder is fixed to handle ancestor axis that is target as well while quering.

Issue-ID: CPS-2308
Change-Id: Iaf215851ada17d21516ae83fa142ac77ff1c6c19
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
11 months agoRefactor remaining classes package structure 05/138405/3
ToineSiebelink [Tue, 9 Jul 2024 11:41:59 +0000 (12:41 +0100)]
Refactor remaining classes package structure

-Introduced org.onap.cps.ncmp.config for all config type classes like http, kafka etc.
-Introduced org.onap.cps.ncmp.impl.dmi for dmi specif classes like DmiRestClient etc.
-Moved most exception classes to org.onap.cps.ncmp.api.exceptions
(only two were 'internal' i.e. NOT used in REST so left in org.onap.cps.ncmp.exceptions)
-Deleted unused DateNodeHelper class (and related testware)
-Moved some classes to org.onap.cps.ncmp.impl.utils
-Moved messaging test base classes to org.onap.cps.ncmp.impl.utils.events
-All imports were reorganised automatically by IntelliJ
-did NOT update any copyright dates (seems incorrect to me anyway)

Issue-ID: CPS-2257
Change-Id: Ie28b1777ea278064b46c6a1c3a28f4d0696565e2
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
11 months agoIncrease module sync wait time in tests to 10 seconds 08/138408/1
danielhanrahan [Tue, 9 Jul 2024 14:21:25 +0000 (15:21 +0100)]
Increase module sync wait time in tests to 10 seconds

Too small timeout is causing intermittant test failures.

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

11 months agoMerge "Create PolicyExecutor Stub"
Sourabh Sourabh [Tue, 9 Jul 2024 13:30:26 +0000 (13:30 +0000)]
Merge "Create PolicyExecutor Stub"

11 months agoMerge "Setup automated tests with two replicas of cps-and-ncmp"
Daniel Hanrahan [Tue, 9 Jul 2024 12:31:10 +0000 (12:31 +0000)]
Merge "Setup automated tests with two replicas of cps-and-ncmp"

11 months agoMerge "[k6] Measure CM-handle (de)registration in CM-handles/sec"
Sourabh Sourabh [Tue, 9 Jul 2024 09:38:47 +0000 (09:38 +0000)]
Merge "[k6] Measure CM-handle (de)registration in CM-handles/sec"

11 months agoMerge "Remove forced module sync from NCMP integration tests"
Lee Anjella Macabuhay [Tue, 9 Jul 2024 09:24:08 +0000 (09:24 +0000)]
Merge "Remove forced module sync from NCMP integration tests"

11 months agoMerge "Refactor integration tests so only one DmiDispatcher is used"
Lee Anjella Macabuhay [Tue, 9 Jul 2024 09:23:51 +0000 (09:23 +0000)]
Merge "Refactor integration tests so only one DmiDispatcher is used"