Make Response Timeout Configurable in WebClient Configuration 37/139937/3
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Thu, 16 Jan 2025 13:00:18 +0000 (13:00 +0000)
committersourabh_sourabh <sourabh.sourabh@est.tech>
Thu, 16 Jan 2025 16:11:18 +0000 (16:11 +0000)
commit05580253e6d2c7c997aead716a93ee5e7f6db0d9
treeef0279fe75983ae53e842f57f0c184958924d5aa
parent856619ceb02f533ec7c5dff9a67ab17ef780276c
Make Response Timeout Configurable in WebClient Configuration

- Added responseTimeoutInSeconds property in the ServiceConfig class to allow dynamic configuration of the timeout.
- Updated WebClientConfiguration to read the responseTimeoutInSeconds from ServiceConfig and set it in the HttpClient.

Issue-ID: CPS-2565
Change-Id: I096688319c55f0342b524511883ec0d33806b9b7
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
cps-application/src/main/resources/application.yml
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/config/ServiceConfig.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/utils/http/WebClientConfiguration.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/config/DmiHttpClientConfigSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/config/PolicyExecutorHttpClientConfigSpec.groovy