Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for integrity parameters #304

Merged
merged 3 commits into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading