From 64362c1d19038e7f679b05ab9f6da495ca5da5e3 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) --- muted-tests.yml | 3 --- .../resources/rest-api-spec/test/snapshot/10_basic.yml | 10 ++++++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/muted-tests.yml b/muted-tests.yml index 506d4a1c3539d..1e71d982c0211 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -170,9 +170,6 @@ tests: - class: org.elasticsearch.oldrepos.OldRepositoryAccessIT method: testOldSourceOnlyRepoAccess issue: https://github.com/elastic/elasticsearch/issues/120080 -- 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 - class: org.elasticsearch.xpack.ccr.FollowIndexSecurityIT method: testCleanShardFollowTaskAfterDeleteFollower issue: https://github.com/elastic/elasticsearch/issues/120339 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 ec73081cd424b..917645d9e1d47 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 @@ -113,7 +113,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 } @@ -130,7 +133,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 }