Esempio n. 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()
Esempio n. 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)
Esempio n. 3
0
 def test_plugin_fails_to_start_no_loaded_drivers(self):
     with testtools.ExpectedException(
             trunk_exc.IncompatibleTrunkPluginConfiguration):
         trunk_plugin.TrunkPlugin()
Esempio n. 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)
Esempio n. 5
0
 def setUp(self):
     super(TestTrunkServicePlugin, self).setUp()
     self.trunk_plugin = trunk_plugin.TrunkPlugin()
Esempio n. 6
0
 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)
Esempio n. 7
0
 def setUp(self):
     super(TrunkSkeletonTestCase, self).setUp()
     self.trunk_plugin = trunk_plugin.TrunkPlugin()