This is an automated email from the ASF dual-hosted git repository. bneradt pushed a commit to branch fix_httpbin_autest_failures_81x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit ef49ab198c6c7b38fc63975e0660394ee7189c92 Author: Brian Neradt <[email protected]> AuthorDate: Tue Mar 29 00:17:38 2022 +0000 Fixing the httpbin AuTests by pinning Werkzeug 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. This is a rebase of #8765 to 8.1.x. --- tests/Pipfile | 6 ++++++ tests/bootstrap.py | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/Pipfile b/tests/Pipfile index fdfb7e3..8957f27 100644 --- a/tests/Pipfile +++ b/tests/Pipfile @@ -39,5 +39,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" diff --git a/tests/bootstrap.py b/tests/bootstrap.py index 3d9e437..639c2fa 100755 --- a/tests/bootstrap.py +++ b/tests/bootstrap.py @@ -37,7 +37,13 @@ pip_packages = [ "dnslib", "httpbin", "gunicorn", - "traffic-replay" # this should install TRLib, MicroServer, MicroDNS, Traffic-Replay + "traffic-replay", # this should install TRLib, MicroServer, MicroDNS, Traffic-Replay + + # 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" ]
