Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,6 @@ tests:
- class: org.elasticsearch.compute.aggregation.TopIntAggregatorFunctionTests
method: testManyInitialManyPartialFinalRunnerThrowing
issue: https://github.com/elastic/elasticsearch/issues/130145
- class: org.elasticsearch.xpack.logsdb.patternedtext.PatternedTextFieldMapperTests
issue: https://github.com/elastic/elasticsearch/issues/130162
- class: org.elasticsearch.index.engine.ThreadPoolMergeExecutorServiceDiskSpaceTests
method: testUnavailableBudgetBlocksNewMergeTasksFromStartingExecution
issue: https://github.com/elastic/elasticsearch/issues/130205
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.elasticsearch.xcontent.XContentFactory;
import org.elasticsearch.xpack.logsdb.LogsDBPlugin;
import org.junit.AssumptionViolatedException;
import org.junit.Before;

import java.io.IOException;
import java.util.Collection;
Expand Down Expand Up @@ -72,6 +73,11 @@ protected void assertExistsQuery(MappedFieldType fieldType, Query query, LuceneD
assertNoFieldNamesField(fields);
}

@Before
public void setup() {
assumeTrue("Only when patterned_text feature flag is enabled", PatternedTextFieldMapper.PATTERNED_TEXT_MAPPER.isEnabled());
}

public void testExistsStandardSource() throws IOException {
assertExistsQuery(createMapperService(fieldMapping(b -> b.field("type", "patterned_text"))));
}
Expand Down