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
// A container registry repository is determined to be unauthenticated if it allows anonymous pull access. However, push operations always require authentication.
_cmdletPassedIn.WriteInformation($"Value of isRepositoryUnauthenticated: {isRepositoryUnauthenticated}",newstring[]{"PSRGContainerRegistryUnauthenticatedCheck"});
443
+
_cmdletPassedIn.WriteDebug($"Value of isRepositoryUnauthenticated: {isRepositoryUnauthenticated}");
It "install resources from hightest priority repository where it exists and not write errors for repositories where it does not exist (without -Repository specified)" {
48
48
# Package "test_script" exists in the following repositories: PSGallery, NuGetGallery
49
-
# Package does not exist on MAR to we need to skip when validating that the highest priority repository is used
49
+
# Package does not exist on MAR, and should not emit an error when found in a lower priority repository
Copy file name to clipboardExpand all lines: test/SavePSResourceTests/SavePSResourceLocal.Tests.ps1
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ Describe 'Test Save-PSResource for local repositories' -tags 'CI' {
158
158
159
159
It "Save module, should search through all repositories and only install from the first repo containing the package" {
160
160
Save-PSResource-Name $moduleName3-Version "0.0.93"-Path $SaveDir-TrustRepository -ErrorVariable ev -ErrorAction SilentlyContinue
161
-
$ev| Should -HaveCount 1## This comes from MAR not having the module so the error is thrown from that repository before falling back to the next repository
161
+
$ev| Should -HaveCount 0
162
162
$pkgDir=Get-ChildItem-Path $SaveDir|Where-Object Name -eq"$moduleName3"
0 commit comments