diff --git a/muted-tests.yml b/muted-tests.yml index 70a239844d732..5bf56a1e436d8 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -213,9 +213,6 @@ tests: - class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT method: test {csv-spec:string.Url_encode_component tests with table reads} issue: https://github.com/elastic/elasticsearch/issues/140615 -- class: org.elasticsearch.xpack.inference.integration.AuthorizationTaskExecutorIT - method: testCreatesChatCompletion_AndThenCreatesTextEmbedding - issue: https://github.com/elastic/elasticsearch/issues/138012 - class: org.elasticsearch.xpack.esql.qa.multi_node.EsqlSpecIT method: test {csv-spec:string.Url_encode_component tests with table reads} issue: https://github.com/elastic/elasticsearch/issues/140621 @@ -225,9 +222,6 @@ tests: - class: org.elasticsearch.xpack.esql.qa.single_node.EsqlSpecIT method: test {csv-spec:string.Url_encode_component tests with table reads} issue: https://github.com/elastic/elasticsearch/issues/140621 -- class: org.elasticsearch.xpack.inference.integration.AuthorizationTaskExecutorIT - method: testCreatesEisChatCompletion_DoesNotRemoveEndpointWhenNoLongerAuthorized - issue: https://github.com/elastic/elasticsearch/issues/140802 - class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT method: test {csv-spec:spatial.ConvertFromStringParseError} issue: https://github.com/elastic/elasticsearch/issues/139213 @@ -387,12 +381,6 @@ tests: - class: org.elasticsearch.cluster.routing.allocation.allocator.NotPreferredAllocationRebalancingIT method: testAllocatorDoesNotMoveShardsToNotPreferredNode issue: https://github.com/elastic/elasticsearch/issues/143831 -- class: org.elasticsearch.xpack.inference.integration.AuthorizationTaskExecutorIT - method: testEndpointGetsUpdated_GivenFingerprintChanges_FromNull - issue: https://github.com/elastic/elasticsearch/issues/143845 -- class: org.elasticsearch.xpack.inference.integration.AuthorizationTaskExecutorIT - method: testCreatesEisChatCompletionEndpoint - issue: https://github.com/elastic/elasticsearch/issues/140849 - class: org.elasticsearch.xpack.esql.datasources.spi.StoragePathTests method: testFileUriFunctionOnUnix issue: https://github.com/elastic/elasticsearch/issues/143979 diff --git a/x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/integration/AuthorizationTaskExecutorIT.java b/x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/integration/AuthorizationTaskExecutorIT.java index bca842ebf07fd..ba6e73b6ee926 100644 --- a/x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/integration/AuthorizationTaskExecutorIT.java +++ b/x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/integration/AuthorizationTaskExecutorIT.java @@ -27,8 +27,6 @@ import org.elasticsearch.test.http.MockWebServer; import org.elasticsearch.xcontent.XContentBuilder; import org.elasticsearch.xcontent.json.JsonXContent; -import org.elasticsearch.xpack.inference.InferenceIndex; -import org.elasticsearch.xpack.inference.InferenceSecretsIndex; import org.elasticsearch.xpack.inference.LocalStateInferencePlugin; import org.elasticsearch.xpack.inference.registry.ModelRegistry; import org.elasticsearch.xpack.inference.services.elastic.ElasticInferenceService; @@ -90,10 +88,12 @@ public static void initClass() throws IOException { } @Before - public void createComponents() { + public void createComponents() throws Exception { modelRegistry = node().injector().getInstance(ModelRegistry.class); authorizationTaskExecutor = node().injector().getInstance(AuthorizationTaskExecutor.class); - ensureGreen(InferenceIndex.INDEX_PATTERN, InferenceSecretsIndex.INDEX_PATTERN); + + // Wait for inference indices to be created + assertBusy(() -> getEisEndpoints()); } @After