2014-07-01 17:11:09 +09:00
|
|
|
[tox]
|
2020-11-08 06:05:05 +00:00
|
|
|
envlist = py39,py38,py36,pep8,docs
|
2021-02-25 13:49:04 +05:30
|
|
|
minversion = 3.18.0
|
2014-07-01 17:11:09 +09:00
|
|
|
skipsdist = True
|
2019-10-31 06:25:49 +00:00
|
|
|
ignore_basepython_conflict = True
|
2014-07-01 17:11:09 +09:00
|
|
|
|
|
|
|
[testenv]
|
2019-10-31 06:25:49 +00:00
|
|
|
basepython = python3
|
2014-07-01 17:11:09 +09:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2018-06-07 17:05:17 +09:00
|
|
|
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
|
|
|
|
OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true}
|
|
|
|
OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
|
2020-11-27 12:31:11 +00:00
|
|
|
passenv = TOX_CONSTRAINTS_FILE
|
2014-07-01 17:11:09 +09:00
|
|
|
usedevelop = True
|
2021-02-25 13:49:04 +05:30
|
|
|
allowlist_externals = rm
|
2019-12-06 11:58:01 +09:00
|
|
|
deps =
|
2020-11-27 12:31:11 +00:00
|
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
2019-12-06 11:58:01 +09:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2014-07-01 17:11:09 +09:00
|
|
|
commands =
|
2019-01-16 17:35:35 +09:00
|
|
|
stestr run --slowest --concurrency 1 {posargs}
|
2014-07-01 17:11:09 +09:00
|
|
|
|
|
|
|
[testenv:functional]
|
2018-07-03 13:28:14 +05:30
|
|
|
setenv = {[testenv]setenv}
|
|
|
|
commands =
|
|
|
|
stestr --test-path=./tacker/tests/functional run --slowest {posargs}
|
2014-07-01 17:11:09 +09:00
|
|
|
|
2016-03-21 14:54:58 +08:00
|
|
|
[testenv:dsvm-functional]
|
2016-06-02 17:39:51 +08:00
|
|
|
setenv = {[testenv]setenv}
|
2018-07-03 13:28:14 +05:30
|
|
|
|
2016-03-21 14:54:58 +08:00
|
|
|
commands =
|
2018-07-03 13:28:14 +05:30
|
|
|
stestr --test-path=./tacker/tests/functional run --slowest --concurrency 2 {posargs}
|
2016-03-21 14:54:58 +08:00
|
|
|
|
2021-01-13 21:42:51 +09:00
|
|
|
[testenv:dsvm-functional-legacy]
|
|
|
|
setenv = {[testenv]setenv}
|
|
|
|
|
|
|
|
commands =
|
|
|
|
stestr --test-path=./tacker/tests/functional/legacy run --slowest --concurrency 1 {posargs}
|
|
|
|
|
|
|
|
[testenv:dsvm-functional-sol]
|
|
|
|
setenv = {[testenv]setenv}
|
|
|
|
|
|
|
|
commands =
|
|
|
|
stestr --test-path=./tacker/tests/functional/sol run --slowest --concurrency 1 {posargs}
|
|
|
|
|
2020-12-09 16:37:27 +09:00
|
|
|
[testenv:dsvm-functional-sol-separated-nfvo]
|
|
|
|
setenv = {[testenv]setenv}
|
|
|
|
|
|
|
|
commands =
|
|
|
|
stestr --test-path=./tacker/tests/functional/sol_separated_nfvo run --slowest --concurrency 1 {posargs}
|
|
|
|
|
Add a k8s cluster for the k8s related FT in zuul
This patch add a kubernetes cluster for the kubernetes related
functional tests of the VNF LCM in the zuul environment.
There is no impact to the existing jobs because this patch only
add a new job, however we may need to watch the load on the Zuul
environment due to its parallel jobs.
A new node-set consists of four nodes;
* Controller: Keystone, Nova, Neutron, Glance, Cinder, Octavia,
MySQL, MQ, ETCD
* Controller-tacker: Tacker, Tacker-conductor
* Controller-k8s: kuryr-k8s, kuryr-CNI, k8s-api, kubelet
* Compute: Nova-compute
All kubernetes resources are created on the controller-k8s node.
This patch includes the following changes:
* Added a execution command for the functional test of related
k8s for the VNF LCM in tox.ini.
* Registered a vim of the `kubernetes` type by ansible. Also
added related materials.
* Moved the functional test files for k8s to other new directory.
* Fixed a minor invalid definition in the definition file used
for functional testing.
Change-Id: I1621b904450e94d6793b4c524de6785520f2e805
2020-12-14 05:45:04 +00:00
|
|
|
[testenv:dsvm-functional-sol-kubernetes]
|
|
|
|
setenv = {[testenv]setenv}
|
|
|
|
|
|
|
|
commands =
|
|
|
|
stestr --test-path=./tacker/tests/functional/sol_kubernetes run --slowest --concurrency 2 {posargs}
|
|
|
|
|
2021-08-06 02:40:20 +00:00
|
|
|
[testenv:dsvm-functional-sol-v2]
|
|
|
|
setenv = {[testenv]setenv}
|
|
|
|
|
|
|
|
commands =
|
|
|
|
stestr --test-path=./tacker/tests/functional/sol_v2 run --slowest --concurrency 1 {posargs}
|
|
|
|
|
2016-04-18 10:52:10 +08:00
|
|
|
[testenv:debug]
|
|
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
|
2018-07-05 12:40:32 +09:00
|
|
|
[testenv:debug-py36]
|
|
|
|
basepython = python3.6
|
|
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
|
2020-11-08 06:05:05 +00:00
|
|
|
[testenv:debug-py39]
|
|
|
|
basepython = python3.9
|
|
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
|
2014-07-01 17:11:09 +09:00
|
|
|
[testenv:pep8]
|
2018-03-12 23:59:57 +09:00
|
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2014-07-01 17:11:09 +09:00
|
|
|
commands =
|
|
|
|
flake8
|
2017-01-06 22:34:32 +00:00
|
|
|
doc8 -e .rst doc/source/ CONTRIBUTING.rst HACKING.rst README.rst TESTING.rst
|
2014-06-26 17:50:34 +09:00
|
|
|
tacker-db-manage check_migration
|
2021-02-25 13:49:04 +05:30
|
|
|
allowlist_externals = bash
|
2014-07-01 17:11:09 +09:00
|
|
|
|
|
|
|
[testenv:i18n]
|
2019-07-12 09:00:15 +00:00
|
|
|
commands = python ./tools/check_i18n.py ./tacker
|
2014-07-01 17:11:09 +09:00
|
|
|
|
2015-10-15 02:47:33 +00:00
|
|
|
[testenv:docs]
|
2018-03-12 23:59:57 +09:00
|
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
2015-10-15 02:47:33 +00:00
|
|
|
commands =
|
2018-03-20 04:36:20 +09:00
|
|
|
sphinx-build -W -b html doc/source doc/build/html
|
2019-08-08 08:59:06 +00:00
|
|
|
oslopolicy-sample-generator --config-file=etc/tacker-policy-generator.conf
|
2015-10-15 02:47:33 +00:00
|
|
|
|
2016-06-21 16:53:06 +02:00
|
|
|
[testenv:api-ref]
|
2018-03-12 23:59:57 +09:00
|
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
2016-06-21 16:53:06 +02:00
|
|
|
commands =
|
|
|
|
rm -rf api-ref/build
|
|
|
|
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
2021-02-25 13:49:04 +05:30
|
|
|
allowlist_externals = rm
|
2016-06-21 16:53:06 +02:00
|
|
|
|
2016-05-31 20:14:00 -05:00
|
|
|
[testenv:releasenotes]
|
2018-03-12 23:59:57 +09:00
|
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
2016-05-31 20:14:00 -05:00
|
|
|
commands =
|
|
|
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
|
2014-07-01 17:11:09 +09:00
|
|
|
[testenv:cover]
|
2018-06-07 17:05:17 +09:00
|
|
|
setenv =
|
|
|
|
PYTHON=coverage run --source tacker --parallel-mode
|
2014-07-01 17:11:09 +09:00
|
|
|
commands =
|
2018-06-07 17:05:17 +09:00
|
|
|
stestr run {posargs}
|
|
|
|
coverage combine
|
|
|
|
coverage html -d cover
|
|
|
|
coverage xml -o cover/coverage.xml
|
2014-07-01 17:11:09 +09:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
# E128 continuation line under-indented for visual indent
|
2017-03-21 13:24:40 +08:00
|
|
|
# N320 log messages does not translate
|
2020-04-01 20:15:00 +02:00
|
|
|
# W503 line break before binary operator
|
|
|
|
# W504 line break after binary operator
|
|
|
|
ignore = E128,N320,W503,W504
|
2014-07-01 17:11:09 +09:00
|
|
|
show-source = true
|
|
|
|
builtins = _
|
2016-08-05 10:22:20 +08:00
|
|
|
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject
|
2014-07-01 17:11:09 +09:00
|
|
|
|
|
|
|
[hacking]
|
2016-07-06 15:56:10 +08:00
|
|
|
import_exceptions = tacker._i18n
|
2020-04-01 20:15:00 +02:00
|
|
|
|
|
|
|
[flake8:local-plugins]
|
|
|
|
extension =
|
|
|
|
N320 = checks:validate_log_translations
|
2021-11-29 18:19:36 +09:00
|
|
|
T301 = checks:no_log_warn
|
2020-04-01 20:15:00 +02:00
|
|
|
paths = ./tacker/hacking
|
2016-07-08 06:21:58 +05:30
|
|
|
|
|
|
|
[testenv:config-gen]
|
|
|
|
commands =
|
|
|
|
oslo-config-generator --config-file=etc/config-generator.conf
|
2018-03-22 18:56:07 -04:00
|
|
|
|
2019-08-08 08:59:06 +00:00
|
|
|
[testenv:genpolicy]
|
|
|
|
commands =
|
|
|
|
oslopolicy-sample-generator --config-file=etc/tacker-policy-generator.conf
|
|
|
|
|
2018-03-22 18:56:07 -04:00
|
|
|
[testenv:lower-constraints]
|
|
|
|
deps =
|
|
|
|
-c{toxinidir}/lower-constraints.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
-r{toxinidir}/requirements.txt
|
2019-06-28 07:20:26 +00:00
|
|
|
|
|
|
|
[testenv:bindep]
|
|
|
|
# Do not install any requirements. We want this to be fast and work even if
|
|
|
|
# system dependencies are missing, since it's used to tell you what system
|
|
|
|
# dependencies are missing! This also means that bindep must be installed
|
|
|
|
# separately, outside of the requirements files, and develop mode disabled
|
|
|
|
# explicitly to avoid unnecessarily installing the checked-out repo too (this
|
|
|
|
# further relies on "tox.skipsdist = True" above).
|
|
|
|
deps = bindep
|
|
|
|
commands = bindep test
|