From 0b12cdb5f5ada4b2c5ade70bc3fbc817dd93ea5a Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 26 Jul 2024 14:02:16 +0300 Subject: [PATCH] Updated error message --- .../Authentication/test/Connect-MgGraph.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 b/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 index 82699b3e96..d14f9495f6 100644 --- a/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 +++ b/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 @@ -73,7 +73,7 @@ Describe 'Connect-MgGraph In Delegated Mode' { Describe 'Connect-MgGraph In Environment Variable Mode' { It 'Should throw exception when supported environment variables are not specified' { - { Connect-MgGraph -EnvironmentVariable -ErrorAction Stop } | Should -Throw -ExpectedMessage "*ClientSecretCredential authentication failed*" + { Connect-MgGraph -EnvironmentVariable -ErrorAction Stop } | Should -Throw -ExpectedMessage "*EnvironmentCredential authentication unavailable*" } It 'Should attempt to use configured environment variables' { {