Skip to content

Commit 6e66e98

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Updated expected result
1 parent 737a9bf commit 6e66e98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Describe 'Connect-MgGraph In Environment Variable Mode' {
7777
$Env:AZURE_CLIENT_SECRET = "Not_Valid"
7878
$Env:AZURE_TENANT_ID = "common"
7979
Connect-MgGraph -EnvironmentVariable -ErrorAction Stop
80-
} | Should -Throw -ExpectedMessage "*ClientSecretCredential authentication failed: AADSTS700016: Application with identifier 'Not_Valid' was not found in the directory 'Microsoft'.*"
80+
} | Should -Throw -ExpectedMessage "ClientSecretCredential authentication failed: "
8181
}
8282
}
8383

@@ -95,7 +95,7 @@ Describe 'Connect-MgGraph In App Mode' {
9595
Describe 'Connect-MgGraph Dependency Resolution' {
9696
It 'Should load Mg module side by side with Az module.' {
9797
{ Connect-AzAccount -ApplicationId $RandomClientId -CertificateThumbprint "Invalid" -Tenant "Invalid" -ErrorAction Stop } | Should -Throw -ExpectedMessage "*Could not find tenant id*"
98-
{ Connect-MgGraph -TenantId "thisdomaindoesnotexist.com" -ErrorAction Stop -UseDeviceAuthentication } | Should -Throw -ExpectedMessage "*AADSTS90002*"
98+
{ Connect-MgGraph -TenantId "thisdomaindoesnotexist.com" -ErrorAction Stop -UseDeviceAuthentication } | Should -Throw -ExpectedMessage "DeviceCodeCredential authentication failed: "
9999
}
100100
}
101101

0 commit comments

Comments
 (0)