Skip to content

Commit dd4b4a4

Browse files
Add test
1 parent 92348b0 commit dd4b4a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

x-pack/plugin/eql/src/test/java/org/elasticsearch/xpack/eql/planner/QueryTranslatorFailTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,11 @@ public void testSequenceWithTooLittleQueriesWithUntil() throws Exception {
267267
plan("sequence [any where true] [any where true] until [any where true]");
268268
}
269269

270+
public void testSequenceWithOnlyMissingEventsAndUntil() throws Exception {
271+
String s = errorParsing("sequence with maxspan=1h ![process where true] until [process where true]");
272+
assertEquals("1:2: A sequence requires a minimum of 2 queries (excluding UNTIL clause), found [1]", s);
273+
}
274+
270275
public void testSequenceWithIncorrectOption() throws Exception {
271276
EqlClientException e = expectThrows(EqlClientException.class, () -> plan("sequence [any where true] with repeat=123"));
272277
String msg = e.getMessage();

0 commit comments

Comments
 (0)