$ A2A_MODE=naive python3 -W ignore::ResourceWarning -m unittest -v test_a2a # date: 2026-11-29 ; Python 3.14.4 ; OpenSSL 3.5.5 ; boto3 1.40.72 test_certificate_from_untrusted_ca_rejected (test_a2a.T.test_certificate_from_untrusted_ca_rejected) ... FAIL test_child_token_expires_no_later_and_depth_is_limited (test_a2a.T.test_child_token_expires_no_later_and_depth_is_limited) ... FAIL test_exchange_cannot_add_scope (test_a2a.T.test_exchange_cannot_add_scope) ... FAIL test_extra_field_in_result_rejected (test_a2a.T.test_extra_field_in_result_rejected) ... FAIL test_no_client_certificate_rejected (test_a2a.T.test_no_client_certificate_rejected) ... FAIL test_other_agent_certificate_rejected (test_a2a.T.test_other_agent_certificate_rejected) ... FAIL test_peer_result_cannot_widen_scope (test_a2a.T.test_peer_result_cannot_widen_scope) ... FAIL test_valid_worker_result_is_accepted (test_a2a.T.test_valid_worker_result_is_accepted) ... ok ====================================================================== FAIL: test_certificate_from_untrusted_ca_rejected (test_a2a.T.test_certificate_from_untrusted_ca_rejected) ---------------------------------------------------------------------- Traceback (most recent call last): AssertionError: (, , ) not raised ====================================================================== FAIL: test_child_token_expires_no_later_and_depth_is_limited (test_a2a.T.test_child_token_expires_no_later_and_depth_is_limited) ---------------------------------------------------------------------- Traceback (most recent call last): AssertionError: 1795948718.2315795 not less than or equal to 1795948718.2303386 ====================================================================== FAIL: test_exchange_cannot_add_scope (test_a2a.T.test_exchange_cannot_add_scope) ---------------------------------------------------------------------- Traceback (most recent call last): AssertionError: 'access_token' unexpectedly found in {'access_token': 'eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJpc3MiOiAic3RzLmRlbW8udGVzdCIsICJzdWIiOiAic3BpZmZlOi8vZGVtby50ZXN0L2FnZW50L3N1YiIsICJzY29wZSI6ICJyZXBvcnRzOnJlYWQgYWRtaW4iLCAiaWF0IjogMTc5NTk0NTExOC43MzU1NjU3LCAiZXhwIjogMTc5NTk0ODcxOC43MzU1NjU3LCAiZGVwdGgiOiAwfQ.b82GVGYGUUxXds8wDWOWaeAzJCBNkvfhq0kpuChwkw4', 'scope': 'reports:read admin'} ====================================================================== FAIL: test_extra_field_in_result_rejected (test_a2a.T.test_extra_field_in_result_rejected) ---------------------------------------------------------------------- Traceback (most recent call last): AssertionError: 200 != 400 ====================================================================== FAIL: test_no_client_certificate_rejected (test_a2a.T.test_no_client_certificate_rejected) ---------------------------------------------------------------------- Traceback (most recent call last): AssertionError: (, , ) not raised ====================================================================== FAIL: test_other_agent_certificate_rejected (test_a2a.T.test_other_agent_certificate_rejected) ---------------------------------------------------------------------- Traceback (most recent call last): AssertionError: 200 != 403 ====================================================================== FAIL: test_peer_result_cannot_widen_scope (test_a2a.T.test_peer_result_cannot_widen_scope) ---------------------------------------------------------------------- Traceback (most recent call last): AssertionError: Lists differ: [{'iss': 'sts.demo.test', 'sub': 'spiffe:/[105 chars]: 0}] != [] First list contains 1 additional elements. First extra element 0: {'iss': 'sts.demo.test', 'sub': 'spiffe://demo.test/agent/worker', 'scope': 'admin', 'iat': 1795945122.2533903, 'exp': 1795948722.2533903, 'depth': 0} + [] - [{'depth': 0, - 'exp': 1795948722.2533903, - 'iat': 1795945122.2533903, - 'iss': 'sts.demo.test', - 'scope': 'admin', - 'sub': 'spiffe://demo.test/agent/worker'}] : a worker token with admin scope was issued ---------------------------------------------------------------------- Ran 8 tests in 7.044s FAILED (failures=7)