Merge "add test for quota update when quota no exist"
This commit is contained in:
commit
fdbf7895de
|
@ -104,6 +104,14 @@ class DbQuotaTestCase(base.DbTestCase):
|
||||||
{'hard_limit': new_limit})
|
{'hard_limit': new_limit})
|
||||||
self.assertEqual(new_limit, res.hard_limit)
|
self.assertEqual(new_limit, res.hard_limit)
|
||||||
|
|
||||||
|
def test_quota_update_not_exist(self):
|
||||||
|
self.assertRaises(exception.QuotaNotFound,
|
||||||
|
self.dbapi.quota_update,
|
||||||
|
self.context,
|
||||||
|
'123',
|
||||||
|
'fake',
|
||||||
|
{'hard_limit': 100})
|
||||||
|
|
||||||
def test_quota_update_with_invalid_parameter_value(self):
|
def test_quota_update_with_invalid_parameter_value(self):
|
||||||
quota = utils.create_test_quota()
|
quota = utils.create_test_quota()
|
||||||
self.assertRaises(exception.InvalidParameterValue,
|
self.assertRaises(exception.InvalidParameterValue,
|
||||||
|
|
Loading…
Reference in New Issue