File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed
tests/whitebox/integration Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ def create_pool(namespace): # pylint: disable=too-many-locals
215215 },
216216 )
217217
218- if return_code != StratisdErrors .OK : # pragma: no cover
218+ if return_code != StratisdErrors .OK :
219219 raise StratisCliEngineError (return_code , message )
220220
221221 if not changed : # pragma: no cover
Original file line number Diff line number Diff line change 1818# isort: LOCAL
1919from stratis_cli import StratisCliErrorCodes
2020from stratis_cli ._errors import (
21+ StratisCliEngineError ,
2122 StratisCliInUseSameTierError ,
2223 StratisCliNameConflictError ,
2324)
@@ -165,3 +166,22 @@ def test_no_overprovision(self):
165166 self ._MENU + [self ._POOLNAME ] + self ._DEVICES + ["--no-overprovision" ]
166167 )
167168 TEST_RUNNER (command_line )
169+
170+
171+ class Create7TestCase (SimTestCase ):
172+ """
173+ Test create with integrity options.
174+ """
175+
176+ _MENU = ["--propagate" , "pool" , "create" ]
177+ _DEVICES = _DEVICE_STRATEGY ()
178+ _POOLNAME = "thispool"
179+
180+ def test_invalid_journal_size (self ):
181+ """
182+ Test creating with an invalid journal size.
183+ """
184+ command_line = (
185+ self ._MENU + [self ._POOLNAME ] + self ._DEVICES + ["--journal-size=131079MiB" ]
186+ )
187+ self .check_error (StratisCliEngineError , command_line , _ERROR )
Original file line number Diff line number Diff line change 2323_PARSE_ERROR = StratisCliErrorCodes .PARSE_ERROR
2424
2525
26- class ParserTestCase (RunTestCase ):
26+ class ParserTestCase (RunTestCase ): # pylint: disable=too-many-public-methods
2727 """
2828 Test parser behavior. The behavior should be identical, regardless of
2929 whether the "--propagate" flag is set. That is, stratis should never produce
You can’t perform that action at this time.
0 commit comments