Remove InvalidParameterValue exception
The InvalidParameterValue exception does not define a meaningful
msg_fmt. It is currently _("%(err)s"), which is the equivalent of
nothing and does not help with translation.
Replace InvalidParameterValue with Invalid exceptions.
Change-Id: If8b064e446cbc97e380127f360f262be9e8877a1
Closes-Bug: #1538398
This commit is contained in:
@@ -126,7 +126,7 @@ class DbActionTestCase(base.DbTestCase):
|
||||
|
||||
def test_update_action_uuid(self):
|
||||
action = self._create_test_action()
|
||||
self.assertRaises(exception.InvalidParameterValue,
|
||||
self.assertRaises(exception.Invalid,
|
||||
self.dbapi.update_action, action['id'],
|
||||
{'uuid': 'hello'})
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ class DbActionPlanTestCase(base.DbTestCase):
|
||||
|
||||
def test_update_action_plan_uuid(self):
|
||||
action_plan = self._create_test_action_plan()
|
||||
self.assertRaises(exception.InvalidParameterValue,
|
||||
self.assertRaises(exception.Invalid,
|
||||
self.dbapi.update_action_plan, action_plan['id'],
|
||||
{'uuid': 'hello'})
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ class DbAuditTestCase(base.DbTestCase):
|
||||
|
||||
def test_update_audit_uuid(self):
|
||||
audit = self._create_test_audit()
|
||||
self.assertRaises(exception.InvalidParameterValue,
|
||||
self.assertRaises(exception.Invalid,
|
||||
self.dbapi.update_audit, audit['id'],
|
||||
{'uuid': 'hello'})
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ class DbAuditTemplateTestCase(base.DbTestCase):
|
||||
|
||||
def test_update_audit_template_uuid(self):
|
||||
audit_template = self._create_test_audit_template()
|
||||
self.assertRaises(exception.InvalidParameterValue,
|
||||
self.assertRaises(exception.Invalid,
|
||||
self.dbapi.update_audit_template,
|
||||
audit_template['id'],
|
||||
{'uuid': 'hello'})
|
||||
|
||||
Reference in New Issue
Block a user