Merge "Update validations for Ansible 2.11"

This commit is contained in:
Zuul 2021-10-04 21:04:54 +00:00 committed by Gerrit Code Review
commit 835836aa7f
8 changed files with 21 additions and 7 deletions

View File

@ -1,5 +1,6 @@
exclude_paths:
- releasenotes/
- roles/fetch_validations/
parseable: true
quiet: false
rulesdir:

View File

@ -36,7 +36,7 @@ repos:
always_run: true
pass_filenames: false
additional_dependencies:
- 'ansible<2.10'
- 'ansible-core<2.12'
verbose: true
entry: ansible-lint --force-color -p -v

View File

@ -0,0 +1,5 @@
---
collections:
- containers.podman
- community.general
- ansible.posix

View File

@ -1,5 +1,5 @@
# this is required for the molecule jobs
ansible>=2.8,!=2.8.9,!=2.9.12,<2.10.0 # GPLv3+
ansible-core<2.12 # GPLv3+
ansi2html # LGPLv3+
jinja2>=2.8.0 # BSD-3-Clause
mock # BSD

View File

@ -45,6 +45,9 @@
virtualenv_command: "{{ ensure_pip_virtualenv_command }}"
virtualenv_site_packages: true
- name: Set up collections
command: "{{ ansible_user_dir }}/test-python/bin/ansible-galaxy install -fr {{ validations_common_project_path }}/ansible-collections-requirements.yml"
- name: Display test-python virtualenv package versions
shell: |-
. {{ ansible_user_dir }}/test-python/bin/activate

View File

@ -2,7 +2,6 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
ansible>=2.8,!=2.8.9,!=2.9.12,<2.10.0 # GPLv3+
coverage!=4.4,>=4.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
stestr>=3.0.1 # Apache-2.0

10
tox.ini
View File

@ -33,12 +33,16 @@ setenv =
HOME={envdir}
DISABLE_PIP_VERSION_CHECK=1
commands =
ansible-galaxy install -fr {toxinidir}/ansible-collections-requirements.yml
stestr run --slowest --color {posargs}
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
-r {toxinidir}/doc/requirements.txt
whitelist_externals = bash
ansible-core<2.12 # GPLv3+
whitelist_externals =
bash
ansible-galaxy
[testenv:py27]
envtmpdir={envdir}/tmp
@ -55,7 +59,7 @@ deps =
-c {env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/train}
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
ansible>=2
ansible-core<2.12
whitelist_externals =
bash
cp
@ -86,6 +90,7 @@ deps =
commands =
bash -c "ANSIBLE_ROLES_PATH='{toxinidir}/validations_common/roles'"
bash -c "ANSIBLE_LIBRARY='{toxinidir}/validations_common/library'"
ansible-galaxy install -fr {toxinidir}/ansible-collections-requirements.yml
python -m pre_commit run ansible-lint -a
[testenv:yamllint]
@ -117,6 +122,7 @@ deps =
-c {env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
ansible-core<2.12 # GPLv3+
commands =
python '{toxinidir}/tools/validate-files.py' .
{[testenv:ansible-lint]commands}

View File

@ -42,7 +42,7 @@
- skip_ansible_lint
- name: Format the partition with XFS with ftype=1
filesystem:
community.general.filesystem:
fstype: xfs
dev: "{{ losetup.stdout }}"
opts: -n ftype=1
@ -53,7 +53,7 @@
state: directory
- name: Mount the XFS partition
mount:
ansible.posix.mount:
path: /xfs
src: "{{ losetup.stdout }}p1"
fstype: xfs