Skip to content

Fix discovery tests due to trace change#1458

Merged
SteveL-MSFT merged 2 commits intoPowerShell:mainfrom
SteveL-MSFT:discovery-test-fix
Apr 2, 2026
Merged

Fix discovery tests due to trace change#1458
SteveL-MSFT merged 2 commits intoPowerShell:mainfrom
SteveL-MSFT:discovery-test-fix

Conversation

@SteveL-MSFT
Copy link
Copy Markdown
Member

PR Summary

After merging both the change of version typing and not failing discovery, there seems to be a bad merge so that the test was out of date. The change from previous PR is that the trace is an INFO not a WARN, so test needed to be updated.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates DSC resource discovery Pester tests to align with recent trace-level behavior changes (invalid semver now logs at INFO instead of WARN), ensuring the discovery suite stays in sync with the CLI’s logging output.

Changes:

  • Run discovery with -l info so INFO-level trace output is emitted during the test.
  • Update the invalid-semver assertion to match INFO.*invalid semantic version in the captured stderr log.

@SteveL-MSFT SteveL-MSFT added this to the 3.2-Consider milestone Apr 2, 2026
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Apr 2, 2026
Merged via the queue into PowerShell:main with commit 1070169 Apr 2, 2026
36 of 37 checks passed
@SteveL-MSFT SteveL-MSFT deleted the discovery-test-fix branch April 2, 2026 16:11
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