cps.git
9 months agoRefactor FragmentQueryBuilder 86/138886/5
danielhanrahan [Mon, 2 Sep 2024 11:04:51 +0000 (12:04 +0100)]
Refactor FragmentQueryBuilder

This is a refactoring of FragmentQueryBuilder, there are
no functional changes. This refactoring is needed before
main patch of CPS-2365.

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

9 months ago[k6] Minor correction to plot titles 05/138905/1
danielhanrahan [Thu, 5 Sep 2024 11:06:30 +0000 (12:06 +0100)]
[k6] Minor correction to plot titles

Plot title say Module filter instead of Module and Property.

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

9 months agoMerge "[Cps Path Parser] Move NCMP-specific logic to NCMP"
Priyank Maheshwari [Thu, 5 Sep 2024 09:49:38 +0000 (09:49 +0000)]
Merge "[Cps Path Parser] Move NCMP-specific logic to NCMP"

9 months agoMerge "[k6] Align tests with updated requirements"
Priyank Maheshwari [Thu, 5 Sep 2024 09:45:25 +0000 (09:45 +0000)]
Merge "[k6] Align tests with updated requirements"

9 months ago[Cps Path Parser] Move NCMP-specific logic to NCMP 84/138884/3
danielhanrahan [Thu, 29 Aug 2024 19:00:40 +0000 (20:00 +0100)]
[Cps Path Parser] Move NCMP-specific logic to NCMP

Some special case code to disable ancestor-axis was added for
CM-handle search (see CPS-2308). It is now relocated to NCMP.
This makes other needed improvements of Cps Path Parser easier.

- Move special case code into NCMP
- Add integration test to ensure CM-handle search works

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

9 months agoMerge "Support alternate id for CPS-E05 GetCmHandleDetailsById"
Daniel Hanrahan [Wed, 4 Sep 2024 16:19:02 +0000 (16:19 +0000)]
Merge "Support alternate id for CPS-E05 GetCmHandleDetailsById"

9 months agoMerge "[Cps Path Parser] Refactoring leaf conditions"
Priyank Maheshwari [Wed, 4 Sep 2024 16:18:43 +0000 (16:18 +0000)]
Merge "[Cps Path Parser] Refactoring leaf conditions"

9 months agoMerge "K6 Performance Graph fails frequently"
Daniel Hanrahan [Wed, 4 Sep 2024 15:56:15 +0000 (15:56 +0000)]
Merge "K6 Performance Graph fails frequently"

9 months agoK6 Performance Graph fails frequently 97/138897/3
sourabh_sourabh [Wed, 4 Sep 2024 13:02:17 +0000 (14:02 +0100)]
K6 Performance Graph fails frequently

- Overrides initial processing delay of every new module set tag for DMI plugin stub from 2 min (default) to 0 as a temp. solution.

Issue-ID: CPS-2395
Change-Id: Ic875262314406ec55457e31a69c00d55293c1b74
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
9 months ago[Cps Path Parser] Remove unneeded validation in grammar 83/138883/2
danielhanrahan [Sat, 31 Aug 2024 21:06:12 +0000 (22:06 +0100)]
[Cps Path Parser] Remove unneeded validation in grammar

The invalid prefix/postfix is not needed; existing tests show
that PathParsingException is thrown in for invalid paths.

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

9 months ago[k6] Align tests with updated requirements 58/138858/7
danielhanrahan [Sun, 25 Aug 2024 20:35:19 +0000 (21:35 +0100)]
[k6] Align tests with updated requirements

- Test load increased to 5 CM handle searches and 5 Id searches to
  reflect current requirements.
- CM handles searches now use a combined search filter including
  1 module and 1 public property, so we are testing with a heavier
  load than required, for early warning of trouble.
- Test load reduced for passthrough operations to 4 VUs per operation
  to reflect addition of batch operation.
- Added test of passthrough write operation with alternate ID.
- Additional refactoring.

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

9 months agoMerge "Support Alternate-id for CPS-E05 module search"
Daniel Hanrahan [Wed, 4 Sep 2024 10:05:25 +0000 (10:05 +0000)]
Merge "Support Alternate-id for CPS-E05 module search"

