Refactored cinder tempest tests to cinder_tempest_plugin

* As per the current codebase of cinder tempest plugin, it is getting
  dumped in the cinder/tests and the package name is setup.cfg is
  cinder_tempest_plugin which does not exists. So i refactored to
  give a proper tempest plugin shape.

Change-Id: Ia78ea53a99923844f40fb4e9fe22ec0da4b0c335
This commit is contained in:
Chandan Kumar 2018-01-22 12:52:00 +05:30
parent dae4b6df5f
commit 75511e3a85
16 changed files with 11 additions and 11 deletions

View File

@ -19,8 +19,8 @@ from tempest import config
from tempest.lib.common.utils import data_utils
from tempest.lib import decorators
from cinder.tests.tempest.api.volume import base
from cinder.tests.tempest import cinder_clients
from cinder_tempest_plugin.api.volume import base
from cinder_tempest_plugin import cinder_clients
CONF = config.CONF

View File

@ -18,7 +18,7 @@ from tempest import config
from tempest.lib.common.utils import data_utils
from tempest.lib import decorators
from cinder.tests.tempest.api.volume import base
from cinder_tempest_plugin.api.volume import base
CONF = config.CONF

View File

@ -17,8 +17,8 @@ from tempest.common import waiters
from tempest import config
from tempest.lib import decorators
from cinder.tests.tempest.api.volume import base
from cinder.tests.tempest import cinder_clients
from cinder_tempest_plugin.api.volume import base
from cinder_tempest_plugin import cinder_clients
CONF = config.CONF

View File

@ -19,7 +19,7 @@ from tempest import config
from tempest.lib.common.utils import data_utils
from tempest.lib.common.utils import test_utils
from cinder.tests.tempest.api.volume import base
from cinder_tempest_plugin.api.volume import base
CONF = config.CONF

View File

@ -15,8 +15,8 @@
from tempest import config
from cinder.tests.tempest.services import consistencygroups_client
from cinder.tests.tempest.services import volume_revert_client
from cinder_tempest_plugin.services import consistencygroups_client
from cinder_tempest_plugin.services import volume_revert_client
CONF = config.CONF

View File

@ -16,7 +16,7 @@
import cinder
import os
from cinder.tests.tempest import config as project_config
from cinder_tempest_plugin import config as project_config
from tempest import config
from tempest.test_discover import plugins
@ -26,7 +26,7 @@ class CinderTempestPlugin(plugins.TempestPlugin):
def load_tests(self):
base_path = os.path.split(os.path.dirname(
os.path.abspath(cinder.__file__)))[0]
test_dir = "cinder/tests/tempest"
test_dir = "cinder_tempest_plugin"
full_test_dir = os.path.join(base_path, test_dir)
return full_test_dir, base_path

View File

@ -47,4 +47,4 @@ output_file = cinder_tempest_plugin/locale/cinder_tempest_plugin.pot
[entry_points]
tempest.test_plugins =
cinder_tests = cinder.tests.tempest.plugin:CinderTempestPlugin
cinder_tests = cinder_tempest_plugin.plugin:CinderTempestPlugin