Browse Source
project: upgrade test dependencies and drop ansible-core 2.11 (#10034)
project: upgrade test dependencies and drop ansible-core 2.11 (#10034)
Molecule 5.0 require ansible-core 2.12.10. So this commit we update ansible-core from 2.12.5 to 2.12.10. We also drop supporting two ansible-core version. Also we now use the "oldest" still supported ansible-core version as both 2.11 is EOL and not supported by molecule. tests/molecule: remove linting in molecule to support molecule 5 tests/molecule: remove role name check for molecule 5 support Kubespray doesn't use ansible galaxy style naming so we have to disable that check. contrib/inventory_builder: fix tox.ini for tox4 tests/molecule: fix get_playbook in testinfra tests tests: upgrade most tests requirements Exclude ansible-lint for now, I will do that in a separate PR. tests/molecule: force kvm driver option If we don't do this it fallbacks to qemu emulated on our CI for some reasons. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>pull/10188/head
Arthur Outhenin-Chalandre
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 128 additions and 174 deletions
Split View
Diff Options
-
3.gitlab-ci.yml
-
8.gitlab-ci/packet.yml
-
4Dockerfile
-
14contrib/inventory_builder/tox.ini
-
6pipeline.Dockerfile
-
2playbooks/ansible_version.yml
-
10requirements-2.11.txt
-
10requirements-2.12.txt
-
1requirements.txt
-
10requirements.txt
-
10roles/adduser/molecule/default/molecule.yml
-
32roles/adduser/molecule/default/tests/test_default.py
-
10roles/bastion-ssh-config/molecule/default/molecule.yml
-
28roles/bastion-ssh-config/molecule/default/tests/test_default.py
-
18roles/bootstrap-os/molecule/default/molecule.yml
-
16roles/container-engine/containerd/molecule/default/molecule.yml
-
16roles/container-engine/cri-dockerd/molecule/default/molecule.yml
-
18roles/container-engine/cri-o/molecule/default/molecule.yml
-
16roles/container-engine/gvisor/molecule/default/molecule.yml
-
16roles/container-engine/kata-containers/molecule/default/molecule.yml
-
16roles/container-engine/youki/molecule/default/molecule.yml
-
11tests/requirements-2.11.txt
-
11tests/requirements-2.12.txt
-
1tests/requirements.txt
-
11tests/requirements.txt
-
4tests/scripts/testcases_prepare.sh
@ -1,10 +0,0 @@ |
|||
ansible==4.10.0 |
|||
ansible-core==2.11.11 |
|||
cryptography==3.4.8 |
|||
jinja2==3.1.2 |
|||
jmespath==1.0.1 |
|||
MarkupSafe==2.1.2 |
|||
netaddr==0.8.0 |
|||
pbr==5.11.1 |
|||
ruamel.yaml==0.17.21 |
|||
ruamel.yaml.clib==0.2.7 |
@ -1,10 +0,0 @@ |
|||
ansible==5.7.1 |
|||
ansible-core==2.12.5 |
|||
cryptography==3.4.8 |
|||
jinja2==3.1.2 |
|||
jmespath==1.0.1 |
|||
MarkupSafe==2.1.2 |
|||
netaddr==0.8.0 |
|||
pbr==5.11.1 |
|||
ruamel.yaml==0.17.21 |
|||
ruamel.yaml.clib==0.2.7 |
@ -1 +0,0 @@ |
|||
requirements-2.12.txt |
@ -0,0 +1,10 @@ |
|||
ansible==5.7.1 |
|||
ansible-core==2.12.10 |
|||
cryptography==3.4.8 |
|||
jinja2==3.1.2 |
|||
jmespath==1.0.1 |
|||
MarkupSafe==2.1.2 |
|||
netaddr==0.8.0 |
|||
pbr==5.11.1 |
|||
ruamel.yaml==0.17.21 |
|||
ruamel.yaml.clib==0.2.7 |
@ -1,11 +0,0 @@ |
|||
-r ../requirements-2.11.txt |
|||
ansible-lint==5.4.0 |
|||
apache-libcloud==2.2.1 |
|||
ara[server]==1.6.1 |
|||
dopy==0.3.7 |
|||
molecule==3.0.6 |
|||
molecule-vagrant==0.3 |
|||
python-vagrant==0.5.15 |
|||
testinfra==5.2.2 |
|||
tox==3.11.1 |
|||
yamllint==1.19.0 |
@ -1,11 +0,0 @@ |
|||
-r ../requirements-2.12.txt |
|||
ansible-lint==5.4.0 |
|||
apache-libcloud==2.2.1 |
|||
ara[server]==1.6.1 |
|||
dopy==0.3.7 |
|||
molecule==3.0.6 |
|||
molecule-vagrant==0.3 |
|||
python-vagrant==0.5.15 |
|||
testinfra==5.2.2 |
|||
tox==3.11.1 |
|||
yamllint==1.19.0 |
@ -1 +0,0 @@ |
|||
requirements-2.12.txt |
@ -0,0 +1,11 @@ |
|||
-r ../requirements.txt |
|||
ansible-lint==5.4.0 |
|||
apache-libcloud==3.7.0 |
|||
ara[server]==1.6.1 |
|||
dopy==0.3.7 |
|||
molecule==5.0.1 |
|||
molecule-plugins[vagrant]==23.4.1 |
|||
python-vagrant==1.0.0 |
|||
pytest-testinfra==7.0.0 |
|||
tox==4.5.1 |
|||
yamllint==1.31.0 |
@ -1,10 +1,8 @@ |
|||
#!/bin/bash |
|||
set -euxo pipefail |
|||
|
|||
: ${ANSIBLE_MAJOR_VERSION:=2.12} |
|||
|
|||
/usr/bin/python -m pip uninstall -y ansible ansible-base ansible-core |
|||
/usr/bin/python -m pip install -r tests/requirements-${ANSIBLE_MAJOR_VERSION}.txt |
|||
/usr/bin/python -m pip install -r tests/requirements.txt |
|||
mkdir -p /.ssh |
|||
mkdir -p cluster-dump |
|||
mkdir -p $HOME/.ssh |
|||
|
Write
Preview
Loading…
Cancel
Save