9 months agoMerge "Remove event notifications when removing trust level entries"
Priyank Maheshwari [Wed, 4 Sep 2024 09:33:48 +0000 (09:33 +0000)]
Merge "Remove event notifications when removing trust level entries"

9 months agoSupport Alternate-id for CPS-E05 module search 44/138844/7
seanbeirne [Mon, 26 Aug 2024 09:48:20 +0000 (10:48 +0100)]
Support Alternate-id for CPS-E05 module search

Issue-ID: CPS-2370
Change-Id: I0ca3a1df232ad9fd9f76695cd6ea21d36919130d
Signed-off-by: seanbeirne <sean.beirne@est.tech>
9 months agoMerge "Support Alternate-id for CPS-E05 module definition"
Priyank Maheshwari [Wed, 4 Sep 2024 07:57:04 +0000 (07:57 +0000)]
Merge "Support Alternate-id for CPS-E05 module definition"

9 months agoSupport alternate id for CPS-E05 GetCmHandleDetailsById 93/138893/1
mpriyank [Tue, 3 Sep 2024 16:00:17 +0000 (17:00 +0100)]
Support alternate id for CPS-E05 GetCmHandleDetailsById

- added support for alternate id when retreiving cmhandle details by id
- Note : The performance for alternate id fetching will be taken care as
  part of a separate story.

Issue-ID: CPS-2385
Change-Id: I019b85d128e4b0a1f1d61623c92e1a2381c406c0
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
9 months agoMerge "Remove unused and duplicate dependencies in poms"
Sourabh Sourabh [Tue, 3 Sep 2024 09:43:14 +0000 (09:43 +0000)]
Merge "Remove unused and duplicate dependencies in poms"

9 months agoMerge "Fix huge logs produced when errors occur in k6"
Daniel Hanrahan [Tue, 3 Sep 2024 08:45:50 +0000 (08:45 +0000)]
Merge "Fix huge logs produced when errors occur in k6"

9 months agoMerge "[k6] Report failure rate for all tests in a single plot"
Priyank Maheshwari [Mon, 2 Sep 2024 16:10:16 +0000 (16:10 +0000)]
Merge "[k6] Report failure rate for all tests in a single plot"

9 months agoRemove event notifications when removing trust level entries 88/138888/3
halil.cakal [Mon, 2 Sep 2024 13:30:02 +0000 (14:30 +0100)]
Remove event notifications when removing trust level entries

Issue-ID: CPS-2315

Change-Id: I4f0cb7c2066e0ab9c62ac9cdb0fc39ce7de7791b
Signed-off-by: halil.cakal <halil.cakal@est.tech>
9 months agoSupport Alternate-id for CPS-E05 module definition 46/138846/7
seanbeirne [Mon, 26 Aug 2024 13:13:29 +0000 (14:13 +0100)]
Support Alternate-id for CPS-E05 module definition

Issue-ID: CPS-2379
Change-Id: Idd180c5792575522ceaaa094b94c8f5b36790186
Signed-off-by: seanbeirne <sean.beirne@est.tech>
9 months agoRemove unused and duplicate dependencies in poms 87/138887/1
danielhanrahan [Sun, 18 Aug 2024 00:28:39 +0000 (01:28 +0100)]
Remove unused and duplicate dependencies in poms

- remove duplicate dependencies from cps-service pom
- remove unused spring security dependency from cps-application pom

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

9 months agoPolicy Executor: pass Change request as Object 67/138867/5
sourabh_sourabh [Fri, 30 Aug 2024 12:17:57 +0000 (13:17 +0100)]
Policy Executor: pass Change request as Object

- Added unit test for new exception handling

Issue-ID: CPS-2335
Change-Id: I5517c91edf505932d0a94165c19420922b3f5f51
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
9 months agoMerge "Support alternate id interface for CPS-E-05 - publicProperties"
Daniel Hanrahan [Mon, 2 Sep 2024 09:22:13 +0000 (09:22 +0000)]
Merge "Support alternate id interface for CPS-E-05 - publicProperties"

9 months ago[Cps Path Parser] Refactoring leaf conditions 82/138882/1
danielhanrahan [Sat, 31 Aug 2024 21:30:16 +0000 (22:30 +0100)]
[Cps Path Parser] Refactoring leaf conditions

Instead of DataLeaf and ComparativeOperators classes,
we more simply have LeafConditions class with all info.

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

