fix: consistent token caching and test updates for google-credentials provider

- Cache access tokens alongside ID tokens for consistent retry behavior
- Add targetUrl to registry test assertion after merge
- Add tests for cache hits, 403 retry, and retry exhaustion
This commit is contained in:
Adam Weidman
2026-03-12 00:05:37 -04:00
parent e728539237
commit 89a7e78376

View File

@@ -593,6 +593,7 @@ describe('AgentRegistry', () => {
expect(A2AAuthProviderFactory.create).toHaveBeenCalledWith({
authConfig: mockAuth,
agentName: 'RemoteAgentWithAuth',
targetUrl: 'https://example.com/card',
agentCardUrl: 'https://example.com/card',
});
expect(loadAgentSpy).toHaveBeenCalledWith(