test(workspace): push-mode queue envelope coverage for a2a_response.py (closes #308) #621

Merged
infra-runtime-be merged 3 commits from fix/308-a2a-response-push-mode-tests into staging 2026-05-12 02:01:09 +00:00

3 Commits

Author SHA1 Message Date
bf8a869b60 chore: re-trigger sop-tier-check after staging fix (PR #636)
All checks were successful
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 3s
sop-tier-check / tier-check (pull_request) Successful in 4s
audit-force-merge / audit (pull_request) Successful in 5s
2026-05-12 01:59:45 +00:00
116c5570e8 chore: re-trigger sop-tier-check after token-graceful fix [skip ci]
This empty commit triggers a sop-tier-check re-run so the workflow
picks up the fixed sop-tier-check.sh from staging (PR #636).
2026-05-12 01:57:23 +00:00
e2cc86b26d test(workspace): add push-mode queue envelope coverage for a2a_response.py (closes #308)
Some checks failed
sop-tier-check / tier-check (pull_request) Failing after 12s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 14s
Adds 5 test cases + 3 fixtures to test_a2a_response.py covering the
push-mode queue handling added in PR #278 (a2a_proxy.go):

Fixtures:
- push_queued_full: {queued: True, method: tasks/send, message, queue_id}
- push_queued_no_method: {queued: True, message} → defaults to message/send
- push_queued_message_only: {queued: True, message} → still Queued

Test cases (TestQueuedVariant_PushMode):
- test_push_queued_full_returns_Queued
- test_push_queued_no_method_defaults_to_message_send
- test_push_queued_message_only_returns_Queued
- test_push_queued_logs_info_with_queue_id
- test_push_queued_delivery_mode_defaults_to_poll

Also updates test_every_fixture_classifies_to_expected_variant to
enumerate the 3 new fixtures so future additions must update the table.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 00:46:38 +00:00