9 months ago[k6] Report failure rate for all tests in a single plot 56/138856/4
danielhanrahan [Tue, 27 Aug 2024 16:57:26 +0000 (17:57 +0100)]
[k6] Report failure rate for all tests in a single plot

Instead of separate plots of test failures for each test case,
we have one single plot showing failures.

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

9 months agoMerge "Support 2 CPS instances in Prometheus/Grafana"
Priyank Maheshwari [Fri, 30 Aug 2024 15:39:58 +0000 (15:39 +0000)]
Merge "Support 2 CPS instances in Prometheus/Grafana"

9 months ago[k6] Fix k6 tests after DMI stub changes 77/138877/1
danielhanrahan [Fri, 30 Aug 2024 14:03:06 +0000 (15:03 +0100)]
[k6] Fix k6 tests after DMI stub changes

A change to DMI stub has broken k6 module search due
to module rename and increased registration time.

- increase setupTimeout by 2 minutes to factor in DMI startup delay
- module search uses module common to all module set tags
- only record times for searches returning number of CM-handles

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

9 months agoFix huge logs produced when errors occur in k6 54/138854/2
sourabh_sourabh [Tue, 27 Aug 2024 14:38:41 +0000 (15:38 +0100)]
Fix huge logs produced when errors occur in k6

 - Changed k6 config to ignore all the error logs.

Issue-ID: CPS-2344
Change-Id: Iad7be43ae5bb909518f9f7d8e386a97c96c349e3
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
9 months agoSupport alternate id interface for CPS-E-05 - publicProperties 55/138855/2
mpriyank [Tue, 27 Aug 2024 15:08:31 +0000 (16:08 +0100)]
Support alternate id interface for CPS-E-05 - publicProperties

- added alternate id support for the existing endpoint
- Incorporated previous comments on the indendation
- Added new component cmHandleReferenceInPath in openapi docs to depict
  the correct example

Issue-ID: CPS-2378
Change-Id: I63e752fbb6cb0bde49d1ced53f063743d904d74e
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
9 months agoMerge "[k6] Exclude timings when error occur"
Priyank Maheshwari [Thu, 29 Aug 2024 13:25:41 +0000 (13:25 +0000)]
Merge "[k6] Exclude timings when error occur"

9 months agoCorrectly report trust level if DMI is down 53/138853/4
danielhanrahan [Mon, 26 Aug 2024 13:20:25 +0000 (14:20 +0100)]
Correctly report trust level if DMI is down

Current trust level should factor in both CM-handle
and DMI trust levels (effective trust level).

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

9 months agoMerge "Invoke Policy Executor and handle not-allowed response"
Sourabh Sourabh [Thu, 29 Aug 2024 09:48:19 +0000 (09:48 +0000)]
Merge "Invoke Policy Executor and handle not-allowed response"

9 months agoInvoke Policy Executor and handle not-allowed response 57/138857/8
ToineSiebelink [Tue, 27 Aug 2024 13:56:44 +0000 (14:56 +0100)]
Invoke Policy Executor and handle not-allowed response

- Execute Policy Executor REST request
- Act (and log) on response from Policy Executor
- Add dispatcher(mock) in integration test FWK
- Add integration test for allow/non allowed and no authorization use cases
- disabled PolicyExecution feature by default (only enabled for testware)

Issue-ID: CPS-2247

Change-Id: I111ba9ba89cc91649b63b20f88414aa33721dbeb
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
9 months ago[k6] Exclude timings when error occur 76/138776/4
danielhanrahan [Fri, 16 Aug 2024 12:56:14 +0000 (13:56 +0100)]
[k6] Exclude timings when error occur

If an error occurs during k6 test, e.g. tcp connection refused, the
timing of failed response is included in the average response time.
This can lead to incorrect plots when errors occur, e.g. operations
appear to be faster when really the operations are failing.

- use custom Trend metrics for all measurements
- only log results when operations return expected response codes

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

9 months agoMerge "Plot request failures for each k6 test"
Daniel Hanrahan [Tue, 27 Aug 2024 13:20:37 +0000 (13:20 +0000)]
Merge "Plot request failures for each k6 test"

9 months agoMerge "Cleanup unused yang models from CPS core"
Daniel Hanrahan [Tue, 27 Aug 2024 13:12:09 +0000 (13:12 +0000)]
Merge "Cleanup unused yang models from CPS core"

