Skip to content

test(multitenancy): add gRPC tests and extract shared test infrastructure - #1119

Open
ehsavoie wants to merge 2 commits into
a2aproject:mainfrom
ehsavoie:issue_1102
Open

test(multitenancy): add gRPC tests and extract shared test infrastructure#1119
ehsavoie wants to merge 2 commits into
a2aproject:mainfrom
ehsavoie:issue_1102

Conversation

@ehsavoie

@ehsavoie ehsavoie commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator
  • Add gRPC multitenancy integration tests verifying tenant-based executor routing
  • Extract shared CDI producers into test-common module, reuse across jsonrpc and gRPC
  • Config-driven TestAuthorizationController with CDI alternative verification test

Fixes #1102 🦕

On top of #1112

@ehsavoie
ehsavoie requested review from jmesnil and kabir September 1, 2026 08:51
@kabir

kabir commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

@ehsavoie needs a rebase

@ehsavoie
ehsavoie force-pushed the issue_1102 branch 2 times, most recently from 7af9f16 to 52b1d8e Compare September 2, 2026 11:06
@ehsavoie

ehsavoie commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator Author

@kabir rebased

@kabir kabir left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this works, I don't think using it from a2a-jakarta looks possible at the moment.

Maybe add a tests/multitenancy/common, and have one copy of the producers there, and create a test-jar. Also probably an abstract test class can go in there, which is then specialized in the rest/jsonrpc/grpc modules.

- Add TenantNotFoundException; JSONRPCHandler and RestHandler throw/return 404 when AgentCardRouter is set but tenant not found
- Single-tenant servers (no router) ignore the tenant segment and serve the default card
- CdiAgentCardRouter.resolvePublicCard now returns null for unknown/blank tenants instead of the default card
- Add Utils.buildTenantCardPath helper; restrict fallback retry in A2ACardResolver to 404 only
- Update all tests to expect 404 for unknown tenants

Fixes: a2aproject#1108

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
…ture

- Add gRPC multitenancy integration tests verifying tenant-based executor routing
- Extract shared CDI producers into test-common module, reuse across jsonrpc and gRPC
- Config-driven TestAuthorizationController with CDI alternative verification test

This fixes a2aproject#1102

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revisit multi tenant tests

2 participants