From ef49ab198c6c7b38fc63975e0660394ee7189c92 Mon Sep 17 00:00:00 2001 From: Brian Neradt Date: Tue, 29 Mar 2022 00:17:38 +0000 Subject: [PATCH] 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 fdfb7e3737b..8957f27fd5b 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 3d9e437661f..639c2fa00ac 100755 --- a/tests/bootstrap.py +++ b/tests/bootstrap.py @@ -37,7 +37,13 @@ "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" ]