2012-01-31 13:45:53 -05:00
|
|
|
[tox]
|
2013-09-23 20:26:26 -04:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2015-07-03 00:57:39 +02:00
|
|
|
envlist = py27,py34,pep8,docs,genconfig
|
2012-01-31 13:45:53 -05:00
|
|
|
|
|
|
|
[testenv]
|
2013-09-23 20:26:26 -04:00
|
|
|
usedevelop = True
|
2013-10-10 13:36:03 +00:00
|
|
|
install_command = pip install -U {opts} {packages}
|
2012-02-28 00:46:14 -08:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2015-08-31 10:41:11 +10:00
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
.[ldap,memcache,mongodb]
|
2015-01-07 16:05:24 -06:00
|
|
|
commands = bash tools/pretty_tox.sh '{posargs}'
|
2014-03-31 20:54:06 +02:00
|
|
|
whitelist_externals = bash
|
2015-06-15 10:09:52 +09:00
|
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
2012-01-31 13:45:53 -05:00
|
|
|
|
2014-09-03 19:03:51 +00:00
|
|
|
[testenv:py34]
|
2015-07-02 11:32:29 +12:00
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
2014-03-27 22:47:42 +00:00
|
|
|
nose
|
2015-08-31 10:41:11 +10:00
|
|
|
.[memcache,mongodb]
|
2014-03-27 22:47:42 +00:00
|
|
|
commands =
|
2014-07-18 13:57:40 +00:00
|
|
|
nosetests --with-coverage --cover-package=keystone \
|
2015-07-03 00:57:39 +02:00
|
|
|
keystone/tests/unit/auth/test_controllers.py \
|
|
|
|
keystone/tests/unit/catalog/test_core.py \
|
2015-07-20 17:25:35 -05:00
|
|
|
keystone/tests/unit/common/test_base64utils.py \
|
2015-07-03 00:57:39 +02:00
|
|
|
keystone/tests/unit/common/test_injection.py \
|
|
|
|
keystone/tests/unit/common/test_json_home.py \
|
|
|
|
keystone/tests/unit/common/test_sql_core.py \
|
2015-07-20 20:18:27 -05:00
|
|
|
keystone/tests/unit/common/test_utils.py \
|
2015-07-03 00:57:39 +02:00
|
|
|
keystone/tests/unit/test_auth_plugin.py \
|
|
|
|
keystone/tests/unit/test_backend.py \
|
|
|
|
keystone/tests/unit/test_backend_endpoint_policy.py \
|
|
|
|
keystone/tests/unit/test_backend_rules.py \
|
|
|
|
keystone/tests/unit/test_cache_backend_mongo.py \
|
2015-07-20 20:54:01 -05:00
|
|
|
keystone/tests/unit/test_config.py \
|
2015-07-22 20:36:10 -05:00
|
|
|
keystone/tests/unit/test_contrib_s3_core.py \
|
2015-07-03 00:57:39 +02:00
|
|
|
keystone/tests/unit/test_driver_hints.py \
|
2015-07-22 21:03:07 -05:00
|
|
|
keystone/tests/unit/test_exception.py \
|
2015-07-03 00:57:39 +02:00
|
|
|
keystone/tests/unit/test_policy.py \
|
|
|
|
keystone/tests/unit/test_singular_plural.py \
|
|
|
|
keystone/tests/unit/test_sql_livetest.py \
|
|
|
|
keystone/tests/unit/test_sql_migrate_extensions.py \
|
|
|
|
keystone/tests/unit/test_sql_upgrade.py \
|
|
|
|
keystone/tests/unit/test_ssl.py \
|
|
|
|
keystone/tests/unit/test_token_bind.py \
|
|
|
|
keystone/tests/unit/test_url_middleware.py \
|
|
|
|
keystone/tests/unit/test_v3_controller.py \
|
|
|
|
keystone/tests/unit/test_validation.py \
|
|
|
|
keystone/tests/unit/test_wsgi.py \
|
|
|
|
keystone/tests/unit/tests/test_core.py \
|
|
|
|
keystone/tests/unit/tests/test_utils.py \
|
|
|
|
keystone/tests/unit/token/test_pki_provider.py \
|
|
|
|
keystone/tests/unit/token/test_pkiz_provider.py \
|
|
|
|
keystone/tests/unit/token/test_token_model.py \
|
|
|
|
keystone/tests/unit/token/test_uuid_provider.py
|
2014-03-27 20:07:50 +00:00
|
|
|
|
2012-01-31 13:45:53 -05:00
|
|
|
[testenv:pep8]
|
2014-08-13 14:25:53 +04:00
|
|
|
commands =
|
2014-02-14 11:21:24 -08:00
|
|
|
flake8 {posargs}
|
2014-06-28 00:23:39 -07:00
|
|
|
# Run bash8 during pep8 runs to ensure violations are caught by
|
|
|
|
# the check and gate queues
|
2015-07-07 23:16:48 +00:00
|
|
|
bashate examples/pki/gen_pki.sh
|
2014-03-31 20:54:06 +02:00
|
|
|
# Check that .po and .pot files are valid.
|
2014-12-02 19:19:15 +00:00
|
|
|
bash -c "find keystone -type f -regex '.*\.pot?' -print0| \
|
2014-03-31 20:54:06 +02:00
|
|
|
xargs -0 -n 1 msgfmt --check-format -o /dev/null"
|
2012-01-31 13:45:53 -05:00
|
|
|
|
2012-06-15 16:58:49 -04:00
|
|
|
[tox:jenkins]
|
2012-01-31 13:45:53 -05:00
|
|
|
downloadcache = ~/cache/pip
|
|
|
|
|
2012-02-28 00:46:14 -08:00
|
|
|
[testenv:cover]
|
2013-10-28 15:41:55 +00:00
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
2012-02-28 00:46:14 -08:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2012-12-22 15:36:34 -06:00
|
|
|
|
2013-10-31 12:29:38 -05:00
|
|
|
[testenv:debug]
|
2014-10-21 17:53:39 -04:00
|
|
|
commands = oslo_debug_helper {posargs}
|
2013-10-31 12:29:38 -05:00
|
|
|
|
2015-01-27 17:05:28 +00:00
|
|
|
[testenv:functional]
|
|
|
|
basepython = python3.4
|
2015-07-02 11:32:29 +12:00
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
2015-01-27 17:05:28 +00:00
|
|
|
setenv = OS_TEST_PATH=./keystone/tests/functional
|
|
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
|
2013-05-11 14:48:00 -04:00
|
|
|
[flake8]
|
2014-12-19 15:51:30 +00:00
|
|
|
filename= *.py,keystone-all,keystone-manage
|
2013-05-11 14:48:00 -04:00
|
|
|
show-source = true
|
2013-05-23 10:50:01 -05:00
|
|
|
|
2014-08-14 19:04:50 +00:00
|
|
|
# H405 multi line docstring summary not separated with an empty line
|
2015-01-11 12:10:09 -06:00
|
|
|
ignore = H405
|
2013-05-23 10:50:01 -05:00
|
|
|
|
2014-06-01 10:17:22 +02:00
|
|
|
exclude=.venv,.git,.tox,build,dist,doc,*openstack/common*,*lib/python*,*egg,tools,vendor,.update-venv,*.ini,*.po,*.pot
|
2014-10-16 23:10:13 -07:00
|
|
|
max-complexity=24
|
2013-10-21 14:10:27 +00:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
commands=
|
2015-07-20 22:31:45 -07:00
|
|
|
bash -c "rm -rf doc/build"
|
|
|
|
bash -c "rm -rf doc/source/api"
|
2013-10-21 14:10:27 +00:00
|
|
|
python setup.py build_sphinx
|
2014-02-11 17:12:17 -08:00
|
|
|
|
2015-05-15 10:10:28 -05:00
|
|
|
[testenv:genconfig]
|
2014-08-13 09:13:04 -05:00
|
|
|
commands = oslo-config-generator --config-file=config-generator/keystone.conf
|
2013-11-29 16:46:08 +02:00
|
|
|
|
2015-03-24 10:07:50 -05:00
|
|
|
[testenv:bandit]
|
2015-07-30 16:56:15 -05:00
|
|
|
deps = .[bandit]
|
2015-09-18 15:08:02 -05:00
|
|
|
commands = bandit -c bandit.yaml -r keystone -n5 -p gate
|
2015-03-24 10:07:50 -05:00
|
|
|
|
2013-11-29 16:46:08 +02:00
|
|
|
[hacking]
|
2014-07-02 18:02:08 -05:00
|
|
|
import_exceptions =
|
|
|
|
keystone.i18n
|
2015-04-23 15:04:23 +00:00
|
|
|
six.moves
|
2015-07-17 06:17:30 +00:00
|
|
|
local-check-factory = keystone.tests.hacking.checks.factory
|