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