File tree 1 file changed +3
-3
lines changed
src/Authentication/Authentication/test
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,15 +69,15 @@ Describe 'Connect-MgGraph In Delegated Mode' {
69
69
70
70
Describe ' Connect-MgGraph In Environment Variable Mode' {
71
71
It ' Should throw exception when supported environment variables are not specified' {
72
- { Connect-MgGraph - EnvironmentVariable - ErrorAction Stop } | Should - Throw - ExpectedMessage " *EnvironmentCredential authentication unavailable. Environment variables are not fully configured *"
72
+ { Connect-MgGraph - EnvironmentVariable - ErrorAction Stop } | Should - Throw - ExpectedMessage " *ClientSecretCredential authentication failed *"
73
73
}
74
74
It ' Should attempt to use configured environment variables' {
75
75
{
76
76
$Env: AZURE_CLIENT_ID = " Not_Valid"
77
77
$Env: AZURE_CLIENT_SECRET = " Not_Valid"
78
78
$Env: AZURE_TENANT_ID = " common"
79
79
Connect-MgGraph - EnvironmentVariable - ErrorAction Stop
80
- } | Should - Throw - ExpectedMessage " ClientSecretCredential authentication failed: "
80
+ } | Should - Throw - ExpectedMessage " * ClientSecretCredential authentication failed* "
81
81
}
82
82
}
83
83
@@ -95,7 +95,7 @@ Describe 'Connect-MgGraph In App Mode' {
95
95
Describe ' Connect-MgGraph Dependency Resolution' {
96
96
It ' Should load Mg module side by side with Az module.' {
97
97
{ 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 " DeviceCodeCredential authentication failed: "
98
+ { Connect-MgGraph - TenantId " thisdomaindoesnotexist.com" - ErrorAction Stop - UseDeviceAuthentication } | Should - Throw - ExpectedMessage " * DeviceCodeCredential authentication failed* "
99
99
}
100
100
}
101
101
You can’t perform that action at this time.
0 commit comments