mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 01:22:26 -04:00
Encapsulate snapshots deletion process (#100617)
Introduces the `SnapshotsDeletion` class which encapsulates the process of deleting some collection of snapshots. In particular this class gives us somewhere to store various deletion-wide data which significantly reduces the length of some argument lists. Relates #100568
This commit is contained in:
parent
f35c3b49b5
commit
b5843e4b98
3 changed files with 443 additions and 409 deletions
|
@ -167,7 +167,7 @@ teardown:
|
|||
- match: {count: 3}
|
||||
|
||||
- do:
|
||||
catch: /cannot delete snapshot from a readonly repository/
|
||||
catch: /repository is readonly/
|
||||
snapshot.delete:
|
||||
repository: repository-url
|
||||
snapshot: snapshot-two
|
||||
|
@ -229,7 +229,7 @@ teardown:
|
|||
- match: {count: 3}
|
||||
|
||||
- do:
|
||||
catch: /cannot delete snapshot from a readonly repository/
|
||||
catch: /repository is readonly/
|
||||
snapshot.delete:
|
||||
repository: repository-file
|
||||
snapshot: snapshot-one
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue