-
Notifications
You must be signed in to change notification settings - Fork 226
Get-SqlDscServerPermission: Check for both login and role
#2131
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 43 commits into
dsccommunity:main
from
johlju:fix/get-sqldscserverpermission
Sep 5, 2025
Merged
Changes from 37 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
04be789
Update Get-SqlDscServerPermission to check for both login and role pe…
johlju b26982d
Update CHANGELOG.md
johlju caa95ff
Update Get-SqlDscServerPermission documentation for clarity on SQL Se…
johlju c1200e1
Fix test to properly handle output of Get-SqlDscServerPermission command
johlju 233c087
Add cleanup step to disconnect from SQL Server after tests in Assert-…
johlju b824bad
Add integration tests for Get-SqlDscServerPermission command
johlju fd81b7d
Add integration test for Get-SqlDscServerPermission command
johlju ff657fa
Enhance Get-SqlDscServerPermission to support server roles alongside …
johlju 7dcc114
Add PrincipalType parameter to Get-SqlDscServerPermission for selecti…
johlju 139f03f
Update CHANGELOG.md
johlju 125203e
Refactor Get-SqlDscServerPermission to simplify role check logic
johlju a71b591
Fix documentation in Test-SqlDscIsRole to clarify server principal ro…
johlju a135d6b
Enhance Get-SqlDscServerPermission to support Login and ServerRole pa…
johlju a6e1913
Add integration tests for Login and ServerRole parameter sets in Get-…
johlju 3b35502
Update integration tests for Get-SqlDscServerPermission to use SqlDsc…
johlju 0ada941
Enhance Grant-SqlDscServerPermission integration tests to verify perm…
johlju bc665ac
Refactor permission revocation tests to use string literals for permi…
johlju e0bae36
Enhance Get-SqlDscServerPermission integration tests to verify Create…
johlju 2630720
Refactor Revoke-SqlDscServerPermission tests to remove InModuleScope …
johlju 5131d04
Refactor Get-SqlDscServerPermission integration tests to improve vari…
johlju 87506dc
Refactor integration tests to use a consistent module name variable
johlju c7f4204
Refactor Grant-SqlDscServerPermission integration tests to use 'Error…
johlju 9b21b16
Refactor integration tests to start and stop SQL Server service, impr…
johlju c9ab88b
Pin 'DscResource.Test' module version to 0.17.2 to prevent integratio…
johlju 40c13ba
Refactor integration tests to use string literals for SQL permissions…
johlju 8705f03
Refactor Grant-SqlDscServerPermission integration tests to improve pe…
johlju b6e6e3d
Add 'ErrorAction' parameter to Connect-SqlDscDatabaseEngine calls in …
johlju e97c1fd
Enhance error handling in Revoke-SqlDscServerPermission by including …
johlju b0c00a6
Enhance error messages in Grant and Deny server permission functions …
johlju b03149d
Remove redundant permission name retrieval in Deny, Grant, and Revoke…
johlju db2681f
Refactor New-SqlDscLogin call to use -SqlLogin and -SecurePassword pa…
johlju cb0d2c7
Update New-SqlDscLogin call in integration test to include -PassThru …
johlju 8287508
Refactor permission test to use built-in securityadmin role instead o…
johlju 1a3f34f
Add verbose output for permission testing and update localized string…
johlju 1f9aa40
Update permission tests to include additional permissions for exact m…
johlju 047b327
Refactor verbose messages to debug messages in Test-SqlDscServerPermi…
johlju 36d895f
Remove verbose flag from Test-SqlDscServerPermission calls for cleane…
johlju fad7990
Refactor permission tests to use string literals for permissions inst…
johlju aecc2a1
Add tests for denying server permissions to logins and roles, includi…
johlju 785a500
Refactor permission tests to use string literals for permissions and …
johlju b56bca4
Add ErrorAction parameter to Connect-SqlDscDatabaseEngine for improve…
johlju 05d965e
Refactor Revoke-SqlDscServerPermission tests to use script-scoped var…
johlju 59a8983
Remove Revoke-SqlDscServerPermission test from integration test group
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
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
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.