diff options
author | Ravi Pendurty <ravi.pendurty@highstreet-technologies.com> | 2020-06-16 11:23:52 +0200 |
---|---|---|
committer | Ravi Pendurty <ravi.pendurty@highstreet-technologies.com> | 2020-06-17 12:37:08 +0200 |
commit | 23c27ddcd79913d11eac16eb42c5a43899de97a1 (patch) | |
tree | db86e2f344935a4db3c249f3f81aad4599b56a1f /sdnr/wt/mountpoint-registrar/provider/src/test | |
parent | ede647655880a66fc0e201523297afa90c2bb549 (diff) |
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 <ravi.pendurty@highstreet-technologies.com>
Change-Id: I7e60c7b30c0378dfb09b16160714e742162b1790
Signed-off-by: Ravi Pendurty <ravi.pendurty@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wt/mountpoint-registrar/provider/src/test')
2 files changed, 8 insertions, 1 deletions
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 |