aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2023-05-08 18:17:03 +0100
committerefiacor <fiachra.corcoran@est.tech>2023-06-13 18:56:19 +0100
commitac4baf28eab0a4412810f02237b981933c985e95 (patch)
treec9fc3c3a6c35e5481b261ff2acc912bdf708fa12 /sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java
parent289c0ceb2b3b0565ae19014a4cfa06a1bf10ccc3 (diff)
[SDC-DISTRO-CLIENT] SSL config updates
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: Iacaf5072241e56bf72db13acef0f533814ae8989 Issue-ID: SDC-4476
Diffstat (limited to 'sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java')
-rw-r--r--sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java b/sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java
index e449c4c..b2c1128 100644
--- a/sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java
+++ b/sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java
@@ -87,7 +87,10 @@ public class SdcConnectorClientTest {
when(conf.getUser()).thenReturn("user");
when(conf.getPassword()).thenReturn("password");
when(conf.isUseHttpsWithSDC()).thenReturn(true);
-
+ when(conf.getKeyStorePath()).thenReturn("src/test/resources/sdc-user-keystore.jks");
+ when(conf.getKeyStorePassword()).thenReturn("zreRDCnNLsZ7");
+ when(conf.getTrustStorePath()).thenReturn("src/test/resources/sdc-user-truststore.jks");
+ when(conf.getTrustStorePassword()).thenReturn("changeit");
when(conf.activateServerTLSAuth()).thenReturn(false);
final HttpSdcClient httpClient = new HttpSdcClient(conf);
SdcConnectorClient client = new SdcConnectorClient(conf, httpClient);