@@ -81,13 +81,18 @@ function TestGetCodeOwner([string]$targetDirectory, [string]$codeOwnerFileLocati
8181}
8282
8383if ($Test ) {
84- $testFile = (Resolve-Path $PSScriptRoot / ../ ../ ../ tools/ code- owners- parser/ Azure.Sdk.Tools.RetrieveCodeOwners.Tests/ TestData/ simple_path_CODEOWNERS)
85- TestGetCodeOwner - targetDirectory " sdk" - codeOwnerFileLocation $testFile - includeNonUserAliases $true - expectReturn @ (" person1" , " person2" )
86- TestGetCodeOwner - targetDirectory " sdk/noPath" - codeOwnerFileLocation $testFile - includeNonUserAliases $true - expectReturn @ (" person1" , " person2" )
87- TestGetCodeOwner - targetDirectory " /sdk/azconfig" - codeOwnerFileLocation $testFile - includeNonUserAliases $true - expectReturn @ (" person3" , " person4" )
88- TestGetCodeOwner - targetDirectory " /sdk/azconfig/package" - codeOwnerFileLocation $testFile - includeNonUserAliases $true $testFile - expectReturn @ (" person3" , " person4" )
89- TestGetCodeOwner - targetDirectory " /sd" - codeOwnerFileLocation $testFile - includeNonUserAliases $true - expectReturn @ ()
90- TestGetCodeOwner - targetDirectory " /sdk/testUser/" - codeOwnerFileLocation $testFile - expectReturn @ (" azure-sdk" )
84+ # These tests have been removed; now instead we should run tests from RetrieveCodeOwnersProgramTests, and in a way as explained in:
85+ # https://github.com/Azure/azure-sdk-tools/issues/5434
86+ # https://github.com/Azure/azure-sdk-tools/pull/5103#discussion_r1068680818
87+ Write-Host " These tests have been removed. Please see https://github.com/Azure/azure-sdk-tools/issues/5434 for more."
88+ #
89+ # $testFile = (Resolve-Path $PSScriptRoot/../../../tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners.Tests/TestData/simple_path_CODEOWNERS)
90+ # TestGetCodeOwner -targetDirectory "sdk" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person1", "person2")
91+ # TestGetCodeOwner -targetDirectory "sdk/noPath" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person1", "person2")
92+ # TestGetCodeOwner -targetDirectory "/sdk/azconfig" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person3", "person4")
93+ # TestGetCodeOwner -targetDirectory "/sdk/azconfig/package" -codeOwnerFileLocation $testFile -includeNonUserAliases $true $testFile -expectReturn @("person3", "person4")
94+ # TestGetCodeOwner -targetDirectory "/sd" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @()
95+ # TestGetCodeOwner -targetDirectory "/sdk/testUser/" -codeOwnerFileLocation $testFile -expectReturn @("azure-sdk")
9196 exit 0
9297}
9398else {
0 commit comments