Skip to content

Commit

Permalink
Remove references from InferenceProvider from tests, remove current i…
Browse files Browse the repository at this point in the history
…nference tests to be redone
  • Loading branch information
carlosdelest committed Feb 1, 2024
1 parent 3d0b537 commit dd0f2e9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 350 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.elasticsearch.index.IndexingPressure;
import org.elasticsearch.index.VersionType;
import org.elasticsearch.indices.EmptySystemIndices;
import org.elasticsearch.inference.InferenceProvider;
import org.elasticsearch.tasks.Task;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.MockUtils;
Expand Down Expand Up @@ -125,7 +124,8 @@ public boolean hasIndexAbstraction(String indexAbstraction, ClusterState state)
indexNameExpressionResolver,
new IndexingPressure(Settings.EMPTY),
EmptySystemIndices.INSTANCE,
new InferenceProvider.NoopInferenceProvider()
null,
null
) {
@Override
void executeBulk(
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import org.elasticsearch.index.IndexingPressure;
import org.elasticsearch.indices.EmptySystemIndices;
import org.elasticsearch.indices.TestIndexNameExpressionResolver;
import org.elasticsearch.inference.InferenceProvider;
import org.elasticsearch.ingest.IngestService;
import org.elasticsearch.tasks.Task;
import org.elasticsearch.test.ESTestCase;
Expand Down Expand Up @@ -137,7 +136,8 @@ class TestTransportBulkAction extends TransportBulkAction {
TestIndexNameExpressionResolver.newInstance(),
new IndexingPressure(SETTINGS),
EmptySystemIndices.INSTANCE,
new InferenceProvider.NoopInferenceProvider()
null,
null
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import org.elasticsearch.indices.EmptySystemIndices;
import org.elasticsearch.indices.SystemIndexDescriptorUtils;
import org.elasticsearch.indices.SystemIndices;
import org.elasticsearch.inference.InferenceProvider;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.VersionUtils;
import org.elasticsearch.test.index.IndexVersionUtils;
Expand Down Expand Up @@ -89,7 +88,8 @@ class TestTransportBulkAction extends TransportBulkAction {
new Resolver(),
new IndexingPressure(Settings.EMPTY),
EmptySystemIndices.INSTANCE,
new InferenceProvider.NoopInferenceProvider()
null,
null
);
}

Expand Down
Loading

0 comments on commit dd0f2e9

Please sign in to comment.