Encoding the special characters in the resource identifier 88/141888/6 master
authormpriyank <priyank.maheshwari@est.tech>
Thu, 21 Aug 2025 13:01:32 +0000 (14:01 +0100)
committermpriyank <priyank.maheshwari@est.tech>
Thu, 4 Sep 2025 09:57:13 +0000 (10:57 +0100)
commitbb1e1efeec5b7877fb8ccb33bcf16b6701a5731f
tree747a208d5c7ad52ff93da39bfc264ec669d0a066
parentad1a5e8c2aa004074ee59b2754a69e56220f3755
Encoding the special characters in the resource identifier

- during passthrough requests, if the resource identifier had special
  characters then the resource was not returned by the sdnc
- fix is to do proper encoding when the passthrough read operation is
  made
- Introduced a utility to convert the resource-id to encoded resource id
  and then make the same request using resttemplate
- Added testware for the same
- Inspected code for the changed files and fixed the issues

Issue-ID: CPS-2939
Change-Id: I940156e09640c36a090afd2518080f619c93b440
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
dmi-service/src/main/java/org/onap/cps/ncmp/dmi/service/client/RestTemplateAddressType.java [new file with mode: 0644]
dmi-service/src/main/java/org/onap/cps/ncmp/dmi/service/client/SdncRestconfClient.java
dmi-service/src/main/java/org/onap/cps/ncmp/dmi/service/operation/ResourceIdentifierEncoder.java [new file with mode: 0644]
dmi-service/src/main/java/org/onap/cps/ncmp/dmi/service/operation/SdncOperations.java
dmi-service/src/test/groovy/org/onap/cps/ncmp/dmi/service/operation/ResourceIdentifierEncoderSpec.groovy [new file with mode: 0644]