Skip to content

Commit

Permalink
Updated failing pester test
Browse files Browse the repository at this point in the history
  • Loading branch information
timayabi2020 committed Jul 4, 2024
1 parent e68f15c commit f44f40f
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,10 @@ Describe "Find-MgGraphCommand Command" {
It 'Should find commands for uri with Microsoft.Graph prefix in nested segments' {
{
$MgCommand = Find-MgGraphCommand -Uri "/identity/authenticationEventsFlows/{authenticationEventsFlow-id}/microsoft.graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders"
$MgCommand | Should -HaveCount 1
$MgCommand.Command | Select-Object -Unique | should -HaveCount 1
$MgCommand.Method | Select-Object -Unique | should -HaveCount 1
$MgCommand.APIVersion | Select-Object -Unique | should -HaveCount 1
$MgCommand.Variants | Select-Object -Unique | should -HaveCount 1
$MgCommand | Should -HaveCount 2
$MgCommand.Command | Select-Object -Unique | should -HaveCount 2
$MgCommand.URI | Select-Object -Unique | Should -Be "/identity/authenticationEventsFlows/{authenticationEventsFlow-id}/externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders"
$MgCommand.Command | Select-Object -Unique | Should -BeIn @("Get-MgBetaIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider")
$MgCommand.Command | Select-Object -Unique | Should -BeIn @("Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider","Get-MgBetaIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider")
} | Should -Not -Throw
}
}
Expand Down

0 comments on commit f44f40f

Please sign in to comment.