From c1823e135855a11c8be4c3017d18fe1c958bc0a2 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Thu, 4 Jul 2024 10:24:05 +0300 Subject: [PATCH] Rolled back pester test --- .../Authentication/test/Find-MgGraphCommand.Tests.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Authentication/Authentication/test/Find-MgGraphCommand.Tests.ps1 b/src/Authentication/Authentication/test/Find-MgGraphCommand.Tests.ps1 index f99c16d6ae0..3fc36240193 100644 --- a/src/Authentication/Authentication/test/Find-MgGraphCommand.Tests.ps1 +++ b/src/Authentication/Authentication/test/Find-MgGraphCommand.Tests.ps1 @@ -165,10 +165,13 @@ 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 2 - $MgCommand.Command | Select-Object -Unique | should -HaveCount 2 + $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.URI | Select-Object -Unique | Should -Be "/identity/authenticationEventsFlows/{authenticationEventsFlow-id}/externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders" - $MgCommand.Command | Select-Object -Unique | Should -BeIn @("Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider","Get-MgBetaIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider") + $MgCommand.Command | Select-Object -Unique | Should -BeIn @("Get-MgBetaIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider") } | Should -Not -Throw } }