
Refactor orchestrator to break large monolithic functions into small functions per action. - Update orchestrator to match new statemgmt API - Pull most code out of __init__.py files - Create action classes for Orchestrator actions - Create action classes for Driver actions - Orchestrator consumes tasks from database queue - Additional encapsulation of task functionality into Task class - Create shared integration test fixtures - Fix Sphinx entrypoint so package install works - Disable bootdata API until BootAction implementation - Bring codebase into PEP8 compliance - Update documentation reflect code changes - Mark SQL #nosec for bandit Change-Id: Id9a7bdedcdd5bbf07aeabbdb52db0f0b71f1e4a4
64 lines
1.4 KiB
INI
64 lines
1.4 KiB
INI
[tox]
|
|
envlist = py35
|
|
|
|
[testenv]
|
|
basepython=python3.5
|
|
deps=
|
|
-rrequirements-direct.txt
|
|
-rrequirements-test.txt
|
|
|
|
[testenv:freeze]
|
|
whitelist_externals=rm
|
|
deps=
|
|
-rrequirements-direct.txt
|
|
commands=
|
|
rm requirements-lock.txt
|
|
sh -c "pip freeze --all | grep -v 'drydock-provisioner' > requirements-lock.txt"
|
|
|
|
[testenv:yapf]
|
|
whitelist_externals=find
|
|
commands=
|
|
yapf -i -r --style=pep8 {toxinidir}/setup.py
|
|
yapf -i -r --style=pep8 {toxinidir}/alembic
|
|
yapf -i -r --style=pep8 {toxinidir}/drydock_provisioner
|
|
yapf -i -r --style=pep8 {toxinidir}/tests
|
|
find {toxinidir}/drydock_provisioner -name '__init__.py' -exec yapf -i --style=pep8 \{\} ;
|
|
|
|
[testenv:unit]
|
|
setenv=
|
|
PYTHONWARNING=all
|
|
commands=
|
|
py.test \
|
|
tests/unit/{posargs}
|
|
|
|
[testenv:integration]
|
|
setenv=
|
|
PYTHONWARNING=all
|
|
commands=
|
|
py.test \
|
|
tests/integration/{posargs}
|
|
|
|
[testenv:genconfig]
|
|
commands = oslo-config-generator --config-file=etc/drydock/drydock-config-generator.conf
|
|
|
|
[testenv:genpolicy]
|
|
commands = oslopolicy-sample-generator --config-file etc/drydock/drydock-policy-generator.conf
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 \
|
|
{posargs}
|
|
|
|
[testenv:bandit]
|
|
commands = bandit -r drydock_provisioner -n 5
|
|
|
|
[flake8]
|
|
ignore=E302,H306,H304,W503,E251
|
|
exclude= venv,.venv,.git,.idea,.tox,*.egg-info,*.eggs,bin,dist,./build/,alembic/
|
|
max-line-length=119
|
|
|
|
[testenv:docs]
|
|
whitelist_externals=rm
|
|
commands =
|
|
rm -rf docs/build
|
|
sphinx-build -b html docs/source docs/build
|