ironic-inspector/tox.ini
Yuiko Takada 274e1e9d2b Use keystonemiddleware auth credentials
We support oslo.config, so use Use keystonemiddleware auth credentials
instead of auth options ourselves.
Notes:
Below items will be used to get ironic client forever, not DEPRECATED,
but, in the case of keystone authentication, they are DEPRECATED.
Use [keystone_authtoken]'s items instead of them.
[ironic]
* os_auth_url
* os_username
* os_password
* os_tenant_name
And also this patch set drop default value of os_auth_url and identity_url,
so that this change will break people relying on ether/both of them.

Change-Id: Ib0774b6027bb60910dd4b5c2bc8acea0069ba0a1
Closes-Bug: #1435882
2015-06-12 19:22:57 +09:00

47 lines
1.2 KiB
INI

[tox]
envlist = py27,py34,pep8,func
[testenv]
usedevelop = True
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/plugin-requirements.txt
commands =
coverage run --branch --include "ironic_inspector*" -m unittest discover ironic_inspector.test
coverage run --branch --include "ironic_inspector_ramdisk*" -a -m unittest discover ironic_inspector_ramdisk.test
coverage report -m --fail-under 90
setenv = PYTHONDONTWRITEBYTECODE=1
[testenv:pep8]
basepython = python2.7
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/plugin-requirements.txt
commands =
flake8 ironic_inspector ironic_inspector_ramdisk
doc8 README.rst CONTRIBUTING.rst HTTP-API.rst
[flake8]
max-complexity=15
[hacking]
import_exceptions = ironicclient.exceptions,ironic_inspector.common.i18n
[testenv:func]
basepython = python2.7
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/plugin-requirements.txt
commands =
python functest/run.py
[testenv:genconfig]
commands =
oslo-config-generator \
--output-file example.conf \
--namespace ironic_inspector \
--namespace keystonemiddleware.auth_token