コード例 #1
0
 def setUp(self, plugin=None):
     test_sg_rpc.set_firewall_driver(test_sg_rpc.FIREWALL_HYBRID_DRIVER)
     self.addCleanup(mock.patch.stopall)
     notifier_p = mock.patch(NOTIFIER)
     notifier_cls = notifier_p.start()
     self.notifier = mock.Mock()
     notifier_cls.return_value = self.notifier
     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)
コード例 #2
0
 def setUp(self, plugin=None):
     test_sg_rpc.set_firewall_driver(test_sg_rpc.FIREWALL_HYBRID_DRIVER)
     self.addCleanup(mock.patch.stopall)
     mock.patch(NOTIFIER).start()
     mock.patch(OFC_MANAGER).start()
     self._attribute_map_bk_ = {}
     for item in attributes.RESOURCE_ATTRIBUTE_MAP:
         self._attribute_map_bk_[item] = (
             attributes.RESOURCE_ATTRIBUTE_MAP[item].copy())
     super(NecSecurityGroupsTestCase, self).setUp(PLUGIN_NAME)
     self.notifier = manager.QuantumManager.get_plugin().notifier
コード例 #3
0
ファイル: test_security_group.py プロジェクト: Apsu/quantum
 def setUp(self, plugin=None):
     test_sg_rpc.set_firewall_driver(test_sg_rpc.FIREWALL_HYBRID_DRIVER)
     self.addCleanup(mock.patch.stopall)
     mock.patch(NOTIFIER).start()
     mock.patch(OFC_MANAGER).start()
     self._attribute_map_bk_ = {}
     for item in attributes.RESOURCE_ATTRIBUTE_MAP:
         self._attribute_map_bk_[item] = (attributes.
                                          RESOURCE_ATTRIBUTE_MAP[item].
                                          copy())
     super(NecSecurityGroupsTestCase, self).setUp(PLUGIN_NAME)
     self.notifier = manager.QuantumManager.get_plugin().notifier
コード例 #4
0
 def setUp(self, plugin=None):
     test_sg_rpc.set_firewall_driver(test_sg_rpc.FIREWALL_HYBRID_DRIVER)
     self.addCleanup(mock.patch.stopall)
     notifier_p = mock.patch(NOTIFIER)
     notifier_cls = notifier_p.start()
     self.notifier = mock.Mock()
     notifier_cls.return_value = self.notifier
     self._attribute_map_bk_ = {}
     for item in attributes.RESOURCE_ATTRIBUTE_MAP:
         self._attribute_map_bk_[item] = (
             attributes.RESOURCE_ATTRIBUTE_MAP[item].copy())
     super(Ml2SecurityGroupsTestCase, self).setUp(PLUGIN_NAME)
コード例 #5
0
 def setUp(self):
     test_sg_rpc.set_firewall_driver(self.FIREWALL_DRIVER)
     super(TestNecPortBinding, self).setUp()
コード例 #6
0
ファイル: test_nec_plugin.py プロジェクト: schatt/quantum
 def setUp(self):
     test_sg_rpc.set_firewall_driver(self.FIREWALL_DRIVER)
     super(TestNecPortBinding, self).setUp()
コード例 #7
0
 def setUp(self, firewall_driver=None):
     test_sg_rpc.set_firewall_driver(self.FIREWALL_DRIVER)
     super(TestOpenvswitchPortBinding, self).setUp()
コード例 #8
0
 def setUp(self, firewall_driver=None):
     test_sg_rpc.set_firewall_driver(self.FIREWALL_DRIVER)
     super(TestOpenvswitchPortBinding, self).setUp()