Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions tests/integration/pool/test_extend.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ def test_no_uuid(self):
command_line = self._MENU + [self._POOLNAME]
self.check_error(StratisCliNoDeviceSizeChangeError, command_line, _ERROR)

def test_no_uuid_2(self):
"""
Test trying to extend a pool without specifying a UUID but still
specifying the --device-uuid option.
"""
command_line = self._MENU + [self._POOLNAME, "--device-uuid"]
self.check_error(StratisCliNoDeviceSizeChangeError, command_line, _ERROR)

def test_good_uuid(self):
"""
Test trying to extend a device specifying an existing device UUID.
Expand All @@ -71,3 +79,15 @@ def test_good_uuid(self):
f"--device-uuid={UUID(props.Uuid())}",
]
self.check_error(StratisCliPartialChangeError, command_line, _ERROR)

def test_multiple_uuids(self):
"""
Test passing multiple UUIDs with the --device-uuid option.
"""
command_line = self._MENU + [
self._POOLNAME,
"--device-uuid",
f"{uuid4()}",
f"{uuid4()}",
]
self.check_error(StratisCliResourceNotFoundError, command_line, _ERROR)
Loading