From 165ff17205d99b18df36e5ac6f34ede858e3da17 Mon Sep 17 00:00:00 2001 From: Morgan Richomme Date: Thu, 24 Nov 2016 18:25:52 +0100 Subject: file/dir renaming for consistency JIRA: FUNCTEST-579 Change-Id: Iaa545db70bfb76770df0a3d17871e29ce518ff2d Signed-off-by: Morgan Richomme --- functest/tests/unit/odl/test_odl.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'functest/tests/unit/odl/test_odl.py') diff --git a/functest/tests/unit/odl/test_odl.py b/functest/tests/unit/odl/test_odl.py index fdd45763..46707e82 100644 --- a/functest/tests/unit/odl/test_odl.py +++ b/functest/tests/unit/odl/test_odl.py @@ -16,11 +16,11 @@ import unittest from robot.errors import RobotError from functest.core import TestCasesBase -from functest.opnfv_tests.Controllers.ODL import OpenDaylightTesting +from functest.opnfv_tests.sdn.odl import odl from functest.utils import functest_constants as ft_constants -class ODLTestCasesTesting(unittest.TestCase): +class ODLTesting(unittest.TestCase): logging.disable(logging.CRITICAL) @@ -39,7 +39,7 @@ class ODLTestCasesTesting(unittest.TestCase): ft_constants.OS_USERNAME = self._os_username ft_constants.OS_PASSWORD = self._os_password ft_constants.OS_TENANT_NAME = self._os_tenantname - self.test = OpenDaylightTesting.ODLTestCases() + self.test = odl.ODLTests() @mock.patch('fileinput.input', side_effect=Exception()) def test_set_robotframework_vars_failed(self, *args): @@ -53,9 +53,9 @@ class ODLTestCasesTesting(unittest.TestCase): def _fake_url_for(cls, service_type='identity', **kwargs): if service_type == 'identity': return "http://{}:5000/v2.0".format( - ODLTestCasesTesting._keystone_ip) + ODLTesting._keystone_ip) elif service_type == 'network': - return "http://{}:9696".format(ODLTestCasesTesting._neutron_ip) + return "http://{}:9696".format(ODLTesting._neutron_ip) else: return None @@ -85,7 +85,7 @@ class ODLTestCasesTesting(unittest.TestCase): def _test_main(self, status, *args): kwargs = self._get_main_kwargs() self.assertEqual(self.test.main(**kwargs), status) - odl_res_dir = OpenDaylightTesting.ODLTestCases.res_dir + odl_res_dir = odl.ODLTests.res_dir if len(args) > 0: args[0].assert_called_once_with(odl_res_dir) if len(args) > 1: @@ -99,8 +99,8 @@ class ODLTestCasesTesting(unittest.TestCase): 'RESTCONFPORT:{}'.format(self._odl_restconfport)] output_file = os.path.join(odl_res_dir, 'output.xml') args[1].assert_called_once_with( - OpenDaylightTesting.ODLTestCases.basic_suite_dir, - OpenDaylightTesting.ODLTestCases.neutron_suite_dir, + odl.ODLTests.basic_suite_dir, + odl.ODLTests.neutron_suite_dir, log='NONE', output=output_file, report='NONE', -- cgit 1.2.3-korg