Move test_json_error_callback params into molecule

This change moves the environment parameters from the tox
config into the role specific molecule config. This is being
done for test clarity as the tox environment is obscuring the
required configuration for the plugin.

Change-Id: I115a3ba6fca5f989299136ec40da37f52b6cddef
Signed-off-by: Kevin Carter <kecarter@redhat.com>
This commit is contained in:
Kevin Carter 2019-07-01 09:34:01 -05:00
parent 7c23a01bd7
commit 0bf4186e3d
2 changed files with 4 additions and 5 deletions

View File

@ -139,11 +139,6 @@ commands =
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html {tty:-s} {toxinidir}/tests/test_molecule.py
[testenv:mol-test_json_error_callback]
setenv =
{[testenv]setenv}
JSON_ERROR_LOG_FILE=/tmp/json_error.log
ANSIBLE_LOAD_CALLBACK_PLUGINS=true
ANSIBLE_CALLBACK_WHITELIST=json_error
basepython = {[testenv:mol]basepython}
deps = {[testenv:mol]deps}
changedir = {toxinidir}/tripleo_ansible/roles/test_json_error_callback

View File

@ -30,9 +30,13 @@ platforms:
provisioner:
name: ansible
config_options:
defaults:
callback_whitelist: json_error
log: true
env:
ANSIBLE_STDOUT_CALLBACK: yaml
JSON_ERROR_LOG_FILE: /tmp/json_error.log
scenario:
test_sequence: