Browse Source

Merge "use setup_extension in unit tests"

tags/14.0.0.0rc1
Zuul 9 months ago
parent
commit
adb8c4aba2

+ 3
- 3
neutron_lbaas/tests/unit/services/loadbalancer/test_loadbalancer_plugin.py View File

@@ -45,10 +45,10 @@ class TestLoadBalancerExtensionV2TestCase(base.ExtensionTestCase):
45 45
             resource_map[k].update(hm_down.EXTENDED_ATTRIBUTES_2_0[k])
46 46
         for k in lb_network_vip.EXTENDED_ATTRIBUTES_2_0.keys():
47 47
             resource_map[k].update(lb_network_vip.EXTENDED_ATTRIBUTES_2_0[k])
48
-        self._setUpExtension(
48
+        self.setup_extension(
49 49
             'neutron_lbaas.extensions.loadbalancerv2.LoadBalancerPluginBaseV2',
50
-            constants.LOADBALANCERV2, resource_map,
51
-            loadbalancerv2.Loadbalancerv2, 'lbaas', use_quota=True)
50
+            constants.LOADBALANCERV2, loadbalancerv2.Loadbalancerv2,
51
+            'lbaas', use_quota=True)
52 52
 
53 53
     def test_loadbalancer_create(self):
54 54
         lb_id = _uuid()

Loading…
Cancel
Save