diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-05-29 14:41:19 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-05-29 14:41:19 +0200 |
commit | 7126ed717d01abad07e86150665f00154db27770 (patch) | |
tree | 2b083164bdbea2a4bae61174bae17d9892e687a5 /eaaf_core_utils/src/test/java/at | |
parent | 9b6167a5f1fd3385b344b3a8c3b5d27d033d99d4 (diff) | |
download | EAAF-Components-7126ed717d01abad07e86150665f00154db27770.tar.gz EAAF-Components-7126ed717d01abad07e86150665f00154db27770.tar.bz2 EAAF-Components-7126ed717d01abad07e86150665f00154db27770.zip |
update HttpClientBuilder factory to add 'ServiceUnavailableRetryStrategy' injection
fix broken jUnit test
Diffstat (limited to 'eaaf_core_utils/src/test/java/at')
-rw-r--r-- | eaaf_core_utils/src/test/java/at/gv/egiz/eaaf/core/test/http/HttpClientFactoryTest.java | 5 |
1 files changed, 4 insertions, 1 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 63ac38a3..c35ef604 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 @@ -553,13 +553,16 @@ public class HttpClientFactoryTest { keyStoreFactory.buildNewKeyStore(clientConfig.getKeyStoreConfig()); X509Certificate clientRootCert = (X509Certificate) sslClientKeyStore.getFirst() .getCertificateChain(clientConfig.getSslKeyAlias())[1]; - + X509Certificate clientEeCert = (X509Certificate) sslClientKeyStore.getFirst() + .getCertificateChain(clientConfig.getSslKeyAlias())[0]; + final String localhost = InetAddress.getByName("localhost").getCanonicalHostName(); final HeldCertificate localhostCertificate = new HeldCertificate.Builder() .addSubjectAlternativeName(localhost) .build(); final HandshakeCertificates serverCertificates = new HandshakeCertificates.Builder() .addTrustedCertificate(clientRootCert) + .addTrustedCertificate(clientEeCert) .heldCertificate(localhostCertificate) .build(); mockWebServer = new MockWebServer(); |