Ejemplo n.º 1
0
 def setUp(self):
     self.ryu_patcher = fake_ryu.patch_fake_ryu_client()
     self.ryu_patcher.start()
     super(RyuPluginV2TestCase, self).setUp(self._plugin_name)
     self.addCleanup(self.ryu_patcher.stop)
     plugin = manager.NeutronManager.get_plugin()
     plugin.notifier = mock.Mock()
Ejemplo n.º 2
0
 def setUp(self, plugin=None):
     test_sg_rpc.set_firewall_driver(test_sg_rpc.FIREWALL_HYBRID_DRIVER)
     self.fake_ryu = fake_ryu.patch_fake_ryu_client().start()
     self.notifier = mock.patch(NOTIFIER).start().return_value
     self._attribute_map_bk_ = {}
     for item in attributes.RESOURCE_ATTRIBUTE_MAP:
         self._attribute_map_bk_[item] = (
             attributes.RESOURCE_ATTRIBUTE_MAP[item].copy())
     super(RyuSecurityGroupsTestCase, self).setUp(PLUGIN_NAME)
Ejemplo n.º 3
0
 def setUp(self, plugin=None):
     test_sg_rpc.set_firewall_driver(test_sg_rpc.FIREWALL_HYBRID_DRIVER)
     self.fake_ryu = fake_ryu.patch_fake_ryu_client().start()
     self.notifier = mock.patch(NOTIFIER).start().return_value
     self._attribute_map_bk_ = {}
     for item in attributes.RESOURCE_ATTRIBUTE_MAP:
         self._attribute_map_bk_[item] = (attributes.
                                          RESOURCE_ATTRIBUTE_MAP[item].
                                          copy())
     super(RyuSecurityGroupsTestCase, self).setUp(PLUGIN_NAME)
Ejemplo n.º 4
0
 def setUp(self):
     super(RyuAgentTestCase, self).setUp()
     self.fake_ryu = fake_ryu.patch_fake_ryu_client().start()
     self.mod_agent = importutils.import_module(self._AGENT_NAME)
Ejemplo n.º 5
0
 def setUp(self):
     super(RyuAgentTestCase, self).setUp()
     self.fake_ryu = fake_ryu.patch_fake_ryu_client().start()
     self.mod_agent = importutils.import_module(self._AGENT_NAME)
Ejemplo n.º 6
0
 def setUp(self):
     self.ryu_patcher = fake_ryu.patch_fake_ryu_client()
     self.ryu_patcher.start()
     super(RyuPluginV2TestCase, self).setUp(self._plugin_name)
     self.addCleanup(self.ryu_patcher.stop)