From 6dfb5725d50a0f8997a9c93a1b8ec36ce14f8612 Mon Sep 17 00:00:00 2001 From: Anam Navied Date: Mon, 25 Sep 2023 16:11:29 -0400 Subject: [PATCH] update ADO error code --- .../PublishPSResourceTests/PublishPSResourceADOServer.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/PublishPSResourceTests/PublishPSResourceADOServer.Tests.ps1 b/test/PublishPSResourceTests/PublishPSResourceADOServer.Tests.ps1 index 4d3437185..10e6b2f23 100644 --- a/test/PublishPSResourceTests/PublishPSResourceADOServer.Tests.ps1 +++ b/test/PublishPSResourceTests/PublishPSResourceADOServer.Tests.ps1 @@ -97,7 +97,7 @@ Describe "Test Publish-PSResource" -tags 'CI' { Publish-PSResource -Path $script:PublishModuleBase -Repository $ADOPublicRepoName -Credential $correctPublicRepoCred -ErrorAction SilentlyContinue - $Error[0].FullyQualifiedErrorId | Should -be "400ApiKeyError,Microsoft.PowerShell.PSResourceGet.Cmdlets.PublishPSResource" + $Error[0].FullyQualifiedErrorId | Should -be "401Error,Microsoft.PowerShell.PSResourceGet.Cmdlets.PublishPSResource" } It "Should not publish module to ADO repository feed (private) when Credentials are incorrect" {