From fb997701d03980039c1eae1e56bc1248886f5113 Mon Sep 17 00:00:00 2001 From: Kostas Krikellas <131142368+kkrik-es@users.noreply.github.com> Date: Wed, 26 Feb 2025 13:57:52 +0200 Subject: [PATCH] [TEST] Remove flaky checks on snapshot shard stats (#123458) * Update 10_basic.yml * Update muted-tests.yml * Update 10_basic.yml (cherry picked from commit 4269c732d93ba16b70924a971a6f76b9a515c98b) # Conflicts: # muted-tests.yml --- muted-tests.yml | 4 +--- .../resources/rest-api-spec/test/snapshot/10_basic.yml | 10 ++++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/muted-tests.yml b/muted-tests.yml index 910bc8ee8a3d5..50696ba778a98 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -462,6 +462,4 @@ tests: - class: org.elasticsearch.analysis.common.CommonAnalysisClientYamlTestSuiteIT method: test {yaml=analysis-common/40_token_filters/stemmer_override file access} issue: https://github.com/elastic/elasticsearch/issues/121625 -- class: org.elasticsearch.xpack.test.rest.XPackRestIT - method: test {p0=snapshot/10_basic/Failed to snapshot indices with synthetic source} - issue: https://github.com/elastic/elasticsearch/issues/120332 + diff --git a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/snapshot/10_basic.yml b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/snapshot/10_basic.yml index 9ba0b5e4088af..5e167e5a4dded 100644 --- a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/snapshot/10_basic.yml +++ b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/snapshot/10_basic.yml @@ -115,7 +115,10 @@ setup: snapshot: test_snapshot_2 wait_for_completion: true body: | - { "indices": "test_synthetic" } + { + "indices": "test_synthetic", + "include_global_state": false + } - match: { snapshot.snapshot: test_snapshot_2 } - match: { snapshot.state : PARTIAL } @@ -132,7 +135,10 @@ setup: snapshot: test_snapshot_3 wait_for_completion: true body: | - { "indices": "test_*" } + { + "indices": "test_*", + "include_global_state": false + } - match: { snapshot.snapshot: test_snapshot_3 } - match: { snapshot.state : PARTIAL }