Skip to content

Commit

Permalink
stratis_cli_cert: Add simple tests for filesystem size limit
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Gurney <[email protected]>
  • Loading branch information
bgurney-rh committed Oct 23, 2023
1 parent 34acd3c commit 61b5e82
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions stratis_cli_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,48 @@ def test_filesystem_create_specified_size_toosmall(self):
True,
)

@skip(_skip_condition(1))
def test_filesystem_create_specified_size_limit(self):
"""
Test creating a filesystem with a specified size limit.
"""
filesystem_name = fs_n()
self._unittest_command(
[
_STRATIS_CLI,
"filesystem",
"create",
make_test_pool(StratisCliCertify.DISKS[0:1]),
filesystem_name,
"--size=512GiB",
"--size-limit=1024GiB",
],
0,
True,
True,
)

@skip(_skip_condition(1))
def test_filesystem_create_specified_size_limit_toosmall(self):
"""
Test creating a filesystem with a specified size limit that is too small.
"""
filesystem_name = fs_n()
self._unittest_command(
[
_STRATIS_CLI,
"filesystem",
"create",
make_test_pool(StratisCliCertify.DISKS[0:1]),
filesystem_name,
"--size=524288KiB",
"--size-limit=524284KiB",
],
1,
False,
True,
)

@skip(_skip_condition(1))
def test_filesystem_create_permissions(self):
"""
Expand Down

0 comments on commit 61b5e82

Please sign in to comment.