[Cps Path Parser] Move NCMP-specific logic to NCMP 84/138884/3
authordanielhanrahan <daniel.hanrahan@est.tech>
Thu, 29 Aug 2024 19:00:40 +0000 (20:00 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Wed, 4 Sep 2024 16:21:40 +0000 (17:21 +0100)
commit0f225618ab5a5d918c6b1d58afcad17c99d7aad8
tree1d1092a596a7150044b39567137f89f570c98111
parentd196932c3ed2edbc3f0a0ce0fb097b40715ad0bb
[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
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/CmHandleQueryServiceImpl.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/CmHandleQueryServiceImplSpec.groovy
cps-path-parser/src/main/java/org/onap/cps/cpspath/parser/CpsPathBuilder.java
cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathQuerySpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/cps/QueryServiceIntegrationSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/RestApiSpec.groovy