Fix Source Only Snapshot REST Test Failure (#50456) (#50459)

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
This commit is contained in:
Armin Braun 2019-12-23 12:24:08 +01:00 committed by GitHub
parent 9a56290ea6
commit cec02da0ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ setup:
repository: test_repo_restore_1 repository: test_repo_restore_1
snapshot: test_snapshot snapshot: test_snapshot
wait_for_completion: true wait_for_completion: true
body: |
{ "indices": "test_index" }
- match: { snapshot.snapshot: test_snapshot } - match: { snapshot.snapshot: test_snapshot }
- match: { snapshot.state : SUCCESS } - match: { snapshot.state : SUCCESS }