This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.2.x by this push:
     new ec49ba9  Fixing the httpbin AuTests by pinning Werkzeug (#8765)
ec49ba9 is described below

commit ec49ba98de0afb651df897be5dd80a3b70b7eef9
Author: Brian Neradt <[email protected]>
AuthorDate: Tue Mar 29 07:13:29 2022 -0500

    Fixing the httpbin AuTests by pinning Werkzeug (#8765)
    
    The AuTests using httpbin all started failing today when new AuTest
    pipenv environments started using the 2.1.0 version of Werkzeug. This
    new Werkzeug release removes its BaseResponse API because it has been
    deprecated for a few releases. httpbin has a dependency upon
    BaseResponse, however, and thus it currently fails with this latest
    Werkzeug release. This patch temporarily pins Werkzeug until httpbin is
    updated so that our httpbin AuTests can run.
    
    (cherry picked from commit 57b10e2253f615c1ed0f7d84d2b5b60fb658cddd)
---
 tests/Pipfile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/Pipfile b/tests/Pipfile
index 4c810ba..431f330 100644
--- a/tests/Pipfile
+++ b/tests/Pipfile
@@ -43,5 +43,11 @@ microserver = ">=1.0.6"
 jsonschema = "*"
 python-jose = "*"
 
+# The latest version of Werkzeug (2.1.0) breaks httpbin because it removes
+# deprecated function `BaseResponse` that httpbin directly or indirectly
+# depends upon. Pinning Wekrzeug for now until httpbin or its dependencies is
+# updated for the changed API.
+Werkzeug = "==2.0.3"
+
 [requires]
 python_version = "3"

Reply via email to