summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/mountpoint-registrar/provider/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wt/mountpoint-registrar/provider/src/test/java')
-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();