Skip to content

Commit c1823e1

Browse files
committed
Rolled back pester test
1 parent 73be0e3 commit c1823e1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Authentication/Authentication/test/Find-MgGraphCommand.Tests.ps1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,13 @@ Describe "Find-MgGraphCommand Command" {
165165
It 'Should find commands for uri with Microsoft.Graph prefix in nested segments' {
166166
{
167167
$MgCommand = Find-MgGraphCommand -Uri "/identity/authenticationEventsFlows/{authenticationEventsFlow-id}/microsoft.graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders"
168-
$MgCommand | Should -HaveCount 2
169-
$MgCommand.Command | Select-Object -Unique | should -HaveCount 2
168+
$MgCommand | Should -HaveCount 1
169+
$MgCommand.Command | Select-Object -Unique | should -HaveCount 1
170+
$MgCommand.Method | Select-Object -Unique | should -HaveCount 1
171+
$MgCommand.APIVersion | Select-Object -Unique | should -HaveCount 1
172+
$MgCommand.Variants | Select-Object -Unique | should -HaveCount 1
170173
$MgCommand.URI | Select-Object -Unique | Should -Be "/identity/authenticationEventsFlows/{authenticationEventsFlow-id}/externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders"
171-
$MgCommand.Command | Select-Object -Unique | Should -BeIn @("Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider","Get-MgBetaIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider")
174+
$MgCommand.Command | Select-Object -Unique | Should -BeIn @("Get-MgBetaIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider")
172175
} | Should -Not -Throw
173176
}
174177
}

0 commit comments

Comments
 (0)