Skip to content

Commit 795781b

Browse files
authored
Explicitly cleanup test index with shared data path (elastic#136048)
This commit adds explicit cleanup of a test index using a shared data path. Otherwise the rest test infra tries to clean it up, which checks the data_path setting, and emits a warning which fails the test. closes elastic#132223
1 parent 27c2591 commit 795781b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,6 @@ tests:
211211
- class: org.elasticsearch.xpack.restart.FullClusterRestartIT
212212
method: testWatcherWithApiKey {cluster=UPGRADED}
213213
issue: https://github.com/elastic/elasticsearch/issues/131964
214-
- class: org.elasticsearch.test.rest.yaml.MDPYamlTestSuiteIT
215-
method: test {yaml=mdp/10_basic/Index using shared data path}
216-
issue: https://github.com/elastic/elasticsearch/issues/132223
217214
- class: org.elasticsearch.xpack.sql.qa.mixed_node.SqlCompatIT
218215
method: testNullsOrderWithMissingOrderSupportQueryingNewNode
219216
issue: https://github.com/elastic/elasticsearch/issues/132249

qa/multi-data-path/src/yamlRestTest/resources/rest-api-spec/test/mdp/10_basic.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"Index using shared data path":
33

44
- requires:
5-
test_runner_features: ["warnings"]
5+
test_runner_features: ["warnings", "allowed_warnings"]
66

77
- do:
88
warnings:
@@ -29,3 +29,9 @@
2929
op_type: index
3030

3131
- match: { result: updated }
32+
33+
- do:
34+
allowed_warnings:
35+
- "[index.data_path] setting was deprecated in Elasticsearch and will be removed in a future release. See the deprecation documentation for the next major version."
36+
indices.delete:
37+
index: test_index

0 commit comments

Comments
 (0)