d383e772fd
This allows the user to apply and/or validate a manifest using either a filepath (as before) or URL. Addition by sh8121att: - Create a general document resolver class to handle local paths and URIs - Allow multiple filenames and combine them into a single document set - Change API to allow for passing document reference URIs to be resolved server-side rather - Update validation API to conform to UCP specification - Dockerfile updates to speed up build - Fix unit tests Closes #96 Change-Id: I5a57779f10d1b63ffc161a14afec851a34ae9efe
57 lines
1.2 KiB
INI
57 lines
1.2 KiB
INI
[tox]
|
|
skipsdist = True
|
|
envlist = py35, pep8, coverage, bandit
|
|
|
|
[testenv]
|
|
deps=
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
passenv=HTTP_PROXY HTTPS_PROXY http_proxy https_proxy NO_PROXY no_proxy
|
|
setenv=
|
|
VIRTUAL_ENV={envdir}
|
|
basepython = python3.5
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
whitelist_externals = find
|
|
flake8
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
python -V
|
|
py.test -vvv -s --ignore=hapi {posargs}
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:genconfig]
|
|
commands =
|
|
oslo-config-generator --config-file=etc/armada/config-generator.conf
|
|
|
|
[testenv:genpolicy]
|
|
commands =
|
|
oslopolicy-sample-generator --config-file=etc/armada/policy-generator.conf
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8 {posargs}
|
|
|
|
[testenv:bandit]
|
|
commands =
|
|
bandit -r armada -x armada/tests -n 5
|
|
|
|
[testenv:coverage]
|
|
passenv=http_proxy https_proxy no_proxy HTTP_PROXY HTTPS_PROXY NO_PROXY
|
|
setenv=
|
|
VIRTUAL_ENV={envdir}
|
|
commands =
|
|
python -m pytest \
|
|
--cov-branch \
|
|
--cov-report term-missing:skip-covered \
|
|
--cov-config .coveragerc \
|
|
--cov=armada
|
|
|
|
[flake8]
|
|
filename= *.py
|
|
ignore = E722
|
|
exclude= .git, .idea, .tox, *.egg-info, *.eggs, bin, dist, hapi, docs/*, build/*
|