From 52960cd5776cfe5032ed988743976fb3df60148c Mon Sep 17 00:00:00 2001 From: damaz91 Date: Thu, 23 Jul 2026 13:37:56 +0000 Subject: [PATCH 1/2] Fix expected status code in protocol version negotiation test Expect 422 instead of 400 when an incompatible protocol version is requested. This aligns the test expectation with the actual behavior of the server which returns 422 Unprocessable Entity for unsupported versions. TAG=agy CONV=f18b5e19-6aa1-4077-8c47-307f31ac4b73 --- protocol_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol_test.py b/protocol_test.py index 9684872..94b4f22 100644 --- a/protocol_test.py +++ b/protocol_test.py @@ -331,7 +331,7 @@ def test_version_negotiation(self): ), headers=headers, ) - self.assert_response_status(response, 400) + self.assert_response_status(response, 422) if __name__ == "__main__": From 53739fe510bedb95024aa62e0c0ae59151568f14 Mon Sep 17 00:00:00 2001 From: damaz91 Date: Fri, 24 Jul 2026 04:55:06 +0000 Subject: [PATCH 2/2] Expect 422 for unsupported version in conformance tests --- protocol_test.py | 1 - 1 file changed, 1 deletion(-) diff --git a/protocol_test.py b/protocol_test.py index 94b4f22..93707d6 100644 --- a/protocol_test.py +++ b/protocol_test.py @@ -276,7 +276,6 @@ def test_version_negotiation(self): When the request includes a 'UCP-Agent' header with an incompatible version, then the request fails with 400 Bad Request. """ - # Discover shopping service endpoint discovery_resp = self.client.get("/.well-known/ucp") self.assert_response_status(discovery_resp, 200) profile_dict = discovery_resp.json()