-
Notifications
You must be signed in to change notification settings - Fork 227
Test-SqlDscIsAgentAlert: Command rename proposal #2204
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
Merged
johlju
merged 39 commits into
dsccommunity:main
from
johlju:f/2202-test-sqldscisagentalert
Sep 14, 2025
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
458ee31
Add Test-SqlDscIsAgentAlert function to validate SQL Agent Alerts
johlju 194945a
Update OUTPUTS section in guidelines for clarity and add alias usage …
johlju 6766bf8
Clarify instructions for running scripts in PowerShell by specifying …
johlju 9da75ea
Clarify changelog guidelines by specifying to skip adding entries for…
johlju d7fe31e
Refactor alert existence check in New-SqlDscAgentAlert function to us…
johlju 2efd2cf
Update changelog to reflect renaming of Test-SqlDscAgentAlert to Test…
johlju e6c1778
Remove unnecessary empty SuppressMessage attributes from test files
johlju 7c74739
Enhance error handling guidelines by specifying required parameters f…
johlju 5c2cfaf
Remove unnecessary SuppressMessage attribute from unit test guidelines
johlju 0c132b3
Update SqlServerDsc guidelines to clarify requirements and improve st…
johlju 26f3f4b
Add Viscalyx.Common module for development and testing
johlju 051a08d
Add Test-SqlDscAgentAlertProperty function and associated tests for v…
johlju bdb4d30
Refactor Test-SqlDscIsAgentAlert to simplify parameter handling and r…
johlju 09dac6d
Update references in SMO.cs to use Test-SqlDscIsAgentAlert for consis…
johlju 69ec72d
Add Test-SqlDscAgentAlertProperty command and update Test-SqlDscIsAge…
johlju bd6da11
Add Test-SqlDscAgentAlertProperty integration test to pipeline
johlju 3aa0891
Return $false instead of just returning when the SQL Agent Alert is n…
johlju 207d5bb
Add -ErrorAction 'Stop' to Test-SqlDscAgentAlertProperty calls and ha…
johlju d19ffa5
Add -ErrorAction 'Stop' to Test-SqlDscAgentAlertProperty calls to ens…
johlju e32bc7d
Add -ErrorAction 'Stop' to Get-SqlDscAgentAlert calls in Test-SqlDscA…
johlju 463b05f
Add -ErrorAction 'Stop' to Test-SqlDscIsAgentAlert calls for improved…
johlju 2fc75de
Add environment variable setup and cleanup in BeforeAll and AfterAll …
johlju 995818b
Add Test-SqlDscAgentAlertProperty to integration tests run order
johlju dad271f
Add environment variable setup and cleanup in BeforeAll and AfterAll …
johlju 38132cd
Update build environment instructions for clarity
johlju 98cba99
Update Test-SqlDscIsAgentAlert message for clarity by removing redund…
johlju e80d0b1
Remove unnecessary comment from Test-SqlDscIsAgentAlert function
johlju 6bc9f58
Fix path formatting in build instructions for consistency across guid…
johlju c91efae
Update error ID for Test-SqlDscAgentAlertProperty to maintain consist…
johlju a411af0
Update INPUTS and OUTPUTS sections for clarity and consistency in com…
johlju 4274176
Merge branch 'main' into f/2202-test-sqldscisagentalert
johlju 91d4e6f
Update test assertions to use 'Test-SqlDscIsAgentAlert' instead of 'G…
johlju ce2fd39
Clarify SqlServerDsc-specific guidelines in copilot instructions
johlju b54b0f1
Add guideline for passing original exception in catch blocks
johlju 231c23a
Refine Build & Test Workflow section in community guidelines for clar…
johlju 74b9634
Refine Build & Test Workflow requirements for clarity and consistency
johlju 7cf071c
Fix typo in Build & Test Workflow requirements for consistency
johlju dd3d326
Remove unnecessary ValidateNotNullOrEmpty attribute from Name paramet…
johlju e9d788c
Update tests for non-existent alerts to expect exceptions instead of …
johlju File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| # Requirements | ||
| - SqlServerDsc-specific guidelines override general project guidelines | ||
| - SqlServerDsc-specific guidelines and requirements override general project guidelines and requirements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,4 +66,7 @@ | |
| } | ||
| } | ||
| PlatyPS = 'latest' | ||
|
|
||
| # For development | ||
| 'Viscalyx.Common' = 'latest' # Invoke-PesterJob to run tests | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.