Re-organize how the tests are structured
This now matches the standard layout generated by the cookiecutter project [1]. [1] https://github.com/openstack/tempest-plugin-cookiecutter/ Change-Id: I0fd623c02e974262ac02027dfe950c5a0a56ee77
This commit is contained in:
parent
2481c543f9
commit
77d2c303ec
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[DEFAULT]
|
||||
test_path=./whitebox_tempest_plugin/tests/unit
|
||||
top_dir=./
|
20
tox.ini
20
tox.ini
@ -1,25 +1,31 @@
|
||||
[tox]
|
||||
envlist = flake8,py27
|
||||
minversion = 2.3.1
|
||||
envlist = flake8,py27,py35
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
VIRTUAL_ENV = {envdir}
|
||||
usedevelop = True
|
||||
install_command = pip install -U {opts} {packages}
|
||||
whitelist_externals = *
|
||||
deps =
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands =
|
||||
find . -type f -name "*.pyc" -delete
|
||||
stestr --test-path ./whitebox_tempest_plugin/tests run {posargs}
|
||||
find . -type f -name "*.pyc" -delete
|
||||
stestr run '{posargs}'
|
||||
|
||||
[testenv:flake8]
|
||||
commands =
|
||||
flake8 {posargs}
|
||||
flake8 {posargs}
|
||||
|
||||
[flake8]
|
||||
show-source = True
|
||||
exclude = .git,.venv,.tox,dist,doc,*egg
|
||||
|
||||
[testenv:scenario]
|
||||
sitepackages = True
|
||||
commands =
|
||||
find . -type f -name "*.pyc" -delete
|
||||
tempest run --serial --regex '(^whitebox_tempest_plugin\.tests\.scenario)' {posargs}
|
||||
|
10
whitebox_tempest_plugin/README.rst
Normal file
10
whitebox_tempest_plugin/README.rst
Normal file
@ -0,0 +1,10 @@
|
||||
======================
|
||||
Whitebox Tempest Tests
|
||||
======================
|
||||
|
||||
This directory contains tests to validate behavior against
|
||||
TripleO/Director-based deployments.
|
||||
|
||||
See the Tempest plugin documentation for information about creating a plugin,
|
||||
stable API interface, ``TempestPlugin`` class interface, plugin structure, and
|
||||
how to use plugins: https://docs.openstack.org/tempest/latest/plugin.html
|
@ -27,8 +27,8 @@ 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
|
||||
from whitebox_tempest_plugin.tests.scenario import base
|
||||
|
||||
CONF = config.CONF
|
||||
LOG = logging.getLogger(__name__)
|
@ -24,8 +24,8 @@ 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
|
||||
from whitebox_tempest_plugin.tests.scenario import base
|
||||
|
||||
CONF = config.CONF
|
||||
LOG = logging.getLogger(__name__)
|
@ -12,7 +12,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from whitebox_tempest_plugin.tests import base
|
||||
from whitebox_tempest_plugin.tests.unit import base
|
||||
|
||||
|
||||
class PlaceholderTestCase(base.WhiteboxPluginTestCase):
|
Loading…
x
Reference in New Issue
Block a user