Add logging for functional tests
In patch [1] I changed most of functional tests classes to inherit from neutron.tests.functional.base.BaseLoggingTestCase class to enable logging of results for such tests. I missed two classes then, so this patch fixes it and adds inherit from same base class to tests which still didn't have logging enabled. [1] https://review.openstack.org/#/c/619266/ Change-Id: I9afbe241ee26c8cdc807d2f4fa1c285ff1f07d60
This commit is contained in:
parent
17c6cf7abe
commit
f2192f1226
@ -30,6 +30,7 @@ import webtest
|
||||
from neutron.api import extensions as exts
|
||||
from neutron import manager
|
||||
from neutron import tests
|
||||
from neutron.tests.functional import base as functional_base
|
||||
from neutron.tests.unit import testlib_api
|
||||
|
||||
|
||||
@ -67,7 +68,8 @@ def create_test_app():
|
||||
return webtest.TestApp(app)
|
||||
|
||||
|
||||
class PecanFunctionalTest(testlib_api.SqlTestCase):
|
||||
class PecanFunctionalTest(testlib_api.SqlTestCase,
|
||||
functional_base.BaseLoggingTestCase):
|
||||
|
||||
def setUp(self, service_plugins=None, extensions=None):
|
||||
self.setup_coreplugin('ml2', load_plugins=False)
|
||||
|
@ -27,13 +27,15 @@ from neutron_lib import context
|
||||
from neutron.api.rpc.handlers import l3_rpc
|
||||
from neutron.common import constants as n_const
|
||||
from neutron.tests.common import helpers
|
||||
from neutron.tests.functional import base as functional_base
|
||||
from neutron.tests.unit.plugins.ml2 import base as ml2_test_base
|
||||
|
||||
|
||||
DEVICE_OWNER_COMPUTE = constants.DEVICE_OWNER_COMPUTE_PREFIX + 'fake'
|
||||
|
||||
|
||||
class L3DvrTestCaseBase(ml2_test_base.ML2TestFramework):
|
||||
class L3DvrTestCaseBase(ml2_test_base.ML2TestFramework,
|
||||
functional_base.BaseLoggingTestCase):
|
||||
def setUp(self):
|
||||
super(L3DvrTestCaseBase, self).setUp()
|
||||
self.l3_agent = helpers.register_l3_agent(
|
||||
|
Loading…
x
Reference in New Issue
Block a user