9 months agoSupport for alternate-id for CPS-E-05 i/f 25/138825/2
mpriyank [Tue, 20 Aug 2024 12:36:26 +0000 (13:36 +0100)]
Support for alternate-id for CPS-E-05 i/f

- Added support for alternateId for CREATE , UPDATE, DELETE and PATCH
  operation for CPS-E05 passthrough running datastores

Issue-ID: CPS-2362
Change-Id: Ie4db1d84dba795e9650949cab3374e0b2570beba
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
9 months agoSupport for alternate-id CPS-E05 composite state 41/138841/3
mpriyank [Fri, 23 Aug 2024 15:33:44 +0000 (16:33 +0100)]
Support for alternate-id CPS-E05 composite state

- Added support for alternate id for the composite state API for
  CPS-E05#15

Issue-ID: CPS-2377
Change-Id: I1af41efb8cec762be68250cae7c1e98fbc61a4f5
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
9 months agoMerge "Remove trust level from cache when cm handles deleted"
Daniel Hanrahan [Tue, 27 Aug 2024 10:55:53 +0000 (10:55 +0000)]
Merge "Remove trust level from cache when cm handles deleted"

9 months agoMerge "[k6] Always pull latest cps and dmi stub images"
Priyank Maheshwari [Tue, 27 Aug 2024 10:37:35 +0000 (10:37 +0000)]
Merge "[k6] Always pull latest cps and dmi stub images"

9 months agoMerge "Install dependencies for k6 and csit"
Priyank Maheshwari [Tue, 27 Aug 2024 10:33:06 +0000 (10:33 +0000)]
Merge "Install dependencies for k6 and csit"

9 months agoCleanup unused yang models from CPS core 52/138852/1
danielhanrahan [Mon, 26 Aug 2024 20:28:53 +0000 (21:28 +0100)]
Cleanup unused yang models from CPS core

Yang models and generated CSVs are no longer used in CPS
liquibase, rather Inventory model loader does this.

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

9 months agoInstall dependencies for k6 and csit 43/138843/2
danielhanrahan [Fri, 23 Aug 2024 16:41:05 +0000 (17:41 +0100)]
Install dependencies for k6 and csit

- install docker-compose in csit and k6 tests
- install k6 with kafka extension in k6 tests

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

10 months agoPolicy Executor, refactor(move) common http classes 49/138849/1
ToineSiebelink [Mon, 26 Aug 2024 16:52:34 +0000 (17:52 +0100)]
Policy Executor, refactor(move) common http classes

Issue-ID: CPS-2343
Change-Id: Ia9655364462826a794a2af78214311cb38c40de9
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
10 months agoPolicy Executor and DMI WebClient configurations 47/138847/2
ToineSiebelink [Mon, 26 Aug 2024 16:10:03 +0000 (17:10 +0100)]
Policy Executor and DMI WebClient configurations

- separated dmi and policy executor http client configuration

Issue-ID: CPS-2324
Change-Id: Ib4e757da188673e163abe6078dfd6ddae447eaab
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
10 months agoPlot request failures for each k6 test 37/138837/2
halil.cakal [Tue, 6 Aug 2024 13:02:49 +0000 (14:02 +0100)]
Plot request failures for each k6 test

- add request failures to plot for each tests
- simplify setup and teardown function

Issue-ID: CPS-2347

Change-Id: I81226518af7bda12b0489ec46de08e27c96cc16d
Signed-off-by: halil.cakal <halil.cakal@est.tech>
10 months ago[k6] Always pull latest cps and dmi stub images 80/138780/4
danielhanrahan [Fri, 16 Aug 2024 14:47:57 +0000 (15:47 +0100)]
[k6] Always pull latest cps and dmi stub images

Presently, k6 tests are using old cached DMI stub version in the
Jenkins job. This commit ensures latest images are pulled by
cleaning old images if a variable is set.

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

10 months agoRemove trust level from cache when cm handles deleted 30/138830/4
halil.cakal [Thu, 22 Aug 2024 15:16:45 +0000 (16:16 +0100)]
Remove trust level from cache when cm handles deleted

- handle removal of device trust levels from the cache when
  cm handles deleted
- handle initial dmi registration inside trust level manager

