Skip to content

Commit

Permalink
Fix Source Only Snapshot REST Test Failure (#50456)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
original-brownbear authored Dec 23, 2019
1 parent 322db64 commit 7203cee
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ setup:
repository: test_repo_restore_1
snapshot: test_snapshot
wait_for_completion: true
body: |
{ "indices": "test_index" }
- match: { snapshot.snapshot: test_snapshot }
- match: { snapshot.state : SUCCESS }
Expand Down

0 comments on commit 7203cee

Please sign in to comment.