From 6ff945e9da2ef6f5d26a02ecc5833ee34d52faeb Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Tue, 7 Jan 2025 12:31:38 -0500 Subject: [PATCH 1/3] stratis_cli_cert: Add test for integrity journal size Signed-off-by: Bryan Gurney --- stratis_cli_cert.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/stratis_cli_cert.py b/stratis_cli_cert.py index 3c10f70..64a3ddf 100644 --- a/stratis_cli_cert.py +++ b/stratis_cli_cert.py @@ -457,6 +457,26 @@ def test_pool_create_no_overprovision(self): True, ) + @skip(_skip_condition(1)) + def test_pool_create_integrity_journal_size(self): + """ + Test creating a pool with an integrity journal size. + """ + pool_name = p_n() + self._unittest_command( + [ + _STRATIS_CLI, + "pool", + "create", + pool_name, + "--journal-size=64MiB", + StratisCliCertify.DISKS[0], + ], + 0, + True, + True, + ) + @skip(_skip_condition(1)) def test_pool_list_not_empty(self): """ From 01b3376e145ca79e361289ebc50c8f7e410c64d9 Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Tue, 7 Jan 2025 14:21:48 -0500 Subject: [PATCH 2/3] stratis_cli_cert: Add test for integrity tag spec Signed-off-by: Bryan Gurney --- stratis_cli_cert.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/stratis_cli_cert.py b/stratis_cli_cert.py index 64a3ddf..043636c 100644 --- a/stratis_cli_cert.py +++ b/stratis_cli_cert.py @@ -477,6 +477,26 @@ def test_pool_create_integrity_journal_size(self): True, ) + @skip(_skip_condition(1)) + def test_pool_create_integrity_tag_spec(self): + """ + Test creating a pool with an integrity tag specification. + """ + pool_name = p_n() + self._unittest_command( + [ + _STRATIS_CLI, + "pool", + "create", + pool_name, + "--tag-spec=32b", + StratisCliCertify.DISKS[0], + ], + 0, + True, + True, + ) + @skip(_skip_condition(1)) def test_pool_list_not_empty(self): """ From b353b70cf40eaa37c014638c5cb058247b912769 Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Tue, 7 Jan 2025 14:26:11 -0500 Subject: [PATCH 3/3] stratis_cli_cert: Add test for integrity no-prealloc Signed-off-by: Bryan Gurney --- stratis_cli_cert.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/stratis_cli_cert.py b/stratis_cli_cert.py index 043636c..edf6b1f 100644 --- a/stratis_cli_cert.py +++ b/stratis_cli_cert.py @@ -497,6 +497,26 @@ def test_pool_create_integrity_tag_spec(self): True, ) + @skip(_skip_condition(1)) + def test_pool_create_integrity_no_preallocation(self): + """ + Test creating a pool with no integrity pre-allocation. + """ + pool_name = p_n() + self._unittest_command( + [ + _STRATIS_CLI, + "pool", + "create", + pool_name, + "--integrity=no", + StratisCliCertify.DISKS[0], + ], + 0, + True, + True, + ) + @skip(_skip_condition(1)) def test_pool_list_not_empty(self): """