Skip to content

Commit 3fe8da9

Browse files
author
anamnavi
committed
log more info
1 parent d5f24c8 commit 3fe8da9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/PublishPSResourceTests/PublishPSResourceContainerRegistryServer.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,12 @@ Describe "Test Publish-PSResource" -tags 'CI' {
352352

353353
Publish-PSResource -Path $script:PublishModuleBase -Repository $ACRRepoName -InformationVariable RegistryAuthenticated
354354

355-
$results = Find-PSResource -Name $script:PublishModuleName -Repository $ACRRepoName
355+
$results = Find-PSResource -Name $script:PublishModuleName -Repository $ACRRepoName -InformationVariable FindRegistryAuthenticated
356356
$results | Should -Not -BeNullOrEmpty
357357
$results[0].Name | Should -Be $script:PublishModuleName
358358
$results[0].Version | Should -Be $version
359359

360-
Write-Verbose -Verbose "obj: $RegistryAuthenticated"
360+
Write-Verbose -Verbose "obj: $RegistryAuthenticated, preference: $InformationPreference, find: $FindRegistryAuthenticated"
361361
$RegistryAuthenticated[0].Tags | Should -Be "PSRGContainerRegistryUnauthenticatedCheck"
362362
$RegistryAuthenticated[0].MessageData | Should -Be "Value of isRepositoryUnauthenticated: False"
363363
}

0 commit comments

Comments
 (0)