Skip to content

Commit

Permalink
Merge pull request #304 from bgurney-rh/integrity-parameters
Browse files Browse the repository at this point in the history
Add tests for integrity parameters
  • Loading branch information
mulkieran authored Jan 7, 2025
2 parents aefbcba + b353b70 commit f27085e
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions stratis_cli_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,66 @@ 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_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_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):
"""
Expand Down

0 comments on commit f27085e

Please sign in to comment.