Update quota tests to register quota resources
Change I8a40f38d7c0e5aeca257ba62115fa9b02ad5aa93 in the neutron code tree recently altered the default behavior of quota tests to unregister quota resources if they weren't explicitly registered in the test. This broke neutron-lbaas quota tests. This commit updates the quota tests to explicitly register our quota resources in the setUp() call. Change-Id: If3c62574d728c1b7517f406890301f74e96566d1 Closes-Bug: #1621810
This commit is contained in:
parent
970dd373e3
commit
d27e8425b2
|
@ -18,6 +18,7 @@ import mock
|
|||
import webob
|
||||
|
||||
from neutron.db import servicetype_db as st_db
|
||||
from neutron.quota import resource_registry
|
||||
from neutron.tests import base as n_base
|
||||
from neutron.tests.unit.db import test_db_base_plugin_v2
|
||||
from neutron.tests.unit.extensions import base as ext_base
|
||||
|
@ -224,4 +225,10 @@ class ExtensionTestCase(ext_base.ExtensionTestCase):
|
|||
|
||||
|
||||
class QuotaExtensionTestCase(test_quotasv2.QuotaExtensionTestCase):
|
||||
pass
|
||||
|
||||
def setUp(self):
|
||||
super(QuotaExtensionTestCase, self).setUp()
|
||||
resource_registry.register_resource_by_name('pool')
|
||||
resource_registry.register_resource_by_name('loadbalancer')
|
||||
resource_registry.register_resource_by_name('listener')
|
||||
resource_registry.register_resource_by_name('healthmonitor')
|
||||
|
|
Loading…
Reference in New Issue