Skip to content

Commit 09222db

Browse files
committed
Explicitly cleanup test index with shared data path
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 #132223
1 parent 40f90fb commit 09222db

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,6 @@ tests:
363363
- class: org.elasticsearch.xpack.restart.FullClusterRestartIT
364364
method: testWatcherWithApiKey {cluster=UPGRADED}
365365
issue: https://github.com/elastic/elasticsearch/issues/131964
366-
- class: org.elasticsearch.test.rest.yaml.MDPYamlTestSuiteIT
367-
method: test {yaml=mdp/10_basic/Index using shared data path}
368-
issue: https://github.com/elastic/elasticsearch/issues/132223
369366
- class: org.elasticsearch.xpack.sql.qa.mixed_node.SqlCompatIT
370367
method: testNullsOrderWithMissingOrderSupportQueryingNewNode
371368
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,10 @@
2929
op_type: index
3030

3131
- match: { result: updated }
32+
33+
# every time the data_path setting is accessed this warning is generated, so we must cleanup explicitly to ignore it
34+
- do:
35+
warnings:
36+
- "[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."
37+
indices.delete:
38+
index: test_index

0 commit comments

Comments
 (0)