d6404d2f99
As agreed on the summit I'm renaming the python modules and doing some adjustments: * This is a breaking change, so version is bumped to 2.0.0 * Used this chance to split conf options over proper sections * RELEASES.rst is gone; it's too hard to keep it up-to-date; anyway git does better job at doing history * Dropped deprecated option ports_for_inactive_interfaces * Dropped old /v1/discover endpoint and associated client call * No longer set on_discovery and newly_discovered in Node.extra (deprecated since 1.0.0, superseded by the get status API) * Default firewall chain name is "ironic-inspector" and is configurable Notes: * Some links will be updated after real move. * Stable branches will probably use the old name. * Some usage of discovery word is left in context of "discovered data" * DIB element will probably be deprecated, so leaving it alone for now. * Some usages of word "discovery" in the README will be updated later to make this patch a bit smaller * Ramdisk code will be moved to IPA, so not touching it too much Change-Id: I59f1f5bfb1248ab69973dab845aa028df493054e
46 lines
1.2 KiB
INI
46 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
|