-
Notifications
You must be signed in to change notification settings - Fork 21
Match org.freedesktop.zbus.Error in error reporting #1251
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,10 +44,10 @@ def setUp(self): | |
|
|
||
| def test_creation(self): | ||
| """ | ||
| Creation of two volumes at once should fail. | ||
| Creation of two volumes at once should succeed. | ||
| """ | ||
| command_line = self._MENU + [self._POOLNAME] + self._VOLNAMES | ||
| self.check_error(StratisCliEngineError, command_line, _ERROR) | ||
| TEST_RUNNER(command_line) | ||
|
Comment on lines
+47
to
+50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, let's read the test file to see lines 47-50 and 109-110
cd tests/integration/logical && wc -l test_create.pyRepository: stratis-storage/stratis-cli Length of output: 89 🏁 Script executed: # Read the relevant sections of the test file
sed -n '40,115p' tests/integration/logical/test_create.pyRepository: stratis-storage/stratis-cli Length of output: 2641 🏁 Script executed: # Search for comments about filesystem/volume creation restrictions in the entire repository
rg -n -C3 -i 'only one filesystem|one volume per request|single filesystem per'Repository: stratis-storage/stratis-cli Length of output: 1257 Verify the actual restriction status and update the contradictory code accordingly. The contradiction identified is real:
Clarify which scenario applies and update the code and comments accordingly. 🧰 Tools🪛 Ruff (0.14.10)49-49: Consider Replace with (RUF005) |
||
|
|
||
|
|
||
| class Create4TestCase(SimTestCase): | ||
|
|
@@ -106,8 +106,6 @@ def setUp(self): | |
| command_line = ["pool", "create", self._POOLNAME] + _DEVICE_STRATEGY() | ||
| RUNNER(command_line) | ||
|
|
||
| # Creation of two volumes is split up into two calls to RUNNER, | ||
| # since only one filesystem per request is currently allowed. | ||
| command_line = self._MENU + [self._POOLNAME] + self._VOLNAMES[0:1] | ||
| RUNNER(command_line) | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.