Skip to content

[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

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

SteveMutungi254
Copy link
Contributor

Get-EntraDeletedServicePrincipal and Get-EntraBetaDeletedServicePrincipal

  • Code
  • Docs
  • Unit tests

@SteveMutungi254 SteveMutungi254 requested a review from a team as a code owner January 13, 2025 12:13
@SteveMutungi254
Copy link
Contributor Author

Related PR - #1231

Copy link

Learn Build status updates of commit 56ea848:

✅ Validation status: passed

File Status Preview URL Details
module/docs/entra-powershell-beta/Applications/Get-EntraBetaDeletedServicePrincipal.md ✅Succeeded View (entra-powershell-beta-preview)
module/docs/entra-powershell-v1.0/Applications/Get-EntraDeletedServicePrincipal.md ✅Succeeded View (entra-powershell-preview)
module/Entra/Microsoft.Entra/Applications/Get-EntraDeletedServicePrincipal.ps1 ✅Succeeded
module/EntraBeta/Microsoft.Entra.Beta/Applications/Get-EntraBetaDeletedServicePrincipal.ps1 ✅Succeeded
test/Entra/Applications/Get-EntraDeletedServicePrincipal.Tests.ps1 ✅Succeeded
test/EntraBeta/Applications/Get-EntraBetaDeletedServicePrincipal.Tests.ps1 ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@SteveMutungi254 SteveMutungi254 added Ready For Review The PR Ready for Review P1 labels Jan 13, 2025
[<CommonParameters>]
```

### GetByValue
Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

[<CommonParameters>]
```

### GetByValue
Copy link
Collaborator

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

Copy link
Contributor Author

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" {
Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test added.

Copy link

Learn Build status updates of commit b3eb842:

✅ Validation status: passed

File Status Preview URL Details
module/docs/entra-powershell-beta/Applications/Get-EntraBetaDeletedServicePrincipal.md ✅Succeeded View (entra-powershell-beta-preview)
module/docs/entra-powershell-v1.0/Applications/Get-EntraDeletedServicePrincipal.md ✅Succeeded View (entra-powershell-preview)
module/Entra/Microsoft.Entra/Applications/Get-EntraDeletedServicePrincipal.ps1 ✅Succeeded
module/EntraBeta/Microsoft.Entra.Beta/Applications/Get-EntraBetaDeletedServicePrincipal.ps1 ✅Succeeded
test/Entra/Applications/Get-EntraDeletedServicePrincipal.Tests.ps1 ✅Succeeded
test/EntraBeta/Applications/Get-EntraBetaDeletedServicePrincipal.Tests.ps1 ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

Copy link

Learn Build status updates of commit fce286f:

✅ Validation status: passed

File Status Preview URL Details
module/docs/entra-powershell-beta/Applications/Get-EntraBetaDeletedServicePrincipal.md ✅Succeeded View (entra-powershell-beta-preview)
module/docs/entra-powershell-v1.0/Applications/Get-EntraDeletedServicePrincipal.md ✅Succeeded View (entra-powershell-preview)
module/Entra/Microsoft.Entra/Applications/Get-EntraDeletedServicePrincipal.ps1 ✅Succeeded
module/EntraBeta/Microsoft.Entra.Beta/Applications/Get-EntraBetaDeletedServicePrincipal.ps1 ✅Succeeded
test/Entra/Applications/Get-EntraDeletedServicePrincipal.Tests.ps1 ✅Succeeded
test/EntraBeta/Applications/Get-EntraBetaDeletedServicePrincipal.Tests.ps1 ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@KenitoInc KenitoInc merged commit 2c20ad8 into modularize Jan 21, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 Ready For Review The PR Ready for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants