-
Notifications
You must be signed in to change notification settings - Fork 227
Add integration test for Get-SqlDscTraceFlag command #2247
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 #2247 +/- ##
====================================
Coverage 94% 94%
====================================
Files 149 149
Lines 9174 9174
====================================
Hits 8698 8698
Misses 476 476
🚀 New features to boost your workflow:
|
…y service start/stop commands and updating test context descriptions.
|
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 |
tests/Integration/Commands/Get-SqlDscTraceFlag.Integration.Tests.ps1
Outdated
Show resolved
Hide resolved
Co-authored-by: johlju <[email protected]>
Successfully implemented integration test for
Get-SqlDscTraceFlagcommand and addressed review feedback:Review Changes Made:
Get-SqlDscTraceFlagto the integration test dependency table in README.md with correct dependencies (run order 2, depends on Install-SqlDscServer and Prerequisites, uses DSCSQLTEST instance)Added Files:
tests/Integration/Commands/Get-SqlDscTraceFlag.Integration.Tests.ps1- Comprehensive integration test covering both parameter sets (ByServiceObject and ByServerName), error handling, and edge casesModified Files:
azure-pipelines.yml- Added the new test to group 2 alongside other Get-* command testsCHANGELOG.md- Documented the addition in the Unreleased sectiontests/Integration/Commands/README.md- Added dependency information for the new integration testTest Coverage:
ByServiceObjectandByServerNameDSCSQLTEST) and credentials for CI environmentThe integration test ensures the
Get-SqlDscTraceFlagcommand works reliably in real SQL Server environments and follows the same patterns as other command integration tests in the repository.Fixes #2216.
💡 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