示例#1
0
 def setUp(self):
     mock.patch('neutron.api.rpc.handlers.resources_rpc.'
                'ResourcesPushRpcApi').start()
     svc_plugins = {'l3_plugin_name': L3_PLUGIN,
                    'port_forwarding_plugin_name': PLUGIN_NAME}
     ext_mgr = ExtendFipPortForwardingExtensionManager()
     super(TestExtendFipPortForwardingExtension, self).setUp(
         plugin=CORE_PLUGIN, ext_mgr=ext_mgr, service_plugins=svc_plugins)
     self.pf_plugin = pf_plugin.PortForwardingPlugin()
示例#2
0
    def setUp(self):
        mock.patch('neutron.api.rpc.handlers.resources_rpc.'
                   'ResourcesPushRpcApi').start()
        svc_plugins = {'l3_plugin_name': L3_PLUGIN,
                       'port_forwarding_plugin_name': PLUGIN_NAME,
                       'qos': 'neutron.services.qos.qos_plugin.QoSPlugin'}
        ext_mgr = ExtendFipPortForwardingExtensionManager()
        super(TestExtendFipPortForwardingExtension, self).setUp(
            plugin=CORE_PLUGIN, ext_mgr=ext_mgr, service_plugins=svc_plugins)
        self.pf_plugin = pf_plugin.PortForwardingPlugin()
        self.l3_plugin = TestL3PorForwardingServicePlugin()

        ctx = context.get_admin_context()
        self.policy_1 = policy.QosPolicy(ctx,
                                         id=uuidutils.generate_uuid(),
                                         project_id='tenant', name='pol1',
                                         rules=[])
        self.policy_1.create()
        self.policy_2 = policy.QosPolicy(ctx,
                                         id=uuidutils.generate_uuid(),
                                         project_id='tenant', name='pol2',
                                         rules=[])
        self.policy_2.create()
示例#3
0
 def setUp(self):
     super(PortForwardingTestCaseBase, self).setUp()
     self.pf_plugin = pf_plugin.PortForwardingPlugin()
     directory.add_plugin(plugin_constants.PORTFORWARDING, self.pf_plugin)
示例#4
0
 def setUp(self):
     super(PortForwardingTestCaseBase, self).setUp()
     self.pf_plugin = pf_plugin.PortForwardingPlugin()