From c6816223a300efc1e39ef8dbed5b0337d8221786 Mon Sep 17 00:00:00 2001 From: yucheng Date: Wed, 30 Sep 2026 09:32:15 +0000 Subject: [PATCH] test(grayswan): normalize accept-encoding in generic body assertion Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/integration/observability/test_grayswan_wire.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/integration/observability/test_grayswan_wire.py b/tests/integration/observability/test_grayswan_wire.py index 13d49f1095f..64ed6074f31 100644 --- a/tests/integration/observability/test_grayswan_wire.py +++ b/tests/integration/observability/test_grayswan_wire.py @@ -146,7 +146,13 @@ def _chat_provider(message: dict[str, JsonValue]): def _normalized_generic_body(body: dict[str, JsonValue]) -> dict[str, JsonValue]: headers: Final = body.get("request_headers") normalized_headers: Final = ( - {**headers, "host": "", "content-length": "", "user-agent": ""} + { + **headers, + "host": "", + "content-length": "", + "user-agent": "", + "accept-encoding": "", + } if isinstance(headers, dict) else headers ) @@ -1164,7 +1170,7 @@ def test_post_call_generic_guardrail_inputs_unchanged(gateway: Gateway, tmp_path }, "request_headers": { "accept": "*/*", - "accept-encoding": "gzip, deflate, br", + "accept-encoding": "", "connection": "keep-alive", "content-length": "", "content-type": "application/json",