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:
David Turner 2023-10-11 07:03:31 +01:00 committed by GitHub
parent f35c3b49b5
commit b5843e4b98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 443 additions and 409 deletions

View file

@ -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