From 84e062f63865796709c31faf05d40a939c1797eb Mon Sep 17 00:00:00 2001 From: damaz91 Date: Mon, 13 Jul 2026 10:40:52 +0000 Subject: [PATCH] fix: update conformance tests to expect UCP version 2026-04-08 Update hardcoded version expectations in conformance tests to match the updated server version 2026-04-08. TAG=agy CONV=c03c5438-5e14-414a-9404-e0f2bdbe433c --- integration_test_utils.py | 4 ++-- protocol_test.py | 6 +++--- shopping-agent-test.json | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/integration_test_utils.py b/integration_test_utils.py index 3fe4bc0..21d38af 100644 --- a/integration_test_utils.py +++ b/integration_test_utils.py @@ -483,7 +483,7 @@ def create_checkout_payload( payment_handler.Base( id="google_pay", name="google.pay", - version="2026-01-23", + version="2026-04-08", spec="https://example.com/spec", config_schema="https://example.com/schema", instrument_schemas=["https://example.com/instrument_schema"], @@ -541,7 +541,7 @@ def create_checkout_payload( fulfillment=fulfillment, ) checkout_req.status = "incomplete" - checkout_req.ucp = {"version": "2026-01-23"} + checkout_req.ucp = {"version": "2026-04-08"} checkout_req.totals = [] checkout_req.links = [] diff --git a/protocol_test.py b/protocol_test.py index 75c4931..d246692 100644 --- a/protocol_test.py +++ b/protocol_test.py @@ -169,7 +169,7 @@ def test_discovery(self): self.assertEqual( ucp_data.get("version"), - "2026-01-23", + "2026-04-08", msg="Unexpected UCP version in discovery doc", ) @@ -230,7 +230,7 @@ def test_discovery(self): if isinstance(shopping_services, list) else shopping_services ) - self.assertEqual(shopping_service.get("version"), "2026-01-23") + self.assertEqual(shopping_service.get("version"), "2026-04-08") self.assertIsNotNone(shopping_service.get("transport") == "rest") self.assertIsNotNone(shopping_service.get("endpoint")) @@ -273,7 +273,7 @@ def test_version_negotiation(self): # 1. Compatible Version headers = integration_test_utils.get_headers() - headers["UCP-Agent"] = 'profile="..."; version="2026-01-23"' + headers["UCP-Agent"] = 'profile="..."; version="2026-04-08"' response = self.client.post( checkout_sessions_url, json=create_payload.model_dump( diff --git a/shopping-agent-test.json b/shopping-agent-test.json index 3617648..84fad37 100644 --- a/shopping-agent-test.json +++ b/shopping-agent-test.json @@ -1,13 +1,13 @@ { "ucp": { - "version": "2026-01-23", + "version": "2026-04-08", "capabilities": { "dev.ucp.shopping.order": [ { "name": "dev.ucp.shopping.order", - "version": "2026-01-23", - "spec": "https://ucp.dev/2026-01-23/specification/order/", - "schema": "https://ucp.dev/2026-01-23/schemas/shopping/order.json", + "version": "2026-04-08", + "spec": "https://ucp.dev/2026-04-08/specification/order/", + "schema": "https://ucp.dev/2026-04-08/schemas/shopping/order.json", "config": { "webhook_url": "http://localhost:{webhook_port}/webhooks/partners/test_partner/events/order" }