Revert "Temporarily disable flowclassifier tests"

This reverts commit 4bc0cef838.

Change-Id: Id8a12e0a0fe6115517df39071e74c2f7a6371e86
This commit is contained in:
Adit Sarfaty
2017-09-18 08:03:19 +00:00
parent 4bc0cef838
commit bb49e4e464

View File

@@ -14,29 +14,29 @@
# under the License. # under the License.
import mock import mock
from oslo_config import cfg from oslo_config import cfg
#from oslo_utils import importutils from oslo_utils import importutils
from vmware_nsx.services.flowclassifier.nsx_v import driver as nsx_v_driver from vmware_nsx.services.flowclassifier.nsx_v import driver as nsx_v_driver
from vmware_nsx.tests import unit as vmware from vmware_nsx.tests import unit as vmware
from vmware_nsx.tests.unit.nsx_v.vshield import fake_vcns from vmware_nsx.tests.unit.nsx_v.vshield import fake_vcns
#from neutron.api import extensions as api_ext from neutron.api import extensions as api_ext
#from neutron.common import config from neutron.common import config
from neutron_lib.api.definitions import portbindings from neutron_lib.api.definitions import portbindings
from neutron_lib import context from neutron_lib import context
from neutron_lib.plugins import directory from neutron_lib.plugins import directory
#from networking_sfc.db import flowclassifier_db as fdb from networking_sfc.db import flowclassifier_db as fdb
from networking_sfc.extensions import flowclassifier from networking_sfc.extensions import flowclassifier
from networking_sfc.services.flowclassifier.common import context as fc_ctx from networking_sfc.services.flowclassifier.common import context as fc_ctx
from networking_sfc.services.flowclassifier.common import exceptions as fc_exc from networking_sfc.services.flowclassifier.common import exceptions as fc_exc
#from networking_sfc.tests import base from networking_sfc.tests import base
#from networking_sfc.tests.unit.db import test_flowclassifier_db from networking_sfc.tests.unit.db import test_flowclassifier_db
class TestNsxvFlowClassifierDriver(object): class TestNsxvFlowClassifierDriver(
#test_flowclassifier_db.FlowClassifierDbPluginTestCaseBase, test_flowclassifier_db.FlowClassifierDbPluginTestCaseBase,
#base.NeutronDbPluginV2TestCase): base.NeutronDbPluginV2TestCase):
resource_prefix_map = dict([ resource_prefix_map = dict([
(k, flowclassifier.FLOW_CLASSIFIER_PREFIX) (k, flowclassifier.FLOW_CLASSIFIER_PREFIX)
@@ -45,34 +45,34 @@ class TestNsxvFlowClassifierDriver(object):
def setUp(self): def setUp(self):
# init the flow classifier plugin # init the flow classifier plugin
# flowclassifier_plugin = ( flowclassifier_plugin = (
# test_flowclassifier_db.DB_FLOWCLASSIFIER_PLUGIN_CLASS) test_flowclassifier_db.DB_FLOWCLASSIFIER_PLUGIN_CLASS)
# service_plugins = { service_plugins = {
# flowclassifier.FLOW_CLASSIFIER_EXT: flowclassifier_plugin flowclassifier.FLOW_CLASSIFIER_EXT: flowclassifier_plugin
# } }
# fdb.FlowClassifierDbPlugin.supported_extension_aliases = [ fdb.FlowClassifierDbPlugin.supported_extension_aliases = [
# flowclassifier.FLOW_CLASSIFIER_EXT] flowclassifier.FLOW_CLASSIFIER_EXT]
# fdb.FlowClassifierDbPlugin.path_prefix = ( fdb.FlowClassifierDbPlugin.path_prefix = (
# flowclassifier.FLOW_CLASSIFIER_PREFIX flowclassifier.FLOW_CLASSIFIER_PREFIX
# ) )
super(TestNsxvFlowClassifierDriver, self).setUp( super(TestNsxvFlowClassifierDriver, self).setUp(
ext_mgr=None, ext_mgr=None,
plugin=None, plugin=None,
#service_plugins=service_plugins service_plugins=service_plugins
) )
# self.flowclassifier_plugin = importutils.import_object( self.flowclassifier_plugin = importutils.import_object(
# flowclassifier_plugin) flowclassifier_plugin)
# ext_mgr = api_ext.PluginAwareExtensionManager( ext_mgr = api_ext.PluginAwareExtensionManager(
# test_flowclassifier_db.extensions_path, test_flowclassifier_db.extensions_path,
# { {
# flowclassifier.FLOW_CLASSIFIER_EXT:self.flowclassifier_plugin flowclassifier.FLOW_CLASSIFIER_EXT: self.flowclassifier_plugin
# } }
# ) )
#app = config.load_paste_app('extensions_test_app') app = config.load_paste_app('extensions_test_app')
#self.ext_api = api_ext.ExtensionMiddleware(app, ext_mgr=ext_mgr) self.ext_api = api_ext.ExtensionMiddleware(app, ext_mgr=ext_mgr)
self.ctx = context.get_admin_context() self.ctx = context.get_admin_context()
# use the fake vcns # use the fake vcns