Skip to content

test: add unit tests for A2ATransport header injection and AgentAuthManager - #17

Merged
Zhoujie628 merged 1 commit into
project-openan:mainfrom
Zhoujie628:main
Aug 17, 2026
Merged

Zhoujie628 merged 1 commit into
project-openan:mainfrom
Zhoujie628:main

Conversation

@Zhoujie628

Copy link
Copy Markdown
Contributor

Summary

Add unit tests for core client components to improve test coverage.

Changes

  • A2ATransportHeaderTest: Verifies Authorization and A2A-Extensions headers are correctly forwarded to the client runtime via ClientCallContext
  • AgentAuthManagerTest: Verifies credential loading from JSON file and graceful handling of missing config files
  • test-agent-credentials.json: Test fixture for credential loading

Testing

  • All 3 tests pass locally
  • mvn test -pl workflow-engine -Dtest=A2ATransportHeaderTest,AgentAuthManagerTest succeeds

Closes #16

…anager

- A2ATransportHeaderTest: verifies Authorization and A2A-Extensions headers
  are correctly forwarded to the client runtime via ClientCallContext
- AgentAuthManagerTest: verifies credential loading from JSON file and
  graceful handling of missing config files
- test-agent-credentials.json: test fixture for credential loading

Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
@Zhoujie628
Zhoujie628 requested a review from a team as a code owner August 17, 2026 06:55
@Zhoujie628
Zhoujie628 merged commit c06784b into project-openan:main Aug 17, 2026
3 checks passed
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.

test: add unit tests for A2ATransport header injection and AgentAuthManager

1 participant