Skip to content

Commit

Permalink
stratis_cli_cert: Add test for snapshot cancel-revert
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Gurney <[email protected]>
  • Loading branch information
bgurney-rh committed Sep 5, 2024
1 parent 7554cf9 commit 6a102c0
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions stratis_cli_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,52 @@ def test_filesystem_snapshot(self):
True,
)

@skip(_skip_condition(1))
def test_filesystem_snapshot_cancel_revert(self):
"""
Test canceling a revert of a filesystem snapshot.
"""
pool_name = make_test_pool(StratisCliCertify.DISKS[0:1])
filesystem_name = make_test_filesystem(pool_name)
snapshot_name = fs_n()
self._unittest_command(
[
_STRATIS_CLI,
"filesystem",
"snapshot",
pool_name,
filesystem_name,
snapshot_name,
],
0,
True,
True,
)
self._unittest_command(
[
_STRATIS_CLI,
"filesystem",
"schedule-revert",
pool_name,
snapshot_name,
],
0,
True,
True,
)
self._unittest_command(
[
_STRATIS_CLI,
"filesystem",
"cancel-revert",
pool_name,
snapshot_name,
],
0,
True,
True,
)

@skip(_skip_condition(1))
def test_filesystem_snapshot_destroy_filesystem(self):
"""
Expand Down

0 comments on commit 6a102c0

Please sign in to comment.