diff --git a/tests/integration/pool/test_extend.py b/tests/integration/pool/test_extend.py index ce0f98c38..6036d9537 100644 --- a/tests/integration/pool/test_extend.py +++ b/tests/integration/pool/test_extend.py @@ -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. @@ -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)