From c3d5a7b1b870931d48227dc58f0705d8f116b7bf Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 10 Sep 2022 11:16:36 +0200 Subject: [PATCH] Restrict Python packages for nomad tests. (#5262) (#5264) (cherry picked from commit dde0b55f1ae50d5d9dc6b23fb90eb6aa07a6dbf4) Co-authored-by: Felix Fontein --- tests/integration/targets/nomad/meta/main.yml | 1 + tests/integration/targets/nomad/tasks/main.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tests/integration/targets/nomad/meta/main.yml b/tests/integration/targets/nomad/meta/main.yml index f9bb8406a4..e54aea9798 100644 --- a/tests/integration/targets/nomad/meta/main.yml +++ b/tests/integration/targets/nomad/meta/main.yml @@ -3,3 +3,4 @@ dependencies: - setup_pkg_mgr - setup_openssl - setup_remote_tmp_dir + - setup_remote_constraints diff --git a/tests/integration/targets/nomad/tasks/main.yml b/tests/integration/targets/nomad/tasks/main.yml index abf78aad98..a9c5e24fe3 100644 --- a/tests/integration/targets/nomad/tasks/main.yml +++ b/tests/integration/targets/nomad/tasks/main.yml @@ -15,6 +15,7 @@ - name: Install requests<2.20 (CentOS/RHEL 6) pip: name: requests<2.20 + extra_args: "-c {{ remote_constraints }}" register: result until: result is success when: ansible_distribution_file_variety|default() == 'RedHat' and ansible_distribution_major_version is version('6', '<=') @@ -22,12 +23,14 @@ - name: Install python-nomad pip: name: python-nomad + extra_args: "-c {{ remote_constraints }}" register: result until: result is success - name: Install jmespath pip: name: jmespath + extra_args: "-c {{ remote_constraints }}" register: result until: result is success