SqlServerDsc: Fix Pester 6 syntax in integration tests - #2468
Conversation
WalkthroughIntegration tests were updated for Pester 6 assertion syntax across SSRS status codes, SQL role member collections, and firewall state values. The changelog records the incomplete Pester 6 conversion. ChangesPester 6 integration test updates
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@CHANGELOG.md`:
- Line 18: Update the changelog entry to use the grammatically correct “weren’t”
in place of “wasn’t,” preserving the rest of the wording and Pester 6 reference.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 17d0f673-ea5f-41b1-95b1-4cc959a22221
📒 Files selected for processing (4)
CHANGELOG.mdtests/Integration/Resources/DSC_SqlRS_Default.Integration.Tests.ps1tests/Integration/Resources/DSC_SqlRole.Integration.Tests.ps1tests/Integration/Resources/DSC_SqlWindowsFirewall.Integration.Tests.ps1
| - SqlServerDsc | ||
| - Several integration tests wrongly said that the command `Test-DscConfiguration` | ||
| return `$true` when it is in fact return the string value `'True'`. | ||
| - Some integration tests still wasn't converted correctly to Pester 6 syntax |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Fix the changelog grammar.
Use “Some integration tests still weren’t converted correctly to Pester 6 syntax.”
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@CHANGELOG.md` at line 18, Update the changelog entry to use the grammatically
correct “weren’t” in place of “wasn’t,” preserving the rest of the wording and
Pester 6 reference.
Source: Path instructions
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2468 +/- ##
=====================================
Coverage 94% 94%
=====================================
Files 227 227
Lines 10871 10871
=====================================
Hits 10235 10235
Misses 636 636
🚀 New features to boost your workflow:
|
Pull Request (PR) description
This Pull Request (PR) fixes the following issues
Task list
file CHANGELOG.md. Entry should say what was changed and how that
affects users (if applicable), and reference the issue being resolved
(if applicable).
This change is