Skip to content

Commit

Permalink
comment out test that was originally commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
anamnavi committed Sep 15, 2023
1 parent b23dc04 commit a6383ef
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions test/FindPSResourceTests/FindPSResourceV2Server.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -316,29 +316,29 @@ Describe 'Test HTTP Find-PSResource for V2 Server Protocol' -tags 'CI' {
$err[0].FullyQualifiedErrorId | Should -BeExactly "PackageNotFound,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
}

It "find all resources with specified tag given Tag property" {
# FindTag()
$foundTestModule = $False
$foundTestScript = $False
$tagToFind = "Tag2"
$res = Find-PSResource -Tag $tagToFind -Repository $PSGalleryName
foreach ($item in $res) {
$item.Tags -contains $tagToFind | Should -Be $True
# It "find all resources with specified tag given Tag property" {
# # FindTag()
# $foundTestModule = $False
# $foundTestScript = $False
# $tagToFind = "Tag2"
# $res = Find-PSResource -Tag $tagToFind -Repository $PSGalleryName
# foreach ($item in $res) {
# $item.Tags -contains $tagToFind | Should -Be $True

if ($item.Name -eq $testModuleName)
{
$foundTestModule = $True
}
# if ($item.Name -eq $testModuleName)
# {
# $foundTestModule = $True
# }

if ($item.Name -eq $testScriptName)
{
$foundTestScript = $True
}
}
# if ($item.Name -eq $testScriptName)
# {
# $foundTestScript = $True
# }
# }

$foundTestModule | Should -Be $True
$foundTestScript | Should -Be $True
}
# $foundTestModule | Should -Be $True
# $foundTestScript | Should -Be $True
# }

It "find all resources with specified tag given Tag property, with and without Prerelease property" {
$tagToFind = "MyPSTag"
Expand Down

0 comments on commit a6383ef

Please sign in to comment.