summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/mountpoint-registrar/provider/src/test
diff options
context:
space:
mode:
authorRavi Pendurty <ravi.pendurty@highstreet-technologies.com>2021-01-13 17:45:52 +0100
committerRavi Pendurty <ravi.pendurty@highstreet-technologies.com>2021-01-13 17:46:21 +0100
commit6e45a54cf77e2473cc441ba587483eedff838dd8 (patch)
tree7355744a66614a0811113ee6a43a423e68257fe3 /sdnr/wt/mountpoint-registrar/provider/src/test
parentbddf529bb1eaf3c5974a026c03a74d6b8cc442ba (diff)
support of HTTP proxy to connect to DMAAP
support of HTTP proxy to connect to DMAAP Issue-ID: SDNC-1454 Signed-off-by: Ravi Pendurty <ravi.pendurty@highstreet-technologies.com> Change-Id: I850cbb2d26e65acfd5e75191998c930aefda366a Signed-off-by: Ravi Pendurty <ravi.pendurty@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wt/mountpoint-registrar/provider/src/test')
-rw-r--r--sdnr/wt/mountpoint-registrar/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/test/PNFRegistrationConfigTest.java6
-rw-r--r--sdnr/wt/mountpoint-registrar/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/test/TestFaultConfig.java6
2 files changed, 12 insertions, 0 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 87a70d795..d3f4a13d6 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
@@ -46,6 +46,9 @@ public class PNFRegistrationConfigTest {
+ "fetchPause=5000\n"
+ "jersey.config.client.readTimeout=25000\n"
+ "jersey.config.client.connectTimeout=25000\n"
+ + "jersey.config.client.proxy.uri=http://http-proxy\n"
+ + "jersey.config.client.proxy.username=proxy-user\n"
+ + "jersey.config.client.proxy.password=proxy-password\n"
+ "";
// @formatter:on
private ConfigurationFileRepresentation cfg;
@@ -72,6 +75,9 @@ public class PNFRegistrationConfigTest {
assertEquals("password", pnfCfg.getPassword());
assertEquals("25000", pnfCfg.getClientReadTimeout());
assertEquals("25000", pnfCfg.getClientConnectTimeout());
+ assertEquals("http://http-proxy", pnfCfg.getHTTPProxyURI());
+ assertEquals("proxy-user", pnfCfg.getHTTPProxyUsername());
+ assertEquals("proxy-password", pnfCfg.getHTTPProxyPassword());
} catch (IOException e) {
e.printStackTrace();
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 f44bebcee..422d24935 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
@@ -46,6 +46,9 @@ public class TestFaultConfig {
+ "fetchPause=5000\n"
+ "jersey.config.client.readTimeout=25000\n"
+ "jersey.config.client.connectTimeout=25000\n"
+ + "jersey.config.client.proxy.uri=http://http-proxy\n"
+ + "jersey.config.client.proxy.username=proxy-user\n"
+ + "jersey.config.client.proxy.password=proxy-password\n"
+ "\n"
+ "";
// @formatter:on
@@ -73,6 +76,9 @@ public class TestFaultConfig {
assertEquals("password", faultCfg.getPassword());
assertEquals("25000", faultCfg.getClientReadTimeout());
assertEquals("25000", faultCfg.getClientConnectTimeout());
+ assertEquals("http://http-proxy", faultCfg.getHTTPProxyURI());
+ assertEquals("proxy-user", faultCfg.getHTTPProxyUsername());
+ assertEquals("proxy-password", faultCfg.getHTTPProxyPassword());
} catch (IOException e) {
e.printStackTrace();