From 909ac92fe274b3e7dfcc61ee8206010d0a8c3f6d Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 9 Feb 2021 07:47:08 +0100 Subject: [PATCH] Fix CI (#1752) * Limit cryptography to < 3.4 for Python < 3.6. * Work around old pip versions. * Use constraints file when installing stormssh. * Work around old pip in RHEL8.2, CentOS 8, Ubuntu 18.04, and OpenSuSE 15 --- tests/integration/targets/ssh_config/meta/main.yml | 2 ++ tests/integration/targets/ssh_config/tasks/main.yml | 1 + tests/utils/constraints.txt | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 tests/integration/targets/ssh_config/meta/main.yml diff --git a/tests/integration/targets/ssh_config/meta/main.yml b/tests/integration/targets/ssh_config/meta/main.yml new file mode 100644 index 0000000000..91a63627f6 --- /dev/null +++ b/tests/integration/targets/ssh_config/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: + - setup_remote_constraints diff --git a/tests/integration/targets/ssh_config/tasks/main.yml b/tests/integration/targets/ssh_config/tasks/main.yml index abb2b1b16c..12f277b455 100644 --- a/tests/integration/targets/ssh_config/tasks/main.yml +++ b/tests/integration/targets/ssh_config/tasks/main.yml @@ -6,6 +6,7 @@ pip: name: stormssh state: present + extra_args: "-c {{ remote_constraints }}" - set_fact: output_dir_test: '{{ output_dir }}/test_ssh_config' diff --git a/tests/utils/constraints.txt b/tests/utils/constraints.txt index ae6000ae18..c5db3156ab 100644 --- a/tests/utils/constraints.txt +++ b/tests/utils/constraints.txt @@ -1,6 +1,8 @@ coverage >= 4.2, < 5.0.0, != 4.3.2 ; python_version <= '3.7' # features in 4.2+ required, avoid known bug in 4.3.2 on python 2.6, coverage 5.0+ incompatible coverage >= 4.5.4, < 5.0.0 ; python_version > '3.7' # coverage had a bug in < 4.5.4 that would cause unit tests to hang in Python 3.8, coverage 5.0+ incompatible cryptography < 2.2 ; python_version < '2.7' # cryptography 2.2 drops support for python 2.6 +cryptography >= 3.0, < 3.4 ; python_version < '3.6' # cryptography 3.4 drops support for python 2.7 +cryptography >= 3.3, < 3.4 # FIXME: the upper limit is needed for RHEL8.2, CentOS 8, Ubuntu 18.04, and OpenSuSE 15 deepdiff < 4.0.0 ; python_version < '3' # deepdiff 4.0.0 and later require python 3 jinja2 < 2.11 ; python_version < '2.7' # jinja2 2.11 and later require python 2.7 or later urllib3 < 1.24 ; python_version < '2.7' # urllib3 1.24 and later require python 2.7 or later