-
Notifications
You must be signed in to change notification settings - Fork 227
Add integration test for Set-SqlDscAudit command #2267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: johlju <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2267 +/- ##
====================================
Coverage 94% 94%
====================================
Files 149 149
Lines 9163 9163
====================================
Hits 8687 8687
Misses 476 476
🚀 New features to boost your workflow:
|
tests/Integration/Commands/Set-SqlDscAudit.Integration.Tests.ps1
Outdated
Show resolved
Hide resolved
tests/Integration/Commands/Set-SqlDscAudit.Integration.Tests.ps1
Outdated
Show resolved
Hide resolved
…file ending Co-authored-by: johlju <[email protected]>
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Comment |
…cAudit integration tests
tests/Integration/Commands/Set-SqlDscAudit.Integration.Tests.ps1
Outdated
Show resolved
Hide resolved
tests/Integration/Commands/Set-SqlDscAudit.Integration.Tests.ps1
Outdated
Show resolved
Hide resolved
…ictions Co-authored-by: johlju <[email protected]>
…p directories Co-authored-by: johlju <[email protected]>
Successfully implemented comprehensive integration test for Set-SqlDscAudit command.
Completed Set-SqlDscAudit Integration Test
Remove-SqlDscAudit.Integration.Tests.ps1as templateSet-SqlDscAudit.Integration.Tests.ps1following DSC community guidelinesImplementation Summary
Created comprehensive integration test with:
Test Coverage includes:
Infrastructure Updates:
Review Feedback Addressed:
C:\Program Files\Microsoft SQL Server\TestAuditsinstead of temp directories that SQL Server service cannot accessfinallyblocks in favor of proper Pester cleanup patternsThe integration test ensures comprehensive coverage of the Set-SqlDscAudit command's functionality that works reliably in CI environments and provides confidence in its reliability across different usage scenarios.
Fixes #2236.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
This change is