The a2a-tests module tests the managed A2A 0.3 JSON-RPC listener of the Wanaku Server
(wanaku-ai/wanaku#2071). The upstream agents run in standalone Camel
Integration Capability (CIC) processes.
The tests cover Agent Card rewriting, message forwarding, task lookup, upstream cancellation errors, policy rejection, unsupported operations and options, required fields, live address updates, namespace isolation, route removal, task-not-found errors, registration validation, and invalid protocol envelopes and versions.
VirtualNamespaceA2aITCase uses three independent upstream processes with the same agent name and task ID.
It checks virtual catalogs and qualified Agent Card URLs, owner routing for messages and task operations,
nonmember rejection, live membership changes, and agent registration, removal, and address changes.
Upstream RPC counters prove which process received each request. Denied and nonmember requests must not reach
an upstream. Correlated policy audit events must record both evaluation scopes and both namespace identities.
You need a Wanaku Server with the A2A listener and a CIC fat JAR:
mvn verify -pl a2a-tests -am \
-Dwanaku.test.server.a2a-enabled=true \
-Dwanaku.test.server.mcp-id-filter=true \
-Dwanaku.test.server.binary=/path/to/wanaku-server \
-Dwanaku.test.camel-capability.jar=/path/to/camel-integration-capability.jar
Maven skips the module by default, because older servers do not know the A2A filters and stop at startup. Set
wanaku.test.server.a2a-enabled=true or wanaku.test.external.a2a.port to run it. In GitHub CI, the
full-integration-test workflow sets wanaku.test.server.a2a-enabled=true when the server supports A2A.
The module POM sets the action policy of the server: it allows agent actions, and denies SendMessage when
/message/messageId is denied-message.
The Barn template uses camel-a2a, and the current Camel A2A
component uses protocol 1.0. This suite uses a deterministic 0.3 fixture instead. The fixture is a set of Camel
platform-http and jsonpath routes. It tests the legacy behavior on servers that support 0.3, or both 0.3 and 1.0.
The suite does not test interoperability with the native Camel A2A 1.0 component, and it registers no MCP forward.
TaskNotCancelable error.GET /capture/counts returns the number of RPC requests received by that upstream. It does not count Agent Card
discovery or counter reads. The fixture uses the Camel bean component to read an atomic counter.VersionNotSupportedError.Virtual discovery uses GET /virtual-ns/{group}/a2a. Each catalog entry names a concrete owner and an agent.
Protocol requests use /virtual-ns/{group}/a2a/{owner}/{agent}. Append /.well-known/agent-card.json for the Agent
Card. These tests use A2A 0.3. They do not establish A2A 1.0 interoperability or mixed virtual/concrete policy
outcomes. The allowed and denied scenarios apply the same module policy to both scopes.
Give the management, MCP and A2A ports of the running server:
mvn verify -pl a2a-tests -am \
-Dwanaku.test.external.mgmt.port=8080 \
-Dwanaku.test.external.mcp.port=8081 \
-Dwanaku.test.external.a2a.port=8084 \
-Dwanaku.test.camel-capability.jar=/path/to/camel-integration-capability.jar
The tests cannot change the configuration of an external server. Configure the server yourself:
http://localhost:8084.The tests do not use an external CIC. Each upstream fixture needs its own process.