You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/FindPSResourceTests/FindPSResourceRepositorySearching.Tests.ps1
-52Lines changed: 0 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -504,33 +504,6 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
504
504
$err[0].FullyQualifiedErrorId | Should -BeExactly "WildcardsUnsupportedForCommandNameorDSCResourceName,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
505
505
}
506
506
507
-
It "not find resource and discard CommandName entry containing wildcard, but search for other non-wildcard CommandName entries (without -Repository specified)" {
$err[0].FullyQualifiedErrorId | Should -BeExactly "WildcardsUnsupportedForCommandNameorDSCResourceName,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
511
-
512
-
$res.Count| Should -BeGreaterOrEqual 9
513
-
$pkgFoundFromLocalRepo=$false
514
-
$pkgFoundFromPSGallery=$false
515
-
516
-
foreach ($pkgin$res)
517
-
{
518
-
if ($pkg.ParentResource.Repository-eq$localRepoName)
$pkg.ParentResource.Includes.Command| Should -Contain $cmdName
587
-
$pkgFoundFromLocalRepo| Should -BeTrue
588
-
$pkgFoundFromPSGallery| Should -BeTrue
589
-
}
590
-
591
539
It "find resource given CommandName from all repositories where it exists and write errors for those it does not exist from (-Repository with multiple non-wildcard values)" {
592
540
# Package with Command "Get-MyCommand" exists in the following repositories: localRepo
0 commit comments