From 23c27ddcd79913d11eac16eb42c5a43899de97a1 Mon Sep 17 00:00:00 2001 From: Ravi Pendurty Date: Tue, 16 Jun 2020 11:23:52 +0200 Subject: client side readtimeout support clientside readtimeout support for mountpoint-registrar using the updated dmaap client library Issue-ID: SDNC-1246 Signed-off-by: Ravi Pendurty Change-Id: I7e60c7b30c0378dfb09b16160714e742162b1790 Signed-off-by: Ravi Pendurty --- .../sdnr/wt/mountpointregistrar/test/PNFRegistrationConfigTest.java | 5 ++++- .../features/sdnr/wt/mountpointregistrar/test/TestFaultConfig.java | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'sdnr/wt/mountpoint-registrar/provider/src/test') diff --git a/sdnr/wt/mountpoint-registrar/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/test/PNFRegistrationConfigTest.java b/sdnr/wt/mountpoint-registrar/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/test/PNFRegistrationConfigTest.java index 1049bf902..39488f887 100644 --- a/sdnr/wt/mountpoint-registrar/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/test/PNFRegistrationConfigTest.java +++ b/sdnr/wt/mountpoint-registrar/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/test/PNFRegistrationConfigTest.java @@ -47,6 +47,8 @@ public class PNFRegistrationConfigTest { "timeout=20000\n" + "limit=10000\n" + "fetchPause=5000\n" + + "jersey.config.client.readTimeout=25000\n" + + "jersey.config.client.connectTimeout=25000\n" + ""; private ConfigurationFileRepresentation cfg; @@ -71,7 +73,8 @@ public class PNFRegistrationConfigTest { assertEquals("http", pnfCfg.getProtocol()); assertEquals("username", pnfCfg.getUsername()); assertEquals("password", pnfCfg.getPassword()); - + assertEquals("25000", pnfCfg.getClientReadTimeout()); + assertEquals("25000", pnfCfg.getClientConnectTimeout()); } catch (IOException e) { // TODO Auto-generated catch block diff --git a/sdnr/wt/mountpoint-registrar/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/test/TestFaultConfig.java b/sdnr/wt/mountpoint-registrar/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/test/TestFaultConfig.java index 73cd5aaba..e07b9757c 100644 --- a/sdnr/wt/mountpoint-registrar/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/test/TestFaultConfig.java +++ b/sdnr/wt/mountpoint-registrar/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/test/TestFaultConfig.java @@ -47,6 +47,8 @@ public class TestFaultConfig { "timeout=20000\n" + "limit=10000\n" + "fetchPause=5000\n" + + "jersey.config.client.readTimeout=25000\n" + + "jersey.config.client.connectTimeout=25000\n" + "\n" + ""; @@ -72,6 +74,8 @@ public class TestFaultConfig { assertEquals("http", faultCfg.getProtocol()); assertEquals("username", faultCfg.getUsername()); assertEquals("password", faultCfg.getPassword()); + assertEquals("25000", faultCfg.getClientReadTimeout()); + assertEquals("25000", faultCfg.getClientConnectTimeout()); } catch (IOException e) { // TODO Auto-generated catch block -- cgit 1.2.3-korg