Skip to content

Commit

Permalink
Add additional tests
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Jul 31, 2024
1 parent 30d5482 commit a886c88
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/whitebox/integration/logical/test_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,29 @@ def test_metadata_name_pretty_fs_name(self):
"--fs-name=newname",
]
TEST_RUNNER(command_line)

def test_metadata_name_fs_name_not_present(self):
"""
Test getting filesystem metadata specifying a filename that does not
actually exist.
"""

command_line = ["filesystem", "create", self._POOLNAME, "newname"]
RUNNER(command_line)

command_line = self._MENU + [
"get-metadata",
self._POOLNAME,
"--fs-name=fakename",
]
TEST_RUNNER(command_line)

def test_metadata_name_no_fss(self):
"""
Test printing when no filesystems present.
"""
command_line = self._MENU + [
"get-metadata",
self._POOLNAME,
]
TEST_RUNNER(command_line)

0 comments on commit a886c88

Please sign in to comment.