Skip to content

Conversation

adityapatwardhan
Copy link
Member

PR Summary

This pull request updates several PowerShell test scripts to improve error handling assertions and clarify version comparisons. The main changes focus on making error checks more robust by asserting that error messages contain expected substrings (rather than requiring exact matches), and refining version handling in update scenarios.

Error handling improvements

  • Updated assertions in Save and Update tests to check that error messages contain the expected error IDs instead of matching them exactly, making the tests less brittle to formatting changes. This applies to authenticode signature and package installation failures in SavePSResourceLocal.Tests.ps1, SavePSResourceV3.Tests.ps1, and UpdatePSResourceV2.Tests.ps1. [1] [2] [3]

Version handling adjustments

  • Changed version comparison in update tests to use the full version string "3.0.0.0" instead of "3.0.0" for consistency with PowerShell's versioning.
  • Updated the prerelease version update test to use "5.2.5-alpha001" directly, removing the NuGet bracket syntax for explicit version specification.

PR Context

PR Checklist

@adityapatwardhan
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@anamnavi anamnavi left a comment

Choose a reason for hiding this comment

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

LGTM

@adityapatwardhan
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@adityapatwardhan
Copy link
Member Author

/azp run

Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@adityapatwardhan
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@adityapatwardhan
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@adityapatwardhan
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@adityapatwardhan adityapatwardhan enabled auto-merge (squash) September 8, 2025 16:46
@adityapatwardhan adityapatwardhan merged commit 87375d6 into master Sep 8, 2025
12 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.

3 participants