Forwarding list parameters : attributes and field consistently 53/142453/1
authorToineSiebelink <toine.siebelink@est.tech>
Mon, 17 Nov 2025 16:01:33 +0000 (16:01 +0000)
committerToineSiebelink <toine.siebelink@est.tech>
Mon, 17 Nov 2025 16:24:35 +0000 (16:24 +0000)
commit5e789af42450e9684d5ab61cec9ec9928d6d4721
treefe082c5167e12a0f8aeeba28d05edd9b14889dba
parent0b335e9c6be2311cf36fe38d5409cdec424b9605
Forwarding list parameters : attributes and field consistently

- Treat 'fields' same as 'attributes' i.e. support empty value
- Refactored code (removed unnecessary null-check)
- Add test for all scenarios in Controller for best readability

Issue-ID: CPS-3046
Change-Id: I3d3e59f9b736a74036d73f55af5c6349010aa1e1
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/ProvMnsController.java
cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/controller/ProvMnsControllerSpec.groovy
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/provmns/ParametersBuilder.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/utils/http/RestServiceUrlTemplateBuilder.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/provmns/ParametersBuilderSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/utils/http/RestServiceUrlTemplateBuilderSpec.groovy