diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-04-03 11:51:58 +0200 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-04-03 17:22:22 +0200 |
commit | 2c41d11de03c07739ae395683c9d834ab282821c (patch) | |
tree | a2259956aa2fc83af2c2c6df50dacb89f1aee563 /sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java | |
parent | 0aae60b7882b816a6a7e32d4a91339935d61ff6b (diff) |
Allow SDC client to connect to SDC in HTTP
I've added a toggle which allow to connect to SDC using HTTP and not
only HTTPS.
By default, we're still on HTTPS.
Issue-ID: SDC-2721
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I48046c19aed7d81f9e03a30b3b081b9d8dd1495e
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.java | 1 |
1 files changed, 1 insertions, 0 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 20228e0..d3a6ffb 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 @@ -128,6 +128,7 @@ public class SdcConnectorClientTest { IConfiguration conf = Mockito.mock(IConfiguration.class); when(conf.getUser()).thenReturn("user"); when(conf.getPassword()).thenReturn("password"); + when(conf.isUseHttpsWithSDC()).thenReturn(true); when(conf.activateServerTLSAuth()).thenReturn(false); SdcConnectorClient client = new SdcConnectorClient(); |