File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
server/src/test/java/org/elasticsearch/ingest Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -495,9 +495,6 @@ tests:
495495- class : org.elasticsearch.xpack.esql.inference.bulk.BulkInferenceExecutorTests
496496 method : testSuccessfulExecution
497497 issue : https://github.com/elastic/elasticsearch/issues/130306
498- - class : org.elasticsearch.ingest.PipelineFactoryTests
499- method : testCreateUnsupportedFieldAccessPattern
500- issue : https://github.com/elastic/elasticsearch/issues/130422
501498- class : org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT
502499 method : test {p0=msearch/20_typed_keys/Multisearch test with typed_keys parameter for sampler and significant terms}
503500 issue : https://github.com/elastic/elasticsearch/issues/130472
Original file line number Diff line number Diff line change 2424import static org .hamcrest .Matchers .equalTo ;
2525import static org .hamcrest .Matchers .is ;
2626import static org .hamcrest .Matchers .nullValue ;
27+ import static org .junit .Assume .assumeTrue ;
2728import static org .mockito .Mockito .mock ;
2829
2930public class PipelineFactoryTests extends ESTestCase {
@@ -221,12 +222,15 @@ public void testCreateWithPipelineIgnoreFailure() throws Exception {
221222 }
222223
223224 public void testCreateUnsupportedFieldAccessPattern () throws Exception {
225+ assumeTrue ("Test is only valid if the logs stream feature flag is enabled" , DataStream .LOGS_STREAM_FEATURE_FLAG );
224226 Map <String , Object > processorConfig = new HashMap <>();
225227 processorConfig .put (ConfigurationUtils .TAG_KEY , "test-processor" );
226228 Map <String , Object > pipelineConfig = new HashMap <>();
227229 pipelineConfig .put (Pipeline .DESCRIPTION_KEY , "_description" );
228230 pipelineConfig .put (Pipeline .VERSION_KEY , versionString );
229- pipelineConfig .put (Pipeline .FIELD_ACCESS_PATTERN , "random" );
231+ if (DataStream .LOGS_STREAM_FEATURE_FLAG ) {
232+ pipelineConfig .put (Pipeline .FIELD_ACCESS_PATTERN , "random" );
233+ }
230234 if (metadata != null ) {
231235 pipelineConfig .put (Pipeline .META_KEY , metadata );
232236 }
You can’t perform that action at this time.
0 commit comments