InvalidUUID can not be raised
There is incomplete format in exception's message. Fixes: bug 1184870 Change-Id: I27f231c8c5cb41b1ec5fdb34fba6a8dff6a556c7
This commit is contained in:
parent
d1e7c9a220
commit
d0c089fbe8
@ -216,7 +216,7 @@ class ImageUnacceptable(Invalid):
|
||||
|
||||
|
||||
class InvalidUUID(Invalid):
|
||||
message = _("Expected a uuid but received %(uuid).")
|
||||
message = _("Expected a uuid but received %(uuid)s.")
|
||||
|
||||
|
||||
class NotFound(CinderException):
|
||||
|
@ -258,7 +258,6 @@ class DBAPIVolumeTestCase(BaseTest):
|
||||
host)
|
||||
self.assertEqual(target_num, 42)
|
||||
|
||||
@test.testtools.skip("bug 1184870")
|
||||
def test_volume_attached_invalid_uuid(self):
|
||||
self.assertRaises(exception.InvalidUUID, db.volume_attached, self.ctxt,
|
||||
42, 'invalid-uuid', '/tmp')
|
||||
|
Loading…
x
Reference in New Issue
Block a user