Skip to content

Run tests for PR #2019 - #2062

Open
alerickson wants to merge 7 commits into
masterfrom
checkClaims
Open

alerickson wants to merge 7 commits into
masterfrom
checkClaims

Conversation

@alerickson

Copy link
Copy Markdown
Member

PR Summary

PR Context

PR Checklist

Copilot AI and others added 4 commits August 19, 2026 15:19
… 1657)

Co-authored-by: et1975 <623703+et1975@users.noreply.github.com>
Co-authored-by: et1975 <623703+et1975@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 434a152d-b80d-4a4d-946e-3c9c45e2ba78
…of matching the version text in the packageContent URL
@alerickson

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@alerickson alerickson changed the title Check claims Run tests for PR #2019 Oct 6, 2026

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.

Copilot review overview

🟢 Approval recommended

The implementation addresses URL-substring ambiguity with focused coverage and no unresolved issues found.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes V3 package URL selection by comparing parsed NuGet versions instead of URL substrings.

Changes:

  • Selects exact or latest package entries independent of URL format and ordering.
  • Adds focused Pester coverage for version-selection edge cases.
  • Moves shared test hooks into a dedicated class.
File Description
src/​code/​V3ServerAPICalls.cs Parses registration entries and selects package URLs by version.
src/​code/​TestHooks.cs Centralizes test-accessible internal helpers.
src/​code/​PSResourceInfo.cs Removes the relocated test hooks.
test/​InstallPSResourceTests/​InstallPSResourceV3ServerVersionSelection.Tests.ps1 Tests exact, normalized, prerelease, malformed, and latest-version selection.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@alerickson

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@alerickson

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@alerickson

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

This branch has not been deployed

No deployments
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.

4 participants