Skip to content

Commit 7203cee

Browse files
Fix Source Only Snapshot REST Test Failure (#50456)
We are matching on the exact number of shards in this test, but may run into snapshotting more than the single index created in it due to auto-created indices like `.watcher`. Fixed by making the test only take a snapshot of the single index used by this test. Closes #50450
1 parent 322db64 commit 7203cee

File tree

1 file changed

+2
-0
lines changed
  • x-pack/plugin/src/test/resources/rest-api-spec/test/snapshot

1 file changed

+2
-0
lines changed

x-pack/plugin/src/test/resources/rest-api-spec/test/snapshot/10_basic.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ setup:
3939
repository: test_repo_restore_1
4040
snapshot: test_snapshot
4141
wait_for_completion: true
42+
body: |
43+
{ "indices": "test_index" }
4244
4345
- match: { snapshot.snapshot: test_snapshot }
4446
- match: { snapshot.state : SUCCESS }

0 commit comments

Comments
 (0)