Fix response code returned by Get delta between 2 anchors API 68/142368/9
authorArpit Singh <AS00745003@techmahindra.com>
Fri, 14 Nov 2025 12:24:29 +0000 (17:54 +0530)
committerArpit Singh <AS00745003@techmahindra.com>
Thu, 4 Dec 2025 04:42:36 +0000 (10:12 +0530)
commit9f6a02b5e78f4e1159672d71b4cd9ff5c0df20eb
tree925e5c107421aef2cf68157439f1b71c3c5e84a4
parent8f81f31334692012dc3bf94fedfde2e74e837dee
Fix response code returned by Get delta between 2 anchors API

- Get delta between 2 anchors returned a 200 OK response in case an
  invalid xpath is provided with the request.
- The patch fixes that and now the API returns 400 BAD RERQUEST when an
  invalid xpath is used

Issue-ID: CPS-3041
Change-Id: Ic73003fdcf8e2f67cdf715f8da7641016ba61258
Signed-off-by: Arpit Singh <AS00745003@techmahindra.com>
cps-service/src/main/java/org/onap/cps/impl/CpsDeltaServiceImpl.java
cps-service/src/test/groovy/org/onap/cps/impl/CpsDeltaServiceImplSpec.groovy