Browse Source

[TEST] Remove flaky checks on snapshot shard stats (#123458) (#123488)

* Update 10_basic.yml

* Update muted-tests.yml

* Update 10_basic.yml

(cherry picked from commit 4269c732d93ba16b70924a971a6f76b9a515c98b)

# Conflicts:
#	muted-tests.yml
Kostas Krikellas 7 tháng trước cách đây
mục cha
commit
aab99ea6cc

+ 1 - 3
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
+

+ 8 - 2
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 }