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:
parent
dae4b6df5f
commit
75511e3a85
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user