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
$err[0].FullyQualifiedErrorId | Should -BeExactly "PackageWithCmdOrDscNotFound,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
490
+
$err[0].FullyQualifiedErrorId | Should -BeExactly "PackageWithCmdOrDscNotFound,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
491
491
}
492
492
493
493
It "not find resource when it has one CommandName specified but not other and report error (without -Repository specified)" {
@@ -509,7 +509,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
509
509
$err| Should -HaveCount 1
510
510
$err[0].FullyQualifiedErrorId | Should -BeExactly "WildcardsUnsupportedForCommandNameorDSCResourceName,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
511
511
512
-
$res.Count| Should -BeGreaterOrEqual 10
512
+
$res.Count| Should -BeGreaterOrEqual 9
513
513
$pkgFoundFromLocalRepo=$false
514
514
$pkgFoundFromPSGallery=$false
515
515
@@ -525,7 +525,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
525
525
}
526
526
}
527
527
528
-
$pkg.Names| Should -Be $cmdName
528
+
$pkg.Names| Should -Be $cmdName
529
529
$pkg.ParentResource.Includes.Command| Should -Contain $cmdName
530
530
$pkgFoundFromLocalRepo| Should -BeTrue
531
531
$pkgFoundFromPSGallery| Should -BeTrue
@@ -552,7 +552,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
552
552
}
553
553
}
554
554
555
-
$pkg.Names| Should -Be $cmdName
555
+
$pkg.Names| Should -Be $cmdName
556
556
$pkg.ParentResource.Includes.Command| Should -Contain $cmdName
557
557
$pkgFoundFromLocalRepo| Should -BeFalse
558
558
$pkgFoundFromPSGallery| Should -BeTrue
@@ -561,7 +561,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
561
561
It "should not allow for repository name with wildcard and non-wildcard command name specified in same command run" {
562
562
{Find-PSResource-CommandName $cmdName-Repository "*Gallery",$localRepoName} | Should -Throw -ErrorId "RepositoryNamesWithWildcardsAndNonWildcardUnsupported,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
563
563
}
564
-
564
+
565
565
It "not find resource and write error if tag does not exist for resources in any pattern matching repositories (-Repository with wildcard)" {
@@ -609,7 +609,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
609
609
}
610
610
}
611
611
612
-
$pkg.Names| Should -Be $cmdName
612
+
$pkg.Names| Should -Be $cmdName
613
613
$pkg.ParentResource.Includes.Command| Should -Contain $cmdName
614
614
$pkgFoundFromLocalRepo| Should -BeTrue
615
615
$pkgFoundFromPSGallery| Should -BeTrue
@@ -636,10 +636,10 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
636
636
}
637
637
}
638
638
639
-
$pkg.Names| Should -Be $cmdName2
639
+
$pkg.Names| Should -Be $cmdName2
640
640
$pkg.ParentResource.Includes.Command| Should -Contain $cmdName2
641
641
$pkgFoundFromLocalRepo| Should -BeTrue
642
-
$pkgFoundFromPSGallery| Should -BeFalse
642
+
$pkgFoundFromPSGallery| Should -BeFalse
643
643
644
644
$err[0].FullyQualifiedErrorId | Should -BeExactly "PackageWithSpecifiedCmdOrDSCNotFound,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
645
645
}
@@ -681,7 +681,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
681
681
It "find resource that has DSCResourceName specified from all repositories where it exists and not write errors where it does not exist (without -Repository specified)" {
$err[0].FullyQualifiedErrorId | Should -BeExactly "PackageWithCmdOrDscNotFound,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
710
+
$err[0].FullyQualifiedErrorId | Should -BeExactly "PackageWithCmdOrDscNotFound,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
711
711
}
712
712
713
713
It "not find resource when it has one DSCResourceName specified but not other and report error (without -Repository specified)" {
@@ -729,7 +729,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
729
729
$err| Should -HaveCount 1
730
730
$err[0].FullyQualifiedErrorId | Should -BeExactly "WildcardsUnsupportedForCommandNameorDSCResourceName,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
731
731
732
-
$res.Count| Should -BeGreaterOrEqual 3
732
+
$res.Count| Should -BeGreaterOrEqual 2
733
733
$pkgFoundFromLocalRepo=$false
734
734
$pkgFoundFromPSGallery=$false
735
735
@@ -772,7 +772,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
772
772
}
773
773
}
774
774
775
-
$pkg.Names| Should -Be $dscName
775
+
$pkg.Names| Should -Be $dscName
776
776
$pkg.ParentResource.Includes.DscResource| Should -Contain $dscName
777
777
$pkgFoundFromLocalRepo| Should -BeFalse
778
778
$pkgFoundFromPSGallery| Should -BeTrue
@@ -781,7 +781,7 @@ Describe 'Test Find-PSResource for searching and looping through repositories' -
781
781
It "should not allow for repository name with wildcard and non-wildcard command name specified in same command run" {
782
782
{Find-PSResource-DscResourceName $dscName-Repository "*Gallery",$localRepoName} | Should -Throw -ErrorId "RepositoryNamesWithWildcardsAndNonWildcardUnsupported,Microsoft.PowerShell.PSResourceGet.Cmdlets.FindPSResource"
783
783
}
784
-
784
+
785
785
It "not find resource and write error if tag does not exist for resources in any pattern matching repositories (-Repository with wildcard)" {
0 commit comments