Re-home project
Move project into a directory matching its name. Change-Id: I26934edd049909482ccc078d88b581fa369326b4 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
parent
d554c95cf5
commit
2481c543f9
@ -54,12 +54,12 @@ Install, configure and run
|
|||||||
|
|
||||||
3. Execute the tests. ::
|
3. Execute the tests. ::
|
||||||
|
|
||||||
tempest run --regex rhostest_tempest_plugin.
|
tempest run --regex whitebox_tempest_plugin.
|
||||||
|
|
||||||
How to add a new test
|
How to add a new test
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
New tests should be added to the ``rhostest_tempest_plugin/tests`` directory.
|
New tests should be added to the ``whitebox_tempest_plugin/tests`` directory.
|
||||||
|
|
||||||
According to the plugin interface doc__, you should mainly import "stable" APIs
|
According to the plugin interface doc__, you should mainly import "stable" APIs
|
||||||
which usually are:
|
which usually are:
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
===============================================
|
|
||||||
Tempest Integration of RHOSTest
|
|
||||||
===============================================
|
|
||||||
|
|
||||||
This directory contains Tempest tests to cover the RHOSTest project.
|
|
||||||
|
|
@ -22,8 +22,8 @@ setup-hooks =
|
|||||||
|
|
||||||
[files]
|
[files]
|
||||||
packages =
|
packages =
|
||||||
rhostest_tempest_plugin
|
whitebox_tempest_plugin
|
||||||
|
|
||||||
[entry_points]
|
[entry_points]
|
||||||
tempest.test_plugins =
|
tempest.test_plugins =
|
||||||
rhostest-tempest-plugin = rhostest_tempest_plugin.plugin:RHOSTempestPlugin
|
whitebox-tempest-plugin = whitebox_tempest_plugin.plugin:WhiteboxTempestPlugin
|
||||||
|
2
tox.ini
2
tox.ini
@ -14,7 +14,7 @@ deps =
|
|||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
find . -type f -name "*.pyc" -delete
|
find . -type f -name "*.pyc" -delete
|
||||||
stestr --test-path ./rhostest_tempest_plugin/tests run {posargs}
|
stestr --test-path ./whitebox_tempest_plugin/tests run {posargs}
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
commands =
|
commands =
|
||||||
|
@ -24,7 +24,7 @@ CONF = config.CONF
|
|||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class BaseRHOSTest(base.BaseV2ComputeAdminTest):
|
class BaseTest(base.BaseV2ComputeAdminTest):
|
||||||
|
|
||||||
def _create_nova_flavor(self, name, ram, vcpus, disk, fid):
|
def _create_nova_flavor(self, name, ram, vcpus, disk, fid):
|
||||||
# This function creates a flavor with provided parameters
|
# This function creates a flavor with provided parameters
|
@ -19,14 +19,15 @@ import os
|
|||||||
from tempest import config
|
from tempest import config
|
||||||
from tempest.test_discover import plugins
|
from tempest.test_discover import plugins
|
||||||
|
|
||||||
from rhostest_tempest_plugin import config as project_config
|
from whitebox_tempest_plugin import config as project_config
|
||||||
|
|
||||||
|
|
||||||
class RHOSTempestPlugin(plugins.TempestPlugin):
|
class WhiteboxTempestPlugin(plugins.TempestPlugin):
|
||||||
|
|
||||||
def load_tests(self):
|
def load_tests(self):
|
||||||
base_path = os.path.split(os.path.dirname(
|
base_path = os.path.split(os.path.dirname(
|
||||||
os.path.abspath(__file__)))[0]
|
os.path.abspath(__file__)))[0]
|
||||||
test_dir = "rhostest_tempest_plugin/tests"
|
test_dir = 'whitebox_tempest_plugin/tests'
|
||||||
full_test_dir = os.path.join(base_path, test_dir)
|
full_test_dir = os.path.join(base_path, test_dir)
|
||||||
return full_test_dir, base_path
|
return full_test_dir, base_path
|
||||||
|
|
@ -23,17 +23,18 @@
|
|||||||
# pointer_model=ps2mouse
|
# pointer_model=ps2mouse
|
||||||
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from rhostest_tempest_plugin import base
|
|
||||||
from rhostest_tempest_plugin.services import clients
|
|
||||||
from tempest.common.utils import data_utils
|
from tempest.common.utils import data_utils
|
||||||
from tempest import config
|
from tempest import config
|
||||||
from tempest import test
|
from tempest import test
|
||||||
|
|
||||||
|
from whitebox_tempest_plugin import base
|
||||||
|
from whitebox_tempest_plugin.services import clients
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class PointerDeviceTypeFromImages(base.BaseRHOSTest):
|
class PointerDeviceTypeFromImages(base.BaseTest):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setup_clients(cls):
|
def setup_clients(cls):
|
@ -20,17 +20,18 @@
|
|||||||
# target_private_key_path=
|
# target_private_key_path=
|
||||||
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from rhostest_tempest_plugin import base
|
|
||||||
from rhostest_tempest_plugin.services import clients
|
|
||||||
from tempest.common.utils import data_utils
|
from tempest.common.utils import data_utils
|
||||||
from tempest import config
|
from tempest import config
|
||||||
from tempest import test
|
from tempest import test
|
||||||
|
|
||||||
|
from whitebox_tempest_plugin import base
|
||||||
|
from whitebox_tempest_plugin.services import clients
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class RefreshQuotaUsages(base.BaseRHOSTest):
|
class RefreshQuotaUsages(base.BaseTest):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setup_clients(cls):
|
def setup_clients(cls):
|
@ -12,7 +12,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from rhostest_tempest_plugin.tests import base
|
from whitebox_tempest_plugin.tests import base
|
||||||
|
|
||||||
|
|
||||||
class PlaceholderTestCase(base.WhiteboxPluginTestCase):
|
class PlaceholderTestCase(base.WhiteboxPluginTestCase):
|
Loading…
Reference in New Issue
Block a user