test: add backwards compatibility test for step handlers without Context parameter#82
Merged
blindzero merged 2 commits intoissues/77-architecture-provider-authentication-session-brokerfrom Jan 17, 2026
Conversation
8 tasks
…ext parameter Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update AuthSessionBroker acquisition in ExecutionContext PR
test: add backwards compatibility test for step handlers without Context parameter
Jan 16, 2026
blindzero
approved these changes
Jan 17, 2026
42cbcc7
into
issues/77-architecture-provider-authentication-session-broker
5 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds test coverage for the backwards compatibility logic that allows step handlers to omit the Context parameter.
Motivation
The backwards compatibility implementation in
Invoke-IdlePlanObject.ps1(lines 376-379) conditionally passes the Context parameter only when handlers support it, but no test validated this with a handler that actually omits Context.Type of Change
Changes
Invoke-IdleTestLegacySteptest handler that only accepts$Step(no$Context)AfterAllblockTesting
How to test & review
Run
Invoke-Pester -Path ./tests/Invoke-IdlePlan.Tests.ps1and verify the new test passes. The test validates that:Checklist
Related Issues
Addresses feedback on PR #81: #81 (comment)
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.