From d1398eb12c4217207efda61a889fa71d11e95ff3 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Thu, 11 May 2023 15:07:36 -0400 Subject: [PATCH] Add some more debug logging to a corner of the storage server tests --- nixos/tests/exercise-storage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/tests/exercise-storage.py b/nixos/tests/exercise-storage.py index e3a1d4d2..288a846d 100755 --- a/nixos/tests/exercise-storage.py +++ b/nixos/tests/exercise-storage.py @@ -85,10 +85,13 @@ def get_api_root(path): return hyperlink.URL.from_text(f.read().strip()) def tahoe_put(api_root, data, **kwargs): + uri = api_root.child(u"uri").to_uri() response = requests.put( - api_root.child(u"uri").to_uri(), + uri, BytesIO(data), + headers={"accept": "text/plain"}, ) + print(f"PUT {uri} responded:\n{response.text}\n") response.raise_for_status() return response.text -- GitLab