summaryrefslogtreecommitdiff
path: root/eaaf_core_utils/src/test
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2020-05-05 09:54:03 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2020-05-05 09:54:03 +0200
commitf7941c2004a157023f1f89ef2d3c9de75548d73e (patch)
treea666a775c7629ee43af5b21ef8448388bb2dc22e /eaaf_core_utils/src/test
parent72c60055809b0f7994c4e78c9ba54a3828506a46 (diff)
downloadEAAF-Components-f7941c2004a157023f1f89ef2d3c9de75548d73e.tar.gz
EAAF-Components-f7941c2004a157023f1f89ef2d3c9de75548d73e.tar.bz2
EAAF-Components-f7941c2004a157023f1f89ef2d3c9de75548d73e.zip
add empty core-configuration for HSM-Facade into HttpClientFactoryTest
Diffstat (limited to 'eaaf_core_utils/src/test')
-rw-r--r--eaaf_core_utils/src/test/java/at/gv/egiz/eaaf/core/test/http/HttpClientFactoryTest.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/eaaf_core_utils/src/test/java/at/gv/egiz/eaaf/core/test/http/HttpClientFactoryTest.java b/eaaf_core_utils/src/test/java/at/gv/egiz/eaaf/core/test/http/HttpClientFactoryTest.java
index 03a92b46..84c0b12c 100644
--- a/eaaf_core_utils/src/test/java/at/gv/egiz/eaaf/core/test/http/HttpClientFactoryTest.java
+++ b/eaaf_core_utils/src/test/java/at/gv/egiz/eaaf/core/test/http/HttpClientFactoryTest.java
@@ -28,6 +28,7 @@ import at.gv.egiz.eaaf.core.impl.credential.EaafKeyStoreFactory;
import at.gv.egiz.eaaf.core.impl.data.Pair;
import at.gv.egiz.eaaf.core.impl.http.HttpClientConfiguration;
import at.gv.egiz.eaaf.core.impl.http.IHttpClientFactory;
+import at.gv.egiz.eaaf.core.test.dummy.DummyAuthConfigMap;
import okhttp3.HttpUrl;
import okhttp3.mockwebserver.MockResponse;
import okhttp3.mockwebserver.MockWebServer;
@@ -41,7 +42,8 @@ public class HttpClientFactoryTest {
@Autowired private EaafKeyStoreFactory keyStoreFactory;
@Autowired private IHttpClientFactory httpClientFactory;
-
+ @Autowired private DummyAuthConfigMap config;
+
private MockWebServer mockWebServer = null;
private HttpUrl mockServerUrl;
@@ -51,7 +53,12 @@ public class HttpClientFactoryTest {
*/
@Before
public void setup() {
-
+ config.putConfigValue(EaafKeyStoreFactory.CONFIG_PROP_HSM_FACADE_HOST, "");
+ config.putConfigValue(EaafKeyStoreFactory.CONFIG_PROP_HSM_FACADE_PORT, "");
+ config.putConfigValue(EaafKeyStoreFactory.CONFIG_PROP_HSM_FACADE_SSLTRUST, "");
+ config.putConfigValue(EaafKeyStoreFactory.CONFIG_PROP_HSM_FACADE_CLIENT_USERNAME, "");
+ config.putConfigValue(EaafKeyStoreFactory.CONFIG_PROP_HSM_FACADE_CLIENT_PASSWORD, "");
+
}
/**