Skip to content

Commit 65146eb

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent a5d2807 commit 65146eb

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed

x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/GenerativeForkIT.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@
1212
import org.elasticsearch.test.TestClustersThreadFilter;
1313
import org.elasticsearch.test.cluster.ElasticsearchCluster;
1414
import org.elasticsearch.xpack.esql.CsvSpecReader;
15-
import org.elasticsearch.xpack.esql.qa.rest.EsqlSpecTestCase;
1615
import org.elasticsearch.xpack.esql.qa.rest.generative.GenerativeForkRestTest;
1716
import org.junit.ClassRule;
1817

19-
import java.io.IOException;
20-
2118
@ThreadLeakFilters(filters = TestClustersThreadFilter.class)
2219
public class GenerativeForkIT extends GenerativeForkRestTest {
2320
@ClassRule
@@ -28,7 +25,15 @@ protected String getTestRestCluster() {
2825
return cluster.getHttpAddresses();
2926
}
3027

31-
public GenerativeForkIT(String fileName, String groupName, String testName, Integer lineNumber, CsvSpecReader.CsvTestCase testCase, String instructions, Mode mode) {
28+
public GenerativeForkIT(
29+
String fileName,
30+
String groupName,
31+
String testName,
32+
Integer lineNumber,
33+
CsvSpecReader.CsvTestCase testCase,
34+
String instructions,
35+
Mode mode
36+
) {
3237
super(fileName, groupName, testName, lineNumber, testCase, instructions, mode);
3338
}
3439

@@ -43,4 +48,3 @@ protected boolean supportsSourceFieldMapping() {
4348
return cluster.getNumNodes() == 1;
4449
}
4550
}
46-

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

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,16 @@
1515

1616
import static org.elasticsearch.xpack.esql.action.EsqlCapabilities.Cap.*;
1717

18-
public abstract class GenerativeForkRestTest extends EsqlSpecTestCase {
19-
public GenerativeForkRestTest(String fileName, String groupName, String testName, Integer lineNumber, CsvSpecReader.CsvTestCase testCase, String instructions, Mode mode) {
18+
public abstract class GenerativeForkRestTest extends EsqlSpecTestCase {
19+
public GenerativeForkRestTest(
20+
String fileName,
21+
String groupName,
22+
String testName,
23+
Integer lineNumber,
24+
CsvSpecReader.CsvTestCase testCase,
25+
String instructions,
26+
Mode mode
27+
) {
2028
super(fileName, groupName, testName, lineNumber, testCase, instructions, mode);
2129
}
2230

@@ -36,18 +44,15 @@ protected void shouldSkipTest(String testName) throws IOException {
3644
);
3745

3846
assumeFalse(
39-
"Tests using INSIST are not supported for now",
40-
testCase.requiredCapabilities.contains(UNMAPPED_FIELDS.capabilityName())
47+
"Tests using INSIST are not supported for now",
48+
testCase.requiredCapabilities.contains(UNMAPPED_FIELDS.capabilityName())
4149
);
4250

4351
assumeFalse(
44-
"Tests using implicit_casting_date_and_date_nanos are not supported for now",
45-
testCase.requiredCapabilities.contains(IMPLICIT_CASTING_DATE_AND_DATE_NANOS.capabilityName())
52+
"Tests using implicit_casting_date_and_date_nanos are not supported for now",
53+
testCase.requiredCapabilities.contains(IMPLICIT_CASTING_DATE_AND_DATE_NANOS.capabilityName())
4654
);
4755

48-
assumeTrue(
49-
"Cluster needs to support FORK",
50-
hasCapabilities(client(), List.of(FORK_V7.capabilityName()))
51-
);
56+
assumeTrue("Cluster needs to support FORK", hasCapabilities(client(), List.of(FORK_V7.capabilityName())));
5257
}
5358
}

0 commit comments

Comments
 (0)