Skip to content

Commit 023f73f

Browse files
authored
group dataset files (#118739) (#119045)
*.csv files used for creating data and *.csv-spec used to define test scenarios are blending in the resource directory. This change moves all *.csv files to data/*.csv so that it is easier to distinguish between data and specs. This allows to have a quicker overview of existing data when starting a new spec.
1 parent 5de28aa commit 023f73f

36 files changed

+2
-2
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/java/org/elasticsearch/xpack/esql/CsvTestsDataLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ private static void load(RestClient client, TestsDataset dataset, Logger logger,
362362
if (mapping == null) {
363363
throw new IllegalArgumentException("Cannot find resource " + mappingName);
364364
}
365-
final String dataName = "/" + dataset.dataFileName;
365+
final String dataName = "/data/" + dataset.dataFileName;
366366
URL data = CsvTestsDataLoader.class.getResource(dataName);
367367
if (data == null) {
368368
throw new IllegalArgumentException("Cannot find resource " + dataName);

0 commit comments

Comments
 (0)