aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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>
2024-07-31Merge "Uplift liquibase-core dependency"Toine Siebelink2-1/+2
2024-07-30Fix DMI host/port and clean up Postman collectiondanielhanrahan2-179/+6
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
2024-07-30Fix ordering issue in QueryServiceIntegrationSpecdanielhanrahan1-1/+1
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
2024-07-30Uplift liquibase-core dependencympriyank2-1/+2
- 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>
2024-07-26Merge "Delete Subscription method"Priyank Maheshwari12-54/+273
2024-07-26Merge "[k6] Fix response code check for passthrough write test"Daniel Hanrahan1-1/+1
2024-07-26Delete Subscription methodemaclee12-54/+273
Issue-ID: CPS-2253 Change-Id: I30768dc431e13d0bac0dcc7b9b16cb0854f06702 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-07-26Merge "Added missing authorization header to DataJobService"Sourabh Sourabh6-19/+37
2024-07-26Added missing authorization header to DataJobServiceleventecsanyi6-19/+37
- added auth header to the interface & updated testware Issue-ID: CPS-2330 Change-Id: I091fc5c3c3fa323024f55055129cc7240732479a Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-07-25Integration test to validate DMI service URLsourabh_sourabh2-53/+65
- 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>
2024-07-25[k6] Fix response code check for passthrough write testdanielhanrahan1-1/+1
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
2024-07-25Get data job status from DMI Pluginleventecsanyi7-0/+226
- 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>
2024-07-25Release notes update for CPS-2306 and CPS-2319Arpit Singh1-0/+2
Issue-ID: CPS-2319 Change-Id: I2ab58437c133521fdce10ade61b16e34cfdec0bc Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
2024-07-25Integration test for the writeDataJobleventecsanyi12-63/+234
- added Stub controller - created integration test for writeDataJob Issue-ID: CPS-2236 Change-Id: I067a11dc5bfe629d50128cf303b2a81abc75a348 Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-07-25Merge "Fix "Create a node" and "Add List Elements" APIs response code"Priyank Maheshwari2-2/+1
2024-07-25Merge "Fix NCMP CSITs by using new TLS certificates"Priyank Maheshwari6-6/+79
2024-07-25Merge "Fix dataProducerId in SubJobWriteRequest"Sourabh Sourabh2-10/+10
2024-07-24Fix NCMP CSITs by using new TLS certificatesdanielhanrahan6-6/+79
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
2024-07-24Fix timing issue for data sync CSITdanielhanrahan2-5/+6
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
2024-07-24Fix dataProducerId in SubJobWriteRequestleventecsanyi2-10/+10
Issue-ID: CPS-2322 Change-Id: I7bfdfd05ffacb085ac056707d477f348cb5bd64f Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-07-24Update response message for data validation failureArpit Singh2-9/+5
- 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>
2024-07-24Fix "Create a node" and "Add List Elements" APIs response codeArpit Singh2-2/+1
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>
2024-07-24Disable NCMP CSITsmpriyank1-5/+5
- 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>
2024-07-19Merge "Integration test to validate DMI service URL"Daniel Hanrahan3-1/+56
2024-07-18[k6] Measure NCMP overhead for passthrough operationsdanielhanrahan2-13/+30
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
2024-07-18Integration test to validate DMI service URLsourabh_sourabh3-1/+56
- 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>
2024-07-17Merge "CPS NCMP: Add state tags to cps.ncmp.lcm.events.publish metrics"Daniel Hanrahan2-9/+101
2024-07-16Merge "XML content support on replace a node with descendants"Daniel Hanrahan11-60/+112