Skip to content

Commit bdf6cbd

Browse files
Bernd VerstCopilot
andcommitted
Verify raw GZIP data in Azurite payload tests
Disable transparent download decompression when inspecting stored Blob bytes, and verify the GZIP encoding property alongside the compressed header. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 6426ed3 commit bdf6cbd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tests/durabletask/test_large_payload_e2e.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ def echo(ctx: task.OrchestrationContext, inp: str):
307307
assert len(blobs) > 0, "Expected at least one blob in the container"
308308
# All blobs should contain compressed data (GZip header: 1f 8b)
309309
for blob in blobs:
310-
data = container_client.download_blob(blob.name).readall()
310+
stream = container_client.download_blob(blob.name, decompress=False)
311+
assert stream.properties.content_settings.content_encoding == "gzip"
312+
data = stream.readall()
311313
assert data[:2] == b"\x1f\x8b", f"Blob {blob.name} is not GZip-compressed"
312314

313315

0 commit comments

Comments
 (0)