From c4d971f77e2877f01ef34b2e172c8388ee1b448a Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Thu, 9 May 2024 15:20:26 -0400 Subject: [PATCH] stratis_cli_cert: add test for pool debug get-metadata Signed-off-by: Bryan Gurney --- stratis_cli_cert.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/stratis_cli_cert.py b/stratis_cli_cert.py index eafccfa..16275a7 100644 --- a/stratis_cli_cert.py +++ b/stratis_cli_cert.py @@ -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.