-
Notifications
You must be signed in to change notification settings - Fork 27
[Modularize] Get-EntraDeletedServicePrincipal #1281
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
[Modularize] Get-EntraDeletedServicePrincipal #1281
Conversation
Related PR - #1231 |
Learn Build status updates of commit 56ea848: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
[<CommonParameters>] | ||
``` | ||
|
||
### GetByValue |
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.
I think this should be GetVague
. Check the ps1 files
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.
Updated.
[<CommonParameters>] | ||
``` | ||
|
||
### GetByValue |
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.
I think this should be GetVague
. Check the ps1 files
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.
Updated.
Mock -CommandName Get-MgDirectoryDeletedItemAsServicePrincipal -MockWith $scriptblock -ModuleName Microsoft.Entra.Applications | ||
} | ||
|
||
Describe "Get-EntraDeletedServicePrincipal" { |
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.
Add this test and check if it will work
It "Should contain 'PageSize' parameter" {
$result = Get-EntraDeletedServicePrincipal -All
$result | Should -Not -BeNullOrEmpty
Should -Invoke -CommandName Get-MgDirectoryDeletedItemAsServicePrincipal -ModuleName Microsoft.Entra.Applications -Times 1 -ParameterFilter {
$PageSize | Should -Be 999
$true
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.
Also add to the beta tests
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.
Test added.
Learn Build status updates of commit b3eb842: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
Learn Build status updates of commit fce286f: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
Get-EntraDeletedServicePrincipal and Get-EntraBetaDeletedServicePrincipal