Issue-ID: CPS-2315

Change-Id: I605ed78f164d7534069de8352dc3b0a81a4ce22c
Signed-off-by: halil.cakal <halil.cakal@est.tech>
10 months agoSupport 2 CPS instances in Prometheus/Grafana 35/138835/4
danielhanrahan [Fri, 23 Aug 2024 12:29:11 +0000 (13:29 +0100)]
Support 2 CPS instances in Prometheus/Grafana

- Specify both cps-and-ncmp instances in Prometheus config
- Add default JVM Micrometer dashboard to Grafana, taken from
  https://grafana.com/grafana/dashboards/4701-jvm-micrometer/

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

10 months agoBump CPS to 3.5.3-SNAPSHOT 23/138823/1
danielhanrahan [Wed, 21 Aug 2024 15:14:53 +0000 (16:14 +0100)]
Bump CPS to 3.5.3-SNAPSHOT

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

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

10 months agocontainer yaml for 3.5.2 22/138822/1
danielhanrahan [Wed, 21 Aug 2024 15:08:18 +0000 (16:08 +0100)]
container yaml for 3.5.2

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

10 months agomaven stage yaml for 3.5.2 21/138821/2
danielhanrahan [Wed, 21 Aug 2024 14:22:11 +0000 (15:22 +0100)]
maven stage yaml for 3.5.2

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

10 months agoUpdate openapi for 3.5.2 20/138820/1
danielhanrahan [Wed, 21 Aug 2024 13:51:19 +0000 (14:51 +0100)]
Update openapi for 3.5.2

- update info.version to 3.5.2 for openapi yamls
- update read-the-docs copies of openapi docs

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

10 months agoMerge "Release notes for moduleSetTag perf improvement"
Priyank Maheshwari [Wed, 21 Aug 2024 13:40:49 +0000 (13:40 +0000)]
Merge "Release notes for moduleSetTag perf improvement"

10 months agoMerge "Release notes for Cm Subscriptions"
Daniel Hanrahan [Wed, 21 Aug 2024 13:40:44 +0000 (13:40 +0000)]
Merge "Release notes for Cm Subscriptions"

10 months agoMerge "[BUG] Blank alternateId overwrites existing"
Priyank Maheshwari [Wed, 21 Aug 2024 13:18:49 +0000 (13:18 +0000)]
Merge "[BUG] Blank alternateId overwrites existing"

10 months agoMerge "Revert "Remove trust level entries from cache when cm handles deleted""
Daniel Hanrahan [Wed, 21 Aug 2024 13:08:35 +0000 (13:08 +0000)]
Merge "Revert "Remove trust level entries from cache when cm handles deleted""

10 months agoRelease notes for moduleSetTag perf improvement 19/138819/1
danielhanrahan [Wed, 21 Aug 2024 09:50:01 +0000 (10:50 +0100)]
Release notes for moduleSetTag perf improvement

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

10 months agoRevert "Remove trust level entries from cache when cm handles deleted" 96/138796/1
Lee Anjella Macabuhay [Wed, 21 Aug 2024 12:54:31 +0000 (12:54 +0000)]
Revert "Remove trust level entries from cache when cm handles deleted"

This reverts commit 77b8e25e14e698c853334ef57459c21d7813911a.

Reason for revert: Performance degredation

Change-Id: Ibd88e626189d821680568c63952b95e7d1e05dc4
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
10 months agoRelease notes for Cm Subscriptions 81/138781/4
mpriyank [Mon, 19 Aug 2024 09:33:33 +0000 (10:33 +0100)]
Release notes for Cm Subscriptions

- Added release notes for the CM Data Subscriptions epic for the
  positive scenarios.

Issue-ID: CPS-2324
Change-Id: I1b61113a6bfa365a5856b97433098420dbf59c90
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
10 months ago[BUG] Blank alternateId overwrites existing 13/138813/4
danielhanrahan [Mon, 19 Aug 2024 19:34:45 +0000 (20:34 +0100)]
[BUG] Blank alternateId overwrites existing

During CM-handle update, a blank "" alternateId will overwrite
an already-set alternateId.
Additionally during registration, if an alternateId consisting of
whitespace is supplied, it will be persisted with whitespace.
This fixes both issues by using isBlank/isNotBlank consistently.

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

