MCPcopy Index your code
hub / github.com/docker/docker-agent / TestA2AServer_AgentCard

Function TestA2AServer_AgentCard

e2e/a2a_test.go:56–68  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

54}
55
56func TestA2AServer_AgentCard(t *testing.T) {
57 t.Parallel()
58
59 _, runConfig := startRecordingAIProxy(t)
60 agentCard := startA2AServer(t, "testdata/basic.yaml", runConfig)
61
62 assert.Equal(t, "basic", agentCard.Name)
63 assert.NotEmpty(t, agentCard.Description)
64 assert.Equal(t, a2a.TransportProtocolJSONRPC, agentCard.PreferredTransport)
65 assert.Contains(t, agentCard.URL, "/invoke")
66 assert.True(t, agentCard.Capabilities.Streaming)
67 assert.NotEmpty(t, agentCard.Version)
68}
69
70func TestA2AServer_Invoke(t *testing.T) {
71 t.Parallel()

Callers

nothing calls this directly

Calls 2

startRecordingAIProxyFunction · 0.85
startA2AServerFunction · 0.85

Tested by

no test coverage detected