From e75d82131dd0888a5aadd553ecc868209be4dc53 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Fri, 5 May 2023 15:06:38 +0200
Subject: [PATCH] Pin requests to < 2.29 temporarily

Due to https://github.com/docker/docker-py/issues/3113 requests need to
be pinned below 2.29 as a temporary solution.
---
 tests/azure/templates/build_container.yml      | 2 +-
 tests/azure/templates/galaxy_pytest_script.yml | 1 +
 tests/azure/templates/galaxy_script.yml        | 1 +
 tests/azure/templates/playbook_fast.yml        | 1 +
 tests/azure/templates/playbook_tests.yml       | 1 +
 tests/azure/templates/pytest_tests.yml         | 1 +
 6 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/azure/templates/build_container.yml b/tests/azure/templates/build_container.yml
index 32cd844a..d0de0809 100644
--- a/tests/azure/templates/build_container.yml
+++ b/tests/azure/templates/build_container.yml
@@ -22,7 +22,7 @@ jobs:
     retryCountOnTaskFailure: 5
     displayName: Install tools
 
-  - script: pip install molecule-plugins[docker]
+  - script: pip install molecule-plugins[docker] requests<2.29
     retryCountOnTaskFailure: 5
     displayName: Install molecule
 
diff --git a/tests/azure/templates/galaxy_pytest_script.yml b/tests/azure/templates/galaxy_pytest_script.yml
index 668706ab..cbf6df48 100644
--- a/tests/azure/templates/galaxy_pytest_script.yml
+++ b/tests/azure/templates/galaxy_pytest_script.yml
@@ -24,6 +24,7 @@ jobs:
   - script: |
       pip install \
         "molecule-plugins[docker]" \
+        "requests<2.29" \
         "ansible${{ parameters.ansible_version }}"
     retryCountOnTaskFailure: 5
     displayName: Install molecule and Ansible
diff --git a/tests/azure/templates/galaxy_script.yml b/tests/azure/templates/galaxy_script.yml
index 9b27b2e5..ca6af4de 100644
--- a/tests/azure/templates/galaxy_script.yml
+++ b/tests/azure/templates/galaxy_script.yml
@@ -34,6 +34,7 @@ jobs:
   - script: |
       pip install \
         "molecule-plugins[docker]" \
+        "requests<2.29" \
         "ansible${{ parameters.ansible_version }}"
     retryCountOnTaskFailure: 5
     displayName: Install molecule and Ansible
diff --git a/tests/azure/templates/playbook_fast.yml b/tests/azure/templates/playbook_fast.yml
index 5f27bd94..3a26df2a 100644
--- a/tests/azure/templates/playbook_fast.yml
+++ b/tests/azure/templates/playbook_fast.yml
@@ -33,6 +33,7 @@ jobs:
   - script: |
       pip install \
         "molecule-plugins[docker]" \
+        "requests<2.29" \
         "ansible${{ parameters.ansible_version }}"
     retryCountOnTaskFailure: 5
     displayName: Install molecule and Ansible
diff --git a/tests/azure/templates/playbook_tests.yml b/tests/azure/templates/playbook_tests.yml
index 28e9b750..2a7ea8af 100644
--- a/tests/azure/templates/playbook_tests.yml
+++ b/tests/azure/templates/playbook_tests.yml
@@ -33,6 +33,7 @@ jobs:
   - script: |
       pip install \
         "molecule-plugins[docker]" \
+        "requests<2.29" \
         "ansible${{ parameters.ansible_version }}"
     retryCountOnTaskFailure: 5
     displayName: Install molecule and Ansible
diff --git a/tests/azure/templates/pytest_tests.yml b/tests/azure/templates/pytest_tests.yml
index 8b205635..1159e056 100644
--- a/tests/azure/templates/pytest_tests.yml
+++ b/tests/azure/templates/pytest_tests.yml
@@ -27,6 +27,7 @@ jobs:
   - script: |
       pip install \
         "molecule-plugins[docker]" \
+        "requests<2.29" \
         "ansible${{ parameters.ansible_version }}"
     retryCountOnTaskFailure: 5
     displayName: Install molecule and Ansible
-- 
GitLab