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. ::
|
||||
|
||||
tempest run --regex rhostest_tempest_plugin.
|
||||
tempest run --regex whitebox_tempest_plugin.
|
||||
|
||||
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
|
||||
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]
|
||||
packages =
|
||||
rhostest_tempest_plugin
|
||||
whitebox_tempest_plugin
|
||||
|
||||
[entry_points]
|
||||
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
|
||||
commands =
|
||||
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]
|
||||
commands =
|
||||
|
@ -24,7 +24,7 @@ CONF = config.CONF
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class BaseRHOSTest(base.BaseV2ComputeAdminTest):
|
||||
class BaseTest(base.BaseV2ComputeAdminTest):
|
||||
|
||||
def _create_nova_flavor(self, name, ram, vcpus, disk, fid):
|
||||
# This function creates a flavor with provided parameters
|
@ -19,14 +19,15 @@ import os
|
||||
from tempest import config
|
||||
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):
|
||||
base_path = os.path.split(os.path.dirname(
|
||||
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)
|
||||
return full_test_dir, base_path
|
||||
|
@ -23,17 +23,18 @@
|
||||
# pointer_model=ps2mouse
|
||||
|
||||
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 import config
|
||||
from tempest import test
|
||||
|
||||
from whitebox_tempest_plugin import base
|
||||
from whitebox_tempest_plugin.services import clients
|
||||
|
||||
CONF = config.CONF
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class PointerDeviceTypeFromImages(base.BaseRHOSTest):
|
||||
class PointerDeviceTypeFromImages(base.BaseTest):
|
||||
|
||||
@classmethod
|
||||
def setup_clients(cls):
|
@ -20,17 +20,18 @@
|
||||
# target_private_key_path=
|
||||
|
||||
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 import config
|
||||
from tempest import test
|
||||
|
||||
from whitebox_tempest_plugin import base
|
||||
from whitebox_tempest_plugin.services import clients
|
||||
|
||||
CONF = config.CONF
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class RefreshQuotaUsages(base.BaseRHOSTest):
|
||||
class RefreshQuotaUsages(base.BaseTest):
|
||||
|
||||
@classmethod
|
||||
def setup_clients(cls):
|
@ -12,7 +12,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from rhostest_tempest_plugin.tests import base
|
||||
from whitebox_tempest_plugin.tests import base
|
||||
|
||||
|
||||
class PlaceholderTestCase(base.WhiteboxPluginTestCase):
|
Loading…
Reference in New Issue
Block a user