Utility to convert restconf style path to cps path 75/141575/5
authormpriyank <priyank.maheshwari@est.tech>
Fri, 18 Jul 2025 13:38:15 +0000 (14:38 +0100)
committermpriyank <priyank.maheshwari@est.tech>
Mon, 28 Jul 2025 12:12:37 +0000 (13:12 +0100)
commitf9599479234516aaf737c9ca02910fe0120447d8
treec65713c3c1b2b3426ae960f1ec7a9fa0dfadc2cc
parent413d58752c643b09d806171dcc8cf12f6fc51d39
Utility to convert restconf style path to cps path

- resource-identifier in passthrough request has restconf style path for
  the devices
- when listening cm avc event on successfull write operation , ncmp has
  to update the cache, hence the path needs to be converted to cps path
  to reuse cps-core services
- added testware to support this
- actual usage of this utility is in the next patch
- for simplicity, utility supports just one key in the path

Issue-ID: CPS-2759
Change-Id: Id3b6e629d134abc0c6b21117f5f157da90248dee
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
cps-service/src/main/java/org/onap/cps/utils/RestConfStylePathToCpsPathUtil.java [new file with mode: 0644]
cps-service/src/test/groovy/org/onap/cps/utils/RestConfStylePathToCpsPathUtilSpec.groovy [new file with mode: 0644]