97ebbe3a8f
Also needed to switch charm to use _stored rather than state inline with ops framework change. Related-Bug: 2002788 Change-Id: I0bf8ece1f930157e6a4fad087d8c24ad5f5cfe6b
56 lines
1.4 KiB
INI
56 lines
1.4 KiB
INI
# Source charm (with zaza): ./src/tox.ini
|
|
# This file is managed centrally by release-tools and should not be modified
|
|
# within individual charm repos. See the 'global' dir contents for available
|
|
# choices of tox.ini for OpenStack Charms:
|
|
# https://github.com/openstack-charmers/release-tools
|
|
|
|
[tox]
|
|
envlist = pep8
|
|
# NOTE: Avoid build/test env pollution by not enabling sitepackages.
|
|
sitepackages = False
|
|
# NOTE: Avoid false positives by not skipping missing interpreters.
|
|
skip_missing_interpreters = False
|
|
|
|
[testenv]
|
|
# We use tox mainly for virtual environment management for test requirements
|
|
# and do not install the charm code as a Python package into that environment.
|
|
# Ref: https://tox.wiki/en/latest/config.html#skip_install
|
|
skip_install = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONHASHSEED=0
|
|
allowlist_externals = juju
|
|
passenv =
|
|
HOME
|
|
TERM
|
|
CS_*
|
|
OS_*
|
|
TEST_*
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
commands = charm-proof
|
|
|
|
[testenv:func-noop]
|
|
basepython = python3
|
|
commands =
|
|
functest-run-suite --help
|
|
|
|
[testenv:func]
|
|
basepython = python3
|
|
commands =
|
|
functest-run-suite --keep-model
|
|
|
|
[testenv:func-smoke]
|
|
basepython = python3
|
|
commands =
|
|
functest-run-suite --keep-model --smoke
|
|
|
|
[testenv:func-target]
|
|
basepython = python3
|
|
commands =
|
|
functest-run-suite --keep-model --bundle {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|