Skip to content

Commit

Permalink
stratisd_cert: Add test for deleting origin filesystem
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Gurney <[email protected]>
  • Loading branch information
bgurney-rh committed Dec 21, 2023
1 parent d532570 commit 453b798
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions stratisd_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,27 @@ def test_filesystem_snapshot(self):
StratisDbus.fs_snapshot(pool_path, fs_path, snapshot_name), dbus.UInt16(0)
)

@skip(_skip_condition(1))
def test_filesystem_snapshot_destroy_filesystem(self):
"""
Test snapshotting a filesystem, then destroying the original filesystem.
"""
pool_name = p_n()
pool_path, _ = make_test_pool(pool_name, StratisCertify.DISKS[0:1])

fs_name = fs_n()
fs_path = make_test_filesystem(pool_path, fs_name)

snapshot_name = fs_n()

self._unittest_command(
StratisDbus.fs_snapshot(pool_path, fs_path, snapshot_name), dbus.UInt16(0)
)

self._unittest_command(
StratisDbus.fs_destroy(pool_name, fs_name), dbus.UInt16(0)
)

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

0 comments on commit 453b798

Please sign in to comment.