Fix snapshot_restore_exception in Docs Tests (#46852) (#46870)

We should only snapshot the index we're going to
restore in the next step. Otherwise, we will
potentially not get the correct response or
fail restoring outright due to internal indices
getting created concurrently when running against
the x-pack distribution.

Closes #46844
This commit is contained in:
Armin Braun 2019-09-19 16:05:51 +02:00 committed by GitHub
parent 4a9943a906
commit b32031ee03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ PUT /_snapshot/my_repository
# snapshot the index
PUT /_snapshot/my_repository/snap_1?wait_for_completion=true
{"indices": "index1"}
# delete the index
DELETE index1