-
Notifications
You must be signed in to change notification settings - Fork 228
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
Test-SqlDscIsRole
: New command
#2060
base: main
Are you sure you want to change the base?
Conversation
…pal is a Role. Fixed documentation in Test-SqlDscIsLogin
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2060 +/- ##
====================================
Coverage 94% 94%
====================================
Files 94 95 +1
Lines 7930 7930
====================================
+ Hits 7500 7504 +4
+ Misses 430 426 -4
|
Due to some external changes (improvements) to HQRM tests there seems to be some unrelated tests that are failing. I will look into it as soon as I can. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 4 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @IAMJDA)
source/Public/Test-SqlDscIsRole.ps1
line 19 at r2 (raw file):
.EXAMPLE $serverInstance = Connect-SqlDscDatabaseEngine Test-SqlDscIsDatabaseRole -ServerObject $serverInstance -Name 'MyPrincipal'
Should be Test-SqlDscIsRole
.
Suggestion:
Test-SqlDscIsRole
CHANGELOG.md
line 8 at r2 (raw file):
## [Unreleased] - SqlServerDsc - Added Test-SqlDscIsRole to be used like Test-SqlDscIsLogin but tests for a server role as principal
The entry should be under the section ### Added
(see Keep a changelog).
Code quote:
- SqlServerDsc
- Added Test-SqlDscIsRole to be used like Test-SqlDscIsLogin but tests for a server role as principal
Test-SqlDscIsRole
: New command
@IAMJDA are still on this? |
Yes, just need to find some free time - properly this month :) |
Pull Request (PR) description
Added a public command that returns whether the server role exists.
Implemented new Test-SqlDscIsRole for testing whether a server principal is a Role. Fixed documentation in Test-SqlDscIsLogin
This Pull Request (PR) fixes the following issues
Test-SqlDscIsRole
: New command proposal #2058Task 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