Add pattern_text feature flag to logsdb yaml tests (#130399)
Patterned text yaml tests in logsdb plugin are failing as they assume the presence of the pattern_text type. Enable the feature flag for the tests.
This commit is contained in:
parent
73d6063c3b
commit
b38d5454ad
|
@ -45,6 +45,7 @@ public class MapperFeatures implements FeatureSpecification {
|
||||||
static final NodeFeature IVF_FORMAT_CLUSTER_FEATURE = new NodeFeature("mapper.ivf_format_cluster_feature");
|
static final NodeFeature IVF_FORMAT_CLUSTER_FEATURE = new NodeFeature("mapper.ivf_format_cluster_feature");
|
||||||
static final NodeFeature IVF_NESTED_SUPPORT = new NodeFeature("mapper.ivf_nested_support");
|
static final NodeFeature IVF_NESTED_SUPPORT = new NodeFeature("mapper.ivf_nested_support");
|
||||||
static final NodeFeature SEARCH_LOAD_PER_SHARD = new NodeFeature("mapper.search_load_per_shard");
|
static final NodeFeature SEARCH_LOAD_PER_SHARD = new NodeFeature("mapper.search_load_per_shard");
|
||||||
|
static final NodeFeature PATTERNED_TEXT = new NodeFeature("mapper.patterned_text");
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<NodeFeature> getTestFeatures() {
|
public Set<NodeFeature> getTestFeatures() {
|
||||||
|
@ -76,7 +77,8 @@ public class MapperFeatures implements FeatureSpecification {
|
||||||
IVF_FORMAT_CLUSTER_FEATURE,
|
IVF_FORMAT_CLUSTER_FEATURE,
|
||||||
IVF_NESTED_SUPPORT,
|
IVF_NESTED_SUPPORT,
|
||||||
SEARCH_LOAD_PER_SHARD,
|
SEARCH_LOAD_PER_SHARD,
|
||||||
SPARSE_VECTOR_INDEX_OPTIONS_FEATURE
|
SPARSE_VECTOR_INDEX_OPTIONS_FEATURE,
|
||||||
|
PATTERNED_TEXT
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,8 @@ public enum FeatureFlag {
|
||||||
DOC_VALUES_SKIPPER("es.doc_values_skipper_feature_flag_enabled=true", Version.fromString("8.18.1"), null),
|
DOC_VALUES_SKIPPER("es.doc_values_skipper_feature_flag_enabled=true", Version.fromString("8.18.1"), null),
|
||||||
USE_LUCENE101_POSTINGS_FORMAT("es.use_lucene101_postings_format_feature_flag_enabled=true", Version.fromString("9.1.0"), null),
|
USE_LUCENE101_POSTINGS_FORMAT("es.use_lucene101_postings_format_feature_flag_enabled=true", Version.fromString("9.1.0"), null),
|
||||||
IVF_FORMAT("es.ivf_format_feature_flag_enabled=true", Version.fromString("9.1.0"), null),
|
IVF_FORMAT("es.ivf_format_feature_flag_enabled=true", Version.fromString("9.1.0"), null),
|
||||||
LOGS_STREAM("es.logs_stream_feature_flag_enabled=true", Version.fromString("9.1.0"), null);
|
LOGS_STREAM("es.logs_stream_feature_flag_enabled=true", Version.fromString("9.1.0"), null),
|
||||||
|
PATTERNED_TEXT("es.patterned_text_feature_flag_enabled=true", Version.fromString("9.2.0"), null);
|
||||||
|
|
||||||
public final String systemProperty;
|
public final String systemProperty;
|
||||||
public final Version from;
|
public final Version from;
|
||||||
|
|
|
@ -34,6 +34,7 @@ public class LogsdbTestSuiteIT extends ESClientYamlSuiteTestCase {
|
||||||
.setting("xpack.license.self_generated.type", "trial")
|
.setting("xpack.license.self_generated.type", "trial")
|
||||||
.feature(FeatureFlag.DOC_VALUES_SKIPPER)
|
.feature(FeatureFlag.DOC_VALUES_SKIPPER)
|
||||||
.feature(FeatureFlag.USE_LUCENE101_POSTINGS_FORMAT)
|
.feature(FeatureFlag.USE_LUCENE101_POSTINGS_FORMAT)
|
||||||
|
.feature(FeatureFlag.PATTERNED_TEXT)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
public LogsdbTestSuiteIT(@Name("yaml") ClientYamlTestCandidate testCandidate) {
|
public LogsdbTestSuiteIT(@Name("yaml") ClientYamlTestCandidate testCandidate) {
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
setup:
|
setup:
|
||||||
|
- requires:
|
||||||
|
cluster_features: [ "mapper.patterned_text" ]
|
||||||
|
reason: "patterned_text mappings are used in this test"
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
indices.create:
|
indices.create:
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
setup:
|
||||||
|
- requires:
|
||||||
|
cluster_features: [ "mapper.patterned_text" ]
|
||||||
|
reason: "patterned_text mappings are used in this test"
|
||||||
|
|
||||||
|
---
|
||||||
simple:
|
simple:
|
||||||
- do:
|
- do:
|
||||||
indices.create:
|
indices.create:
|
||||||
|
|
Loading…
Reference in New Issue