Fix Replace a Node API behaviour handling List items 71/142271/20
authorArpit Singh <AS00745003@techmahindra.com>
Wed, 3 Dec 2025 11:47:59 +0000 (17:17 +0530)
committerArpit Singh <AS00745003@techmahindra.com>
Thu, 4 Dec 2025 10:24:44 +0000 (15:54 +0530)
commit5bc03e1ccbab09cce49d8f50d067d8dab53bb2fb
treebc6ee7ad6188e4f910ca5653486485fc78cd680a
parent956463f29b42830ad4a31f6b31c3e49ab5057f7a
Fix Replace a Node API behaviour handling List items

Jira - [CPS-2708] Enhance Replace A Node with List Items
Documentation - https://lf-onap.atlassian.net/wiki/x/gIDMAQ

- Previously, Replace a node endpoint accepted list items and returned a
  200 OK response, but the data was not actually replaced when cross
  checked.
- This patch fixes the issue of phantom replace operations and ensures
  that the API correctly handles list items.

Issue-ID:CPS-2708
Change-Id: Ibc9bbb88ccbb07302355321c6d5c2eade0e7e5fa
Signed-off-by: Arpit Singh <AS00745003@techmahindra.com>
cps-rest/docs/openapi/cpsData.yml
cps-service/src/main/java/org/onap/cps/impl/CpsDataServiceImpl.java
cps-service/src/test/groovy/org/onap/cps/impl/CpsDataServiceImplSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/cps/DataServiceIntegrationSpec.groovy