We are tickled pink to announce the release of: validations-libs 1.1.0: A common library for the validations framework The source is available from: https://opendev.org/openstack/validations-libs Download the package from: https://tarballs.openstack.org/validations-libs/ For more details, please see below. Changes in validations-libs 1.0.4..1.1.0 ---------------------------------------- 132d280 Invalid char '\xe2' replaced with double dash b871058 PDF docs are now available 5fad1a4 Create dedicated CLI for the Validation Framework a12c531 Exceptions now indicate cause where applicable d83be8b Expose ansible ssh_user variable to the run action 304db54 Add vars to tripleo-ci-centos-8-standalone-validation-libs job d5b92ff Add basic standalone job w/ validate-services true ca9dbbf Zuul runs tests in py36 only 6a20089 Expose callback_whitelist option to Run action 12cd88d Fixes string formatting of the error msg log 006ae40 Default to current user dir for log creation and management 28e069f Remove the condition to check the groups. 01103d6 Refactor the groups property in Validation class. 7754b36 Fix the syntax for groups in documentation. bcd6d6e Moving doc structure closer to that in validations-commons. 3b2d247 Return absolute path for inventory 618cde0 Add skip list option in order to provide a black list for validation c36ac52 Modifies README.rst to reference podman. f60caf8 show command now properly uses list of validations 4405071 Docker image refinement and preparation for future development. 4fabb3d Improved Dockefile and simplified use instructions. aa54ac2 Add new test for the parse_all_validations_on_disk e21f6f1 Add an error message when groups is not found in the playbook c29636e One of the two nested calls of os.path.join was redundant. 45b8600 Secondary loop removed. params_only dict now uses update method. 4b9dff2 OrderedDict can be constructed directly from dict instance 172a495 Style adjustment of a constant. 9dd1fca Removed unnecessary second check. a0db6e4 Allow to provide different stdout callback to the libs 8dc1549 Local vars were redefining builtins 5d43279 Dockerfile for installing Validation Framework in a CentOS container 276c20d Fix typo in validations_libs/ansible.py 87e4917 Move ansible-runner version to 1.4.0 fd226ce Handle dynamically the ansible artifacts dir path 5d55cfd Make the measuring code coverage test working bd12229 The lower constraint file has been removed 99071ee Bump pre-commit-hooks to v3.3.0 0641b17 Handle unreachable case in the log statistics 671e322 Update TOX_CONSTRAINTS_FILE be5a95d Add Docstrings to validations_libs/ansible.py file 9f644f0 Add Docstrings to validations_libs/validations_logs.py file c111571 Add Docstrings to validations_libs/validation_action.py file 10e9a19 Add Docstrings to validations_libs/group.py file eb62054 Enforce the way we encapsulate a Validation a6271af Add docstrings to utils.py 484d7a9 Remove output format test in utils.get_validations_parameters 63e30c7 Add better conversion of string parameters into a list 9192d58 Don't rely on parameter file extension for downloading 6d0d1ce Ensure we're using proper types for validation_name and _id d79245e Fix parameters management c59ea30 add Vagrantfile for Validation Framework dev work 8711468 [Validator Run] Detect unknown validations from the command-line 2c2b71a Remove CI roles from validations-libs cba2ce0 Add parameters values to the validation show command 0e46a5b Fix show validation stats with correct number 22a90ed Add ansible dependency 96a5d41 Install CI roles into ansible roles dir 4a36ca1 Add the documentation build back in the CI faadd4f Remove install unnecessary packages 4a660ec Fix lower-constraints errors Diffstat (except docs and test files) ------------------------------------- .coveragerc | 4 +- .dockerignore | 67 +++ .gitignore | 2 +- .pre-commit-config.yaml | 12 +- .stestr.conf | 2 +- .zuul.yaml | 42 +- CONTRIBUTING.rst | 19 + Dockerfile | 31 ++ README.rst | 61 ++- Vagrantfile.centos | 28 ++ Vagrantfile.ubuntu | 25 + bindep.txt | 7 + lower-constraints.txt | 115 ----- playbooks/post.yaml | 3 +- playbooks/validations-libs-functional.yaml | 3 +- releasenotes/notes/.gitkeep | 0 releasenotes/source/_static/.gitkeep | 0 releasenotes/source/conf.py | 321 +++++++++++++ releasenotes/source/index.rst | 18 + releasenotes/source/unreleased.rst | 5 + releasenotes/source/ussuri.rst | 6 + requirements.txt | 6 +- roles/fetch-validations/defaults/main.yaml | 3 - roles/fetch-validations/tasks/main.yaml | 24 - roles/validations/defaults/main.yaml | 23 - roles/validations/tasks/main.yaml | 29 -- roles/validations/tasks/validations.yaml | 25 - setup.cfg | 17 +- test-requirements.txt | 6 +- tox.ini | 58 ++- validations_libs/ansible.py | 166 +++++-- validations_libs/cli/__init__.py | 15 + validations_libs/cli/app.py | 58 +++ validations_libs/cli/common.py | 70 +++ validations_libs/cli/history.py | 86 ++++ validations_libs/cli/lister.py | 55 +++ validations_libs/cli/parseractions.py | 45 ++ validations_libs/cli/run.py | 174 +++++++ validations_libs/cli/show.py | 151 ++++++ validations_libs/constants.py | 10 +- validations_libs/group.py | 58 +++ validations_libs/utils.py | 254 ++++++++-- validations_libs/validation.py | 240 +++++++++- validations_libs/validation_actions.py | 544 ++++++++++++++++++++-- validations_libs/validation_logs.py | 298 ++++++++++-- 67 files changed, 4262 insertions(+), 493 deletions(-) Requirements updates -------------------- diff --git a/requirements.txt b/requirements.txt index 7a946be..c2abb7a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,2 +7,4 @@ six>=1.11.0 # MIT -PyYAML>=3.12 # MIT -ansible-runner>=1.3.4 # Apache-2.0 +PyYAML>=3.13 # MIT +ansible>=2.8,!=2.8.9,!=2.9.12,<2.10.0 +ansible-runner>=1.4.0 # Apache-2.0 +cliff>=3.2.0 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index eaa8652..ceccf64 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -5,0 +6,4 @@ hacking>=3.0,<3.1.0 # Apache-2.0 +# remove this pyflakes from here once you bump the +# hacking to 3.2.0 or above. hacking 3.2.0 takes +# care of pyflakes version compatibilty. +pyflakes>=2.1.1 @@ -9 +13 @@ python-subunit>=1.0.0 # Apache-2.0/BSD -stestr>=1.0.0 # Apache-2.0 +stestr>=2.0.0 # Apache-2.0