Reinstate functional testing

None of our molecule tests were running but the job was executed.

This includes a fail-safe guard that should prevent such accidents
in the future. This assures the expected number of tests passed.

Change-Id: I6e1f80a7ecea65f42479376ce1a53c519f56bd68
This commit is contained in:
Sorin Sbarnea 2021-01-22 12:14:00 +00:00
parent 503fa8250f
commit 0ab1c4196e
1 changed files with 6 additions and 1 deletions

View File

@ -52,8 +52,13 @@ setenv =
ANSIBLE_CALLBACK_WHITELIST=profile_tasks
ANSIBLE_SHOW_CUSTOM_STATS=1
PYTHONPATH={env:PYTHONPATH:}:library
# failsafe mechanism to avoid accidental disablement of tests
# 3 molecule + 3 unit = 6
PYTEST_REQPASS=6
deps =
ansible>=2.9,<2.10
molecule[test,docker]>=3.1.5,<3.2 # MIT
molecule[test,docker]>=3.2.2,<3.3 # MIT
pytest-molecule
pytest-plus # provides support for PYTEST_REQPASS
commands =
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html {tty:-s} {posargs}