Skip to content

Commit d3da5f5

Browse files
authored
ESQL: Only run tests for versions with mv_warn (elastic#128331)
Skip some tests that expect a warning for encountering multivalued fields against versions that don't emit this warnings. Closes elastic#128224
1 parent eb33a07 commit d3da5f5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/string.csv-spec

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2304,6 +2304,8 @@ foo ( bar
23042304
;
23052305

23062306
mvStringEquals
2307+
required_capability: mv_warn
2308+
23072309
FROM mv_text
23082310
| WHERE message == "Connected to 10.1.0.1"
23092311
| KEEP @timestamp, message
@@ -2316,6 +2318,8 @@ warning:Line 2:9: java.lang.IllegalArgumentException: single-value function enco
23162318
;
23172319

23182320
mvStringEqualsLongString
2321+
required_capability: mv_warn
2322+
23192323
FROM mv_text
23202324
| WHERE message == "More than one hundred characters long so it isn't indexed by the sub keyword field with ignore_above:100"
23212325
| KEEP @timestamp, message
@@ -2328,6 +2332,8 @@ warning:Line 2:9: java.lang.IllegalArgumentException: single-value function enco
23282332
;
23292333

23302334
mvStringNotEquals
2335+
required_capability: mv_warn
2336+
23312337
FROM mv_text
23322338
| WHERE message != "Connected to 10.1.0.2"
23332339
| KEEP @timestamp, message
@@ -2342,6 +2348,8 @@ warning:Line 2:9: java.lang.IllegalArgumentException: single-value function enco
23422348
;
23432349

23442350
mvStringNotEqualsFound
2351+
required_capability: mv_warn
2352+
23452353
FROM mv_text
23462354
| WHERE message != "Connected to 10.1.0.1"
23472355
| KEEP @timestamp, message
@@ -2354,6 +2362,8 @@ warning:Line 2:9: java.lang.IllegalArgumentException: single-value function enco
23542362
;
23552363

23562364
mvStringNotEqualsLong
2365+
required_capability: mv_warn
2366+
23572367
FROM mv_text
23582368
| WHERE message != "More than one hundred characters long so it isn't indexed by the sub keyword field with ignore_above:100"
23592369
| KEEP @timestamp, message

0 commit comments

Comments
 (0)