Browse Source

unmute testDoesNotResolveClosedIndex (#133115)

Ievgen Degtiarenko 1 month ago
parent
commit
e6c2814c6e

+ 0 - 3
muted-tests.yml

@@ -543,9 +543,6 @@ tests:
 - class: org.elasticsearch.xpack.search.AsyncSearchErrorTraceIT
   method: testAsyncSearchFailingQueryErrorTraceDefault
   issue: https://github.com/elastic/elasticsearch/issues/133010
-- class: org.elasticsearch.xpack.esql.plugin.IndexResolutionIT
-  method: testDoesNotResolveClosedIndex
-  issue: https://github.com/elastic/elasticsearch/issues/133011
 - class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
   method: test {p0=search/510_range_query_out_of_bounds/Test range query for float field with out of bounds lower limit}
   issue: https://github.com/elastic/elasticsearch/issues/133012

+ 5 - 0
x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/plugin/IndexResolutionIT.java

@@ -19,6 +19,7 @@ import org.elasticsearch.common.util.CollectionUtils;
 import org.elasticsearch.datastreams.DataStreamsPlugin;
 import org.elasticsearch.index.IndexNotFoundException;
 import org.elasticsearch.plugins.Plugin;
+import org.elasticsearch.test.junit.annotations.TestIssueLogging;
 import org.elasticsearch.xpack.esql.VerificationException;
 import org.elasticsearch.xpack.esql.action.AbstractEsqlIntegTestCase;
 import org.elasticsearch.xpack.esql.action.EsqlQueryResponse;
@@ -109,6 +110,10 @@ public class IndexResolutionIT extends AbstractEsqlIntegTestCase {
         );
     }
 
+    @TestIssueLogging(
+        value = "org.elasticsearch.cluster.metadata.MetadataIndexStateService:DEBUG",
+        issueUrl = "https://github.com/elastic/elasticsearch/issues/133011"
+    )
     public void testDoesNotResolveClosedIndex() {
         assertAcked(client().admin().indices().prepareCreate("index-1"));
         indexRandom(true, "index-1", 10);