Skip to content

test(agent): use canonical actionCenter channel type in escalation fixture#896

Merged
cotovanu-cristian merged 1 commit into
mainfrom
fix/escalation-action-center-type
Jun 8, 2026
Merged

test(agent): use canonical actionCenter channel type in escalation fixture#896
cotovanu-cristian merged 1 commit into
mainfrom
fix/escalation-action-center-type

Conversation

@cotovanu-cristian

Copy link
Copy Markdown
Collaborator

Summary

tests/agent/tools/test_tool_factory.py's escalation_resource fixture set the escalation channel type to action_center (snake_case). It only ever validated because the channel type is currently an open str. Every other escalation fixture in the suite already uses the canonical actionCenter (the real wire value).

Aligning this single fixture makes it parse under the stricter, discriminated escalation-channel model introduced in uipath-python#1686, which surfaced it via the uipath-langchain cross-test (Input should be 'actionCenter'). No behavior change — the fixture targets an Action Center channel either way.

🤖 Generated with Claude Code

…xture

The escalation_resource fixture used type="action_center" (snake_case),
which only validated because the escalation channel `type` was an open str.
Every other escalation fixture already uses the canonical "actionCenter"
(the real wire value). Align this one so it parses under a stricter,
discriminated channel model.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 8, 2026 17:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates a single test fixture to use the canonical escalation channel wire value (actionCenter) so the fixture continues to parse under the newer stricter/discriminated escalation-channel model.

Changes:

  • Update escalation_resource fixture channel type from action_center to actionCenter to match the canonical value used elsewhere in the test suite.

@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

@cotovanu-cristian cotovanu-cristian merged commit b98c6fb into main Jun 8, 2026
50 checks passed
@cotovanu-cristian cotovanu-cristian deleted the fix/escalation-action-center-type branch June 8, 2026 17:31
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.

2 participants