Policy Executor: handle errors 82/138982/6
authorToineSiebelink <toine.siebelink@est.tech>
Thu, 19 Sep 2024 16:23:58 +0000 (17:23 +0100)
committerToine Siebelink <toine.siebelink@est.tech>
Wed, 25 Sep 2024 08:18:46 +0000 (08:18 +0000)
commit2bcccff7e2891f708cedc08cdbf969025d63019e
treec0300990499012dd7b87d62d3f5c4cc78d068e41
parent39e4eef51e44b73569fe82e214afab04edc5bba0
Policy Executor: handle errors

- configurable default answer
- apply default answer upon non 2xx response
- delayed default webclient read timeout
- add custom timeout method with original read timeout in seconds
- apply default answer upon timeout
- add integration test with short timeout error scenario

Issue-ID: CPS-2412
Change-Id: I62527a27e426c2f01fda2182ebd2513242c29ac1
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
cps-application/src/main/resources/application.yml
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/config/PolicyExecutorHttpClientConfig.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/data/policyexecutor/PolicyExecutor.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/config/PolicyExecutorHttpClientConfigSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/data/policyexecutor/PolicyExecutorConfigurationSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/data/policyexecutor/PolicyExecutorSpec.groovy
cps-ncmp-service/src/test/resources/application.yml
integration-test/src/test/groovy/org/onap/cps/integration/base/PolicyDispatcher.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/ncmp/PolicyExecutorIntegrationSpec.groovy
integration-test/src/test/resources/application.yml