Skip to content

Integration Tests with Agentic Support#315

Draft
rido-min wants to merge 7 commits intonext/corefrom
next/core-agentic-int-tests
Draft

Integration Tests with Agentic Support#315
rido-min wants to merge 7 commits intonext/corefrom
next/core-agentic-int-tests

Conversation

@rido-min
Copy link
Member

@rido-min rido-min commented Feb 9, 2026

Introduce agentic identity support in ConversationClientTest by adding helper methods to construct agentic user/app context from environment variables. Update all relevant test methods to use these helpers and pass agentic identity where required. Replace Console.WriteLine with xUnit output integration and configure logging for xUnit. Add MartinCostello.Logging.XUnit package for improved test logging. Mark tests requiring special permissions as skipped, and update logging configuration to use "Microsoft.Teams": "Trace". Includes minor test output and environment variable handling improvements.

Introduce agentic identity support in ConversationClientTest by adding helper methods to construct agentic user/app context from environment variables. Update all relevant test methods to use these helpers and pass agentic identity where required. Replace Console.WriteLine with xUnit output integration and configure logging for xUnit. Add MartinCostello.Logging.XUnit package for improved test logging. Mark tests requiring special permissions as skipped, and update logging configuration to use "Microsoft.Teams": "Trace". Includes minor test output and environment variable handling improvements.
Replaced explicit string declarations with var for agenticUserId, agenticAppId, and agenticAppBlueprintId in GetConversationAccountWithAgenticProperties and GetAgenticIdentity methods. This change improves code readability and maintains stylistic consistency. No functional changes were made.
@rido-min rido-min marked this pull request as ready for review February 9, 2026 05:28
@rido-min rido-min marked this pull request as draft February 9, 2026 05:30
@rido-min rido-min changed the title Add agentic identity support to ConversationClientTest Integration Tests with Agentic Support Feb 9, 2026
rido-min and others added 5 commits February 8, 2026 22:04
Centralize agentic identity and conversation account construction in new AgenticIdentitiyFromEnv helper. Replace inlined and private methods in test files with calls to this helper. Remove redundant methods from ConversationClientTest. Update TeamsApiClientTests to use ITestOutputHelper for logging and consistently pass agentic identity to TeamsApiClient methods. Improves code reuse, test output, and maintainability.
Explicitly assign Conversation.Id in CoreActivity using the
TEST_CONVERSATIONID environment variable, with error handling
if not set. This ensures the test message is associated with
the correct conversation context.
@rido-min rido-min added the CORE label Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant