]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Merge "Split out NestedQuotas into a separate driver"
authorJenkins <jenkins@review.openstack.org>
Fri, 19 Feb 2016 23:33:51 +0000 (23:33 +0000)
committerGerrit Code Review <review@openstack.org>
Fri, 19 Feb 2016 23:33:51 +0000 (23:33 +0000)
1  2 
cinder/exception.py
cinder/quota.py
cinder/tests/unit/test_quota.py

Simple merge
diff --cc cinder/quota.py
Simple merge
index 9a1bee456499f8673b4fc19b7035490238dbc237,d90f102356a69f4c0bd6016a95f4296a45b72b93..cebce9a296f2f6d2319760a7061f0710b50bb685
@@@ -888,16 -876,10 +879,16 @@@ class VolumeTypeQuotaEngineTestCase(tes
          db.volume_type_destroy(ctx, vtype['id'])
          db.volume_type_destroy(ctx, vtype2['id'])
  
 +    def test_update_quota_resource(self):
 +        ctx = context.RequestContext('admin', 'admin', is_admin=True)
 +
 +        engine = quota.VolumeTypeQuotaEngine()
 +        engine.update_quota_resource(ctx, 'type1', 'type2')
 +
  
- class DbQuotaDriverTestCase(test.TestCase):
+ class DbQuotaDriverBaseTestCase(test.TestCase):
      def setUp(self):
-         super(DbQuotaDriverTestCase, self).setUp()
+         super(DbQuotaDriverBaseTestCase, self).setUp()
  
          self.flags(quota_volumes=10,
                     quota_snapshots=10,