summaryrefslogtreecommitdiffstats
path: root/sdc-distribution-ci
diff options
context:
space:
mode:
authorash74268 <ashwin.shyam.sharma@att.com>2021-06-21 12:50:56 -0500
committerash74268 <ashwin.shyam.sharma@att.com>2021-06-21 16:56:39 -0500
commit0d2173bdd1f5e834076d511b08282e7d99e4125a (patch)
tree1011e5b372b76bb7d242af5be27949b828edf6c5 /sdc-distribution-ci
parent55581623ef047759764dd7aeafa9e1986e927585 (diff)
SDC Distribution Client to support proxy config
Issue-ID: SDC-3613 Signed-off-by: ash74268 <ashwin.shyam.sharma@att.com> Change-Id: I4d66618db7f486200ad887f5d3adabb3ba55dce5
Diffstat (limited to 'sdc-distribution-ci')
-rw-r--r--sdc-distribution-ci/src/main/java/org/onap/test/core/config/DistributionClientConfig.java64
1 files changed, 59 insertions, 5 deletions
diff --git a/sdc-distribution-ci/src/main/java/org/onap/test/core/config/DistributionClientConfig.java b/sdc-distribution-ci/src/main/java/org/onap/test/core/config/DistributionClientConfig.java
index 8a02801..ad18969 100644
--- a/sdc-distribution-ci/src/main/java/org/onap/test/core/config/DistributionClientConfig.java
+++ b/sdc-distribution-ci/src/main/java/org/onap/test/core/config/DistributionClientConfig.java
@@ -24,7 +24,6 @@ import org.onap.sdc.api.consumer.IConfiguration;
import java.util.ArrayList;
import java.util.List;
-
public class DistributionClientConfig implements IConfiguration {
public static final String DEFAULT_ASDC_ADDRESS = "localhost:30206";
@@ -57,6 +56,11 @@ public class DistributionClientConfig implements IConfiguration {
private boolean useHttpsWithDmaap;
private boolean useHttpsWithSDC;
private List<String> msgBusAddress;
+ private String httpProxyHost;
+ private int httpProxyPort;
+ private String httpsProxyHost;
+ private int httpsProxyPort;
+ private boolean useSystemProxy;
public DistributionClientConfig(IConfiguration other) {
this.asdcAddress = other.getAsdcAddress();
@@ -72,6 +76,11 @@ public class DistributionClientConfig implements IConfiguration {
this.keyStorePassword = other.getKeyStorePassword();
this.activateServerTLSAuth = other.activateServerTLSAuth();
this.isFilterInEmptyResources = other.isFilterInEmptyResources();
+ this.httpProxyHost = other.getHttpProxyHost();
+ this.httpProxyPort = other.getHttpProxyPort();
+ this.httpsProxyHost = other.getHttpsProxyHost();
+ this.httpsProxyPort = other.getHttpsProxyPort();
+ this.useSystemProxy = other.isUseSystemProxy();
}
public DistributionClientConfig() {
@@ -313,8 +322,10 @@ public class DistributionClientConfig implements IConfiguration {
@Override
public String toString() {
- return "TestConfiguration [asdcAddress=" + asdcAddress + ", user=" + user + ", password=" + password + ", pollingInterval=" + pollingInterval + ", pollingTimeout=" + pollingTimeout + ", relevantArtifactTypes=" + relevantArtifactTypes
- + ", consumerGroup=" + consumerGroup + ", environmentName=" + environmentName + ", comsumerID=" + comsumerID + "]";
+ return "TestConfiguration [asdcAddress=" + asdcAddress + ", user=" + user + ", password=" + password
+ + ", pollingInterval=" + pollingInterval + ", pollingTimeout=" + pollingTimeout
+ + ", relevantArtifactTypes=" + relevantArtifactTypes + ", consumerGroup=" + consumerGroup
+ + ", environmentName=" + environmentName + ", comsumerID=" + comsumerID + "]";
}
@Override
@@ -322,7 +333,6 @@ public class DistributionClientConfig implements IConfiguration {
return isFilterInEmptyResources;
}
-
public void setFilterInEmptyResources(boolean isFilterInEmptyResources) {
this.isFilterInEmptyResources = isFilterInEmptyResources;
}
@@ -332,7 +342,6 @@ public class DistributionClientConfig implements IConfiguration {
return this.useHttpsWithDmaap;
}
-
public Boolean isUseHttpsWithSDC() {
return this.useHttpsWithSDC;
}
@@ -340,4 +349,49 @@ public class DistributionClientConfig implements IConfiguration {
public void setUseHttpsWithSDC(Boolean useHttpsWithSDC) {
this.useHttpsWithSDC = useHttpsWithSDC;
}
+
+ public void setHttpProxyHost(String httpProxyHost) {
+ this.httpProxyHost = httpProxyHost;
+ }
+
+ public void setHttpProxyPort(int httpProxyPort) {
+ this.httpProxyPort = httpProxyPort;
+ }
+
+ public void setHttpsProxyHost(String httpsProxyHost) {
+ this.httpsProxyHost = httpsProxyHost;
+ }
+
+ public void setHttpsProxyPort(int httpsProxyPort) {
+ this.httpsProxyPort = httpsProxyPort;
+ }
+
+ public void setUseSystemProxy(boolean useSystemProxy) {
+ this.useSystemProxy = useSystemProxy;
+ }
+
+ @Override
+ public String getHttpProxyHost() {
+ return httpProxyHost;
+ }
+
+ @Override
+ public int getHttpProxyPort() {
+ return httpProxyPort;
+ }
+
+ @Override
+ public String getHttpsProxyHost() {
+ return httpsProxyHost;
+ }
+
+ @Override
+ public int getHttpsProxyPort() {
+ return httpsProxyPort;
+ }
+
+ @Override
+ public Boolean isUseSystemProxy() {
+ return useSystemProxy;
+ }
}