Skip to content

Commit f27085e

Browse files
authored
Merge pull request #304 from bgurney-rh/integrity-parameters
Add tests for integrity parameters
2 parents aefbcba + b353b70 commit f27085e

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

stratis_cli_cert.py

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,66 @@ def test_pool_create_no_overprovision(self):
457457
True,
458458
)
459459

460+
@skip(_skip_condition(1))
461+
def test_pool_create_integrity_journal_size(self):
462+
"""
463+
Test creating a pool with an integrity journal size.
464+
"""
465+
pool_name = p_n()
466+
self._unittest_command(
467+
[
468+
_STRATIS_CLI,
469+
"pool",
470+
"create",
471+
pool_name,
472+
"--journal-size=64MiB",
473+
StratisCliCertify.DISKS[0],
474+
],
475+
0,
476+
True,
477+
True,
478+
)
479+
480+
@skip(_skip_condition(1))
481+
def test_pool_create_integrity_tag_spec(self):
482+
"""
483+
Test creating a pool with an integrity tag specification.
484+
"""
485+
pool_name = p_n()
486+
self._unittest_command(
487+
[
488+
_STRATIS_CLI,
489+
"pool",
490+
"create",
491+
pool_name,
492+
"--tag-spec=32b",
493+
StratisCliCertify.DISKS[0],
494+
],
495+
0,
496+
True,
497+
True,
498+
)
499+
500+
@skip(_skip_condition(1))
501+
def test_pool_create_integrity_no_preallocation(self):
502+
"""
503+
Test creating a pool with no integrity pre-allocation.
504+
"""
505+
pool_name = p_n()
506+
self._unittest_command(
507+
[
508+
_STRATIS_CLI,
509+
"pool",
510+
"create",
511+
pool_name,
512+
"--integrity=no",
513+
StratisCliCertify.DISKS[0],
514+
],
515+
0,
516+
True,
517+
True,
518+
)
519+
460520
@skip(_skip_condition(1))
461521
def test_pool_list_not_empty(self):
462522
"""

0 commit comments

Comments
 (0)