summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/playbooks/pre.yml8
-rw-r--r--tests/playbooks/run.yml9
2 files changed, 15 insertions, 2 deletions
diff --git a/tests/playbooks/pre.yml b/tests/playbooks/pre.yml
index 31944e992..afcf8f228 100644
--- a/tests/playbooks/pre.yml
+++ b/tests/playbooks/pre.yml
@@ -44,6 +44,12 @@
- python-wheel
- python-virtualenv
+ - name: Install CA certificates (to have up-to-date Let's Encrypt support)
+ become: true
+ package:
+ name:
+ - ca-certificates
+
- name: Install virtualenv on Debian systems
# NOTE(hrw): On RedHat systems it is part of python3-virtualenv
package:
@@ -57,7 +63,7 @@
# NOTE(mnasiadka): pip 8.x delivered with EPEL has problems installing
# zipp and configparser
become: true
- command: "pip install --upgrade pip"
+ command: "pip install --upgrade pip==20.*"
- name: Ensure tox is installed
pip:
diff --git a/tests/playbooks/run.yml b/tests/playbooks/run.yml
index 615990172..cdb6c11da 100644
--- a/tests/playbooks/run.yml
+++ b/tests/playbooks/run.yml
@@ -32,7 +32,14 @@
src: "{{ zuul.executor.work_root }}/{{ zuul.project.src_dir }}/tests/templates/template_overrides.j2"
dest: /etc/kolla/template_overrides.j2
+ # NOTE(hrw) REQUESTS_CA_BUNDLE is to get Let's Encrypt certificates trusted
- name: Run tox
- command: "{{ ansible_user_dir }}/tox-venv/bin/tox -e {{ action }}-{{ base_distro }}{{ base_tag | default('') }}-{{ install_type }}"
+ shell: |
+ if [ 'RedHat' == '{{ ansible_os_family }}' ]; then
+ export REQUESTS_CA_BUNDLE="/etc/pki/tls/certs/ca-bundle.crt"
+ fi
+ {{ ansible_user_dir }}/tox-venv/bin/tox -e {{ action }}-{{ base_distro }}{{ base_tag | default('') }}-{{ install_type }}
args:
chdir: "{{ zuul.project.src_dir }}"
+ environment:
+ UPPER_CONSTRAINTS_FILE: "{{ requirements_src_dir }}/upper-constraints.txt"