Implement PATCH for ProvMnS interface with bug fixes 10/142410/7
authorseanbeirne <sean.beirne@est.tech>
Tue, 11 Nov 2025 15:50:01 +0000 (15:50 +0000)
committerseanbeirne <sean.beirne@est.tech>
Thu, 13 Nov 2025 08:59:50 +0000 (08:59 +0000)
commit6d17c07706cc3cd5a34709a68c4068596b48c7e2
tree28fdf8bdf84e8335f9155e1ab9e764ea81443032
parentf9c2a2806b97970e3f19a368582293479b6d4807
Implement PATCH for ProvMnS interface with bug fixes

-Implement PATCH endpoint with error handling
-Missing # attribute update operation; will come in later patch
-Fixes error return bug where all errors defaulted to 500
-Fixes get call to dmi in put operation
-Moved Resource to body in fowarding

Issue-ID: CPS-2704
Change-Id: I06bf643b155410a24774c5af9d6016c2d70a2219
Signed-off-by: seanbeirne <sean.beirne@est.tech>
14 files changed:
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/ProvMnS.java
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/ProvMnsController.java
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/provmns/ErrorResponseBuilder.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/data/policyexecutor/CreateOperationDetails.java [moved from cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/data/policyexecutor/OperationDetails.java with 84% similarity]
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/data/policyexecutor/PatchOperationsDetails.java [new file with mode: 0644]
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/data/policyexecutor/PolicyExecutor.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/dmi/DmiRestClient.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/provmns/ParametersBuilder.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/data/policyexecutor/PolicyExecutorSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/dmi/DmiRestClientIntegrationSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/provmns/ParameterMapperSpec.groovy [new file with mode: 0644]
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/provmns/ParametersBuilderSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/provmns/ProvMnSRestApiSpec.groovy