Fix test by removing unecessary mTLS (#109324)

fixes: #108774
This commit is contained in:
Jake Landis 2024-06-10 10:52:21 -05:00 committed by GitHub
parent a9bc30d66e
commit 6dbcd7908a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View file

@ -5,9 +5,6 @@ tests:
- class: "org.elasticsearch.cluster.coordination.CoordinatorVotingConfigurationTests" - class: "org.elasticsearch.cluster.coordination.CoordinatorVotingConfigurationTests"
issue: "https://github.com/elastic/elasticsearch/issues/108729" issue: "https://github.com/elastic/elasticsearch/issues/108729"
method: "testClusterUUIDLogging" method: "testClusterUUIDLogging"
- class: "org.elasticsearch.xpack.core.ssl.SSLConfigurationReloaderTests"
issue: "https://github.com/elastic/elasticsearch/issues/108774"
method: "testReloadingKeyStore"
- class: "org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT" - class: "org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT"
issue: "https://github.com/elastic/elasticsearch/issues/108808" issue: "https://github.com/elastic/elasticsearch/issues/108808"
method: "test {k8s-metrics.MetricsWithAggs}" method: "test {k8s-metrics.MetricsWithAggs}"

View file

@ -130,7 +130,7 @@ public class SSLConfigurationReloaderTests extends ESTestCase {
// Load HTTPClient only once. Client uses the same store as a truststore // Load HTTPClient only once. Client uses the same store as a truststore
try (CloseableHttpClient client = getSSLClient(keystorePath, "testnode")) { try (CloseableHttpClient client = getSSLClient(keystorePath, "testnode")) {
final Consumer<SSLContext> keyMaterialPreChecks = (context) -> { final Consumer<SSLContext> keyMaterialPreChecks = (context) -> {
try (MockWebServer server = new MockWebServer(context, true)) { try (MockWebServer server = new MockWebServer(context, false)) {
server.enqueue(new MockResponse().setResponseCode(200).setBody("body")); server.enqueue(new MockResponse().setResponseCode(200).setBody("body"));
server.start(); server.start();
privilegedConnect(() -> client.execute(new HttpGet("https://localhost:" + server.getPort())).close()); privilegedConnect(() -> client.execute(new HttpGet("https://localhost:" + server.getPort())).close());