Skip to content

Commit 2c95a66

Browse files
committed
Add capabilities guard
1 parent 1dd6669 commit 2c95a66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/RestEsqlTestCase.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,8 @@ public void testErrorMessageForInvalidIntervalParams() throws IOException {
688688
}
689689

690690
public void testArrayValuesAllowedInValueParams() throws IOException {
691+
assumeTrue("multivalues for params", EsqlCapabilities.Cap.QUERY_PARAMS_MULTI_VALUES.isEnabled());
692+
691693
Map<String, Object> responseMap = runEsql(
692694
RequestObjectBuilder.jsonBuilder()
693695
.query("row a = ?n1 | eval s = ?n2")
@@ -708,6 +710,8 @@ public void testArrayValuesAllowedInValueParams() throws IOException {
708710
}
709711

710712
public void testErrorMessageForArrayValuesInNonValueParams() throws IOException {
713+
assumeTrue("multivalues for params", EsqlCapabilities.Cap.QUERY_PARAMS_MULTI_VALUES.isEnabled());
714+
711715
ResponseException re = expectThrows(
712716
ResponseException.class,
713717
() -> runEsql(

0 commit comments

Comments
 (0)