10 months agoMerge "Faster alternate-id checks during registration (CPS-2366 #2)"
Priyank Maheshwari [Wed, 21 Aug 2024 09:53:09 +0000 (09:53 +0000)]
Merge "Faster alternate-id checks during registration (CPS-2366 #2)"

10 months agoMerge "Refactoring alternate ID checker (CPS-2366 #1)"
Priyank Maheshwari [Wed, 21 Aug 2024 09:39:52 +0000 (09:39 +0000)]
Merge "Refactoring alternate ID checker (CPS-2366 #1)"

10 months agoRemove trust level entries from cache when cm handles deleted 22/138622/7
halil.cakal [Mon, 19 Aug 2024 10:08:43 +0000 (11:08 +0100)]
Remove trust level entries from cache when cm handles deleted

- handle removal of device trust levels from the cache when
  cm handles deleted
- handle initial dmi registration inside trust level manager
- add get effective trust level function to trust level manager
  for get and query cm handle APIs (to set trust level on the return
   object)

Issue-ID: CPS-2315

Change-Id: I8daa4a2ad8310de10e35fdc50351deb85fd3ffd0
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Signed-off-by: halil.cakal <halil.cakal@est.tech>
10 months agoFaster alternate-id checks during registration (CPS-2366 #2) 71/138771/5
danielhanrahan [Tue, 20 Aug 2024 13:58:49 +0000 (14:58 +0100)]
Faster alternate-id checks during registration (CPS-2366 #2)

This improves performance when using alternate ID in registration.
Instead of one CPS path query for each alternate ID, it sends one
query for the whole batch using OR operator, e.g.

  /dmi-registry/cm-handles[@alternate-id='A' or @alternate-id='B']

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

10 months agoRefactoring alternate ID checker (CPS-2366 #1) 70/138770/5
danielhanrahan [Thu, 15 Aug 2024 13:33:39 +0000 (14:33 +0100)]
Refactoring alternate ID checker (CPS-2366 #1)

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

10 months agoMerge "Fix docker image for netconf-pnp-simulator to fix CSITs"
Priyank Maheshwari [Tue, 20 Aug 2024 13:44:56 +0000 (13:44 +0000)]
Merge "Fix docker image for netconf-pnp-simulator to fix CSITs"

10 months agoFix docker image for netconf-pnp-simulator to fix CSITs 15/138815/1
danielhanrahan [Tue, 20 Aug 2024 13:07:00 +0000 (14:07 +0100)]
Fix docker image for netconf-pnp-simulator to fix CSITs

The image on onap nexus is missing.

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

10 months agoMerge "[k6] Fix teardown script shutting down all containers"
Lee Anjella Macabuhay [Tue, 20 Aug 2024 11:41:56 +0000 (11:41 +0000)]
Merge "[k6] Fix teardown script shutting down all containers"

10 months agoMerge "Fix intermittent test failure of Delta between anchors"
Priyank Maheshwari [Mon, 19 Aug 2024 10:01:46 +0000 (10:01 +0000)]
Merge "Fix intermittent test failure of Delta between anchors"

10 months ago[k6] Fix teardown script shutting down all containers 78/138778/2
danielhanrahan [Fri, 16 Aug 2024 13:49:51 +0000 (14:49 +0100)]
[k6] Fix teardown script shutting down all containers

The teardown script in k6 shuts down ALL docker containers when done.
This can cause failures in the groovy tests when running in parallel,
as the groovy test container for DB also shuts down.

This fix is to shut down using docker-compose.

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

10 months agoMerge "[k6] Remove incorrect passthrough rates"
Lee Anjella Macabuhay [Fri, 16 Aug 2024 14:28:24 +0000 (14:28 +0000)]
Merge "[k6] Remove incorrect passthrough rates"

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 ago[k6] Remove incorrect passthrough rates 75/138775/2
danielhanrahan [Fri, 16 Aug 2024 10:09:25 +0000 (11:09 +0100)]
[k6] Remove incorrect passthrough rates

Reported rates for passthrough operations is incorrectly reported,
due to it being averaged over whole test time including setup and
teardown. It was agreed to simply not report rates, and only report
NCMP overhead.

- remove http request rates for passthrough operations
- change VUs from passthrough read so that there are 10 total

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

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>