diff options
Diffstat (limited to 'sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpClientFactoryTest.java')
-rw-r--r-- | sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpClientFactoryTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpClientFactoryTest.java b/sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpClientFactoryTest.java index 2292fc4..3ee2d02 100644 --- a/sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpClientFactoryTest.java +++ b/sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpClientFactoryTest.java @@ -41,8 +41,10 @@ class HttpClientFactoryTest { TestConfiguration config = spy(new TestConfiguration()); HttpClientFactory httpClientFactory = new HttpClientFactory(config); when(config.activateServerTLSAuth()).thenReturn(true); - when(config.getKeyStorePath()).thenReturn("src/test/resources/sdc-client.jks"); - when(config.getKeyStorePassword()).thenReturn("Aa123456"); + when(config.getKeyStorePath()).thenReturn("src/test/resources/sdc-user-keystore.jks"); + when(config.getKeyStorePassword()).thenReturn("zreRDCnNLsZ7"); + when(config.getTrustStorePath()).thenReturn("src/test/resources/sdc-user-truststore.jks"); + when(config.getTrustStorePassword()).thenReturn("changeit"); Pair<String, CloseableHttpClient> client = httpClientFactory.createInstance(); SSLConnectionSocketFactory sslsf = spy(SSLConnectionSocketFactory.getSocketFactory()); CredentialsProvider credsProvider = new BasicCredentialsProvider(); |