We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c90823f commit 64c1042Copy full SHA for 64c1042
1 file changed
tests/catalog/test_rest.py
@@ -560,6 +560,7 @@ def test_sigv4_sign_request_with_body(rest_mock: Mocker) -> None:
560
assert prepared.headers["Original-Authorization"] == f"Bearer {existing_token}"
561
# Non-empty body should have base64-encoded SHA256
562
content_sha256 = prepared.headers["x-amz-content-sha256"]
563
+ assert prepared.body is not None
564
body_bytes = prepared.body.encode("utf-8") if isinstance(prepared.body, str) else prepared.body
565
expected_sha256 = base64.b64encode(hashlib.sha256(body_bytes).digest()).decode()
566
assert content_sha256 == expected_sha256
0 commit comments