aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-08-21Merge "Refactoring alternate ID checker (CPS-2366 #1)"Priyank Maheshwari2-103/+49
2024-08-21Remove trust level entries from cache when cm handles deletedhalil.cakal11-76/+153
- 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>
2024-08-20Faster alternate-id checks during registration (CPS-2366 #2)danielhanrahan6-24/+60
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
2024-08-20Refactoring alternate ID checker (CPS-2366 #1)danielhanrahan2-103/+49
Issue-ID: CPS-2366 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I07228a130ebdab0e2782e54255b5e8cc34c8d77e
2024-08-20Merge "Fix docker image for netconf-pnp-simulator to fix CSITs"Priyank Maheshwari1-1/+1
2024-08-20Fix docker image for netconf-pnp-simulator to fix CSITsdanielhanrahan1-1/+1
The image on onap nexus is missing. Issue-ID: CPS-2313 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ifd410de6d9607705857e4d98e2afab2556940f96
2024-08-20Merge "[k6] Fix teardown script shutting down all containers"Lee Anjella Macabuhay1-8/+2
2024-08-19Merge "Fix intermittent test failure of Delta between anchors"Priyank Maheshwari1-5/+7
2024-08-16[k6] Fix teardown script shutting down all containersdanielhanrahan1-8/+2
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
2024-08-16Merge "[k6] Remove incorrect passthrough rates"Lee Anjella Macabuhay2-14/+8
2024-08-16Fix intermittent test failure of Delta between anchorsdanielhanrahan1-5/+7
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
2024-08-16Get data job result from DMIleventecsanyi7-2/+235
- 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>
2024-08-16Merge "Rearrange CSIT test order"Sourabh Sourabh3-15/+38
2024-08-16Merge "Upgrading robotframework confluentkafka lib"Sourabh Sourabh3-4/+3
2024-08-16[k6] Remove incorrect passthrough ratesdanielhanrahan2-14/+8
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
2024-08-16Merge "Refactored Data Job interfaces"Priyank Maheshwari10-42/+47
2024-08-15Rearrange CSIT test ordermpriyank3-15/+38
- 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>
2024-08-15Integration test of registration with alternate IDdanielhanrahan1-0/+33
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
2024-08-15Fix syntax error on k6 testdanielhanrahan1-1/+1
Issue-ID: CPS-2357 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ibbd32282608ff707c8030d43df3cf85043242218
2024-08-14Upgrading robotframework confluentkafka libmpriyank3-4/+3
- 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>
2024-08-14Add moduleSetTag on k6 testemaclee2-2/+4
Issue-ID: CPS-2357 Change-Id: I21b980b1e36988d3b5daf07e4f6a14fe4309cd20 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-08-14Merge "K6 performance test for Alternate Id Read"Sourabh Sourabh4-1/+28
2024-08-14Merge "Support alternate Id interface for CPS-E-05 #2"Lee Anjella Macabuhay15-36/+181
2024-08-14Merge "CPS-NCMP: Slow cmHandle registration when we use moduleSetTag, ↵Lee Anjella Macabuhay11-55/+211
alternateId and dataProducerIdentifier"
2024-08-14new onap logothmsdt2-1/+1
Issue-ID: DOC-826 Change-Id: I7da5ba787243fb50a0f332e24825ae4967b5432c Signed-off-by: thmsdt <thomas.kulik@telekom.de>
2024-08-13CPS-NCMP: Slow cmHandle registration when we use moduleSetTag, alternateId ↵sourabh_sourabh11-55/+211
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>
2024-08-13Refactored Data Job interfacesleventecsanyi10-42/+47
-modified writejob & status endpoints Issue-ID: CPS-2360 Change-Id: I87647f59493886593825f5175c6ed708e55b3e30 Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-08-12K6 performance test for Alternate Id Readseanbeirne4-1/+28
Issue-Id: CPS-2279 Change-Id: Iade53a85afb183c0df259c5e7fc12fa0f6986218 Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-08-12Support alternate Id interface for CPS-E-05 #2seanbeirne15-36/+181
- Supports Alternate Ids for getResourceDataForCmHandle Issue-Id: CPS-2279 Change-Id: I1f145308cec5b545fab2d5c96efbc00fc3a110f4 Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-08-12Fix CSIT build failurempriyank2-3/+4
- 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>
2024-08-08Merge "Refactoring of CPS Delta APIs"Priyank Maheshwari4-13/+16
2024-08-07Merge "Cm Subscriptions Docs"Sourabh Sourabh5-2/+187
2024-08-07Refactoring of CPS Delta APIsArpit Singh4-13/+16
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>
2024-08-06Merge "Handle null NcmpOut event"Lee Anjella Macabuhay3-16/+40
2024-08-06Handle null NcmpOut eventmpriyank3-16/+40
- 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>
2024-08-06Remove dmi stub from CPS repoegernug23-1126/+0
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>
2024-08-06Cm Subscriptions Docsmpriyank5-2/+187
- 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>
2024-08-02Updating CM Data Notification Event Schemasourabh_sourabh4-36/+9
- 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>
2024-08-01Merge "Handle duplicate targets NcmpOut event"Lee Anjella Macabuhay3-21/+17
2024-08-01Update OpenAPI Policy ExecutorToineSiebelink1-12/+0
- 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>
2024-08-01Merge "Openapi specs update"Daniel Hanrahan4-8/+4
2024-08-01Openapi specs updatempriyank4-8/+4
- 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>
2024-08-01XML content support on add list elementRudrangi Anupriya13-47/+78
Issue-ID: CPS-2287 Change-Id: Ibb7ffb66ccbb03703266132c6d5c2eade0e7cb4a Signed-off-by: Rudrangi Anupriya <ra00745022@techmahindra.com>
2024-08-01Merge "Fix DMI host/port and clean up Postman collection"Sourabh Sourabh2-179/+6
2024-07-31Merge "Refactor OpenAPI Policy Executor"Sourabh Sourabh8-77/+249
2024-07-31Refactor OpenAPI Policy ExecutorToineSiebelink8-77/+249
- 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>
2024-07-31Handle duplicate targets NcmpOut eventmpriyank3-21/+17
- 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>
2024-07-31Effect changes on scheduled tasks (don't want scheduled tasks to be monitored)sourabh_sourabh6-102/+187
- 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>
2024-07-31Merge "Add k6 for legacy async batch passthrough read operation"Daniel Hanrahan5-6/+91
2024-07-31Add k6 for legacy async batch passthrough read operationhalil.cakal5-6/+91
- 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>