Add Integration Test to cover DmiRestClient Fluent lambda method calls 96/142396/3
authorToineSiebelink <toine.siebelink@est.tech>
Fri, 7 Nov 2025 13:29:36 +0000 (13:29 +0000)
committerToine Siebelink <toine.siebelink@est.tech>
Mon, 10 Nov 2025 17:08:45 +0000 (17:08 +0000)
commitc096af7fdb993dadfcf6604c64b92b26a3833ce0
treebed60942c02c0af06b73a09f0f188d6d6daa2c65
parentd32e708e011f1748f195472267b48fe7e7357798
Add Integration Test to cover DmiRestClient Fluent lambda method calls

- Tests to cover WebClient method calls that cannot be covered in unit test
  .headers(..)
  .OnErrorMap()
- refactored error handling and removed impossible (legacy() exception handling
- refactored 2 data Job specifically (named) methods to single generic data get method
- removed all unit test no longer needed due to integration test for DMI Web Client

Issue-ID: CPS-2702
Change-Id: I431df50189c10f230ed0459a73a98fda17384070
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
cps-ncmp-service/pom.xml
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/datajobs/DataJobResultServiceImpl.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/datajobs/DataJobStatusServiceImpl.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/dmi/DmiRestClient.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/datajobs/DataJobResultServiceImplSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/datajobs/DataJobStatusServiceImplSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/dmi/DmiRestClientIntegrationSpec.groovy [new file with mode: 0644]
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/dmi/DmiRestClientSpec.groovy