Skip to content

Commit a8165a8

Browse files
committed
Remove debug and verbose statements from tests
1 parent c5553fc commit a8165a8

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

test/InstallPSResourceTests/InstallPSResourceContainerRegistryServer.Tests.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4+
# Note: when running tests locally set $env:USINGAZAUTH = $true to use AzAuth for authentication to ACR
5+
# otherwise tests will use SecretStore and require environment variable TENANTID to be set to the tenant of the ACR.
6+
# For CI, AzAuth is used for authentication.
47
$ProgressPreference = "SilentlyContinue"
58
$modPath = "$psscriptroot/../PSGetTestUtils.psm1"
69
Import-Module $modPath -Force -Verbose
@@ -110,7 +113,7 @@ Describe 'Test Install-PSResource for ACR scenarios' -tags 'CI' {
110113

111114
It "Install resource where version specified is a prerelease version" {
112115
# the resource has version "1.0", but querying with any equivalent version should work
113-
Install-PSResource -Name $testModuleWith2DigitVersion -Version "1.5-alpha" -Prerelease -Repository $ACRRepoName -TrustRepository -Verbose -Debug
116+
Install-PSResource -Name $testModuleWith2DigitVersion -Version "1.5-alpha" -Prerelease -Repository $ACRRepoName -TrustRepository
114117
$res = Get-InstalledPSResource -Name $testModuleWith2DigitVersion
115118
$res | Should -Not -BeNullOrEmpty
116119
$res.Version | Should -Be "1.5"

test/InstallPSResourceTests/InstallPSResourceGithubPackages.Tests.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ Describe 'Test Install-PSResource for GitHub packages' -tags 'CI' {
116116
}
117117

118118
It "Install resource when given Name, Version '*', should install the latest version" {
119-
$DebugPreference = 'Continue'
120-
Install-PSResource -Name $testModuleName -Version "*" -Repository $GithubPackagesRepoName -Credential $credential -TrustRepository -Verbose -Debug
119+
Install-PSResource -Name $testModuleName -Version "*" -Repository $GithubPackagesRepoName -Credential $credential -TrustRepository
121120
$pkg = Get-InstalledPSResource $testModuleName
122121
$pkg.Name | Should -Be $testModuleName
123122
$pkg.Version | Should -Be "5.0.0"

test/SavePSResourceTests/SavePSResourceV3.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Describe 'Test HTTP Save-PSResource for V3 Server Protocol' -tags 'CI' {
156156
}
157157

158158
It "Save module and its dependencies" {
159-
$res = Save-PSResource 'TestModuleWithDependencyE' -Repository $NuGetGalleryName -TrustRepository -PassThru -Confirm:$false -Debug -Verbose
159+
$res = Save-PSResource 'TestModuleWithDependencyE' -Repository $NuGetGalleryName -TrustRepository -PassThru
160160
$res.Length | Should -Be 4
161161
}
162162

0 commit comments

Comments
 (0)