コード例 #1
0
 def test_plugins_fails_to_start_conflicting_seg_types(self):
     fakes.FakeDriver.create()
     fakes.FakeDriver2.create()
     with testtools.ExpectedException(
             trunk_exc.IncompatibleDriverSegmentationTypes):
         trunk_plugin.TrunkPlugin()
コード例 #2
0
 def setUp(self):
     super(TestOVNTrunkDriver, self).setUp()
     self.trunk_plugin = trunk_plugin.TrunkPlugin()
     self.trunk_plugin.add_segmentation_type(trunk_consts.VLAN,
                                             utils.is_valid_vlan_tag)
コード例 #3
0
 def test_plugin_fails_to_start_no_loaded_drivers(self):
     with testtools.ExpectedException(
             trunk_exc.IncompatibleTrunkPluginConfiguration):
         trunk_plugin.TrunkPlugin()
コード例 #4
0
 def setUp(self):
     super(TrunkPluginTestCase, self).setUp()
     self.trunk_plugin = trunk_plugin.TrunkPlugin()
     self.trunk_plugin.add_segmentation_type('vlan', lambda x: True)
コード例 #5
0
ファイル: test_plugin.py プロジェクト: thh/neutron
 def setUp(self):
     super(TestTrunkServicePlugin, self).setUp()
     self.trunk_plugin = trunk_plugin.TrunkPlugin()
コード例 #6
0
ファイル: test_rules.py プロジェクト: zjtheone/neutron
 def setUp(self):
     super(TrunkPortValidatorTestCase, self).setUp()
     self.trunk_plugin = trunk_plugin.TrunkPlugin()
     self.trunk_plugin.add_segmentation_type(constants.VLAN,
                                             utils.is_valid_vlan_tag)
コード例 #7
0
 def setUp(self):
     super(TrunkSkeletonTestCase, self).setUp()
     self.trunk_plugin = trunk_plugin.TrunkPlugin()