In python3.x mock is now part of unittest library.
For being still compatible with python 2.7 we need to
catch import error when trying to import unittest.mock
Change-Id: I6aca21bea4f1563e1f3c5ecfb91c511191eb409b
Add backward compatibility for old ansible_runner releases.
Ansible_runner.runner_config under 1.4.x has a different
way to handle envars and doesn't have location isolation behavior.
So we need to handle this two differences in ansible.py code to be
able to use it in stable/train openstack branch.
Change-Id: Ic2e477ec55758144b6eacc8a9b52ece881855d44
Create two classes for Log and Logs in order to get
a simpler representation of the validation Log and
provide easy way to manage the log data informations
Change-Id: I743355cef943e43492264d4c4700bebbeab9a37d
This patch also adds dependency to the linters jobs to save the CI.
Change-Id: I2ce56ddc1841bba78905a8460e26c541602f75df
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
It's better to use templates so that we can change configuration
globally. Use the lower-constraints template.
Also, sort list of templates and indent items by two spaces as we do
normally.
Change-Id: I64197cd887e9af5e0c9a811bb7e75b1e87e96ded
Move all validation actions into a ValidationActions class
in order to have one object with several validations actions
Add group info implementation
And add group object like validation object to have
a simpler representation of the validation group.
Change-Id: Idc7a55e26de20968f0a6a90f2a005d21a30c9e70
This review add functionnalities to parse and show
validations output as dict with the required format
Change-Id: I57ca3d18397c7fbdb084b06224d7cab3d4592d30
Now that we have moved to py36 and later runtimes, we no longer
need to use the third party mock library and can only use the standard
library unittest.mock instead.
Change-Id: I97219a6b3ca2cff88b8871458466825e79736f77
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
Improve the way we log on the file system and share
the same uuid for callback logging and ansible
runner and artifact logging
This patch also adds zuul.d directory:
* Adds zuul.d/layout.yaml
* Adds .gitreview file
* Fixes ansible-runner requirements issue
Co-Authored-By: Gael Chamoulaud <gchamoul@redhat.com>
Change-Id: I4da8c1974362029754aa5b09cd8e6c7d6a27dd0d
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>