Skip to content

Commit

Permalink
stratis_cli_cert: add test for pool debug get-metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Gurney <[email protected]>
  • Loading branch information
bgurney-rh committed May 9, 2024
1 parent 405d5e8 commit c4d971f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions stratis_cli_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,19 @@ def test_pool_list_not_empty_permissions(self):
make_test_pool(StratisCliCertify.DISKS[0:1])
self._test_permissions([_STRATIS_CLI, "pool", "list"], False, False)

@skip(_skip_condition(1))
def test_pool_debug_get_metadata(self):
"""
Test running "stratis pool debug get-metadata" on a pool.
"""
pool_name = make_test_pool(StratisCliCertify.DISKS[0:1])
self._unittest_command(
[_STRATIS_CLI, "pool", "debug", "get-metadata", f"--name={pool_name}"],
0,
True,
False,
)

def test_blockdev_list(self):
"""
Test listing a blockdev.
Expand Down

0 comments on commit c4d971f

Please sign in to comment.