Skip to content

Commit

Permalink
Fix test by removing unecessary mTLS
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelandis committed Jun 3, 2024
1 parent 5c711d0 commit da43174
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ tests:
- class: "org.elasticsearch.cluster.coordination.CoordinatorVotingConfigurationTests"
issue: "https://github.com/elastic/elasticsearch/issues/108729"
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"
issue: "https://github.com/elastic/elasticsearch/issues/108808"
method: "test {k8s-metrics.MetricsWithAggs}"
Expand Down
3 changes: 2 additions & 1 deletion x-pack/plugin/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,6 @@ tasks.register('testAutomatonPatterns', Test) {

tasks.named('test').configure {
exclude '**/AutomatonPatternsTests.class'
dependsOn testAutomatonPatterns //to ensure testAutomatonPatterns are run with the test task
}

tasks.named("check").configure { dependsOn "testAutomatonPatterns" }
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void testReloadingKeyStore() throws Exception {
// Load HTTPClient only once. Client uses the same store as a truststore
try (CloseableHttpClient client = getSSLClient(keystorePath, "testnode")) {
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.start();
privilegedConnect(() -> client.execute(new HttpGet("https://localhost:" + server.getPort())).close());
Expand Down

0 comments on commit da43174

Please sign in to comment.