Skip to content

Commit dd32cd8

Browse files
committed
check if env is set for tests
1 parent c8d01ee commit dd32cd8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.ci/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ jobs:
8787
$vstsCommandString = "vso[task.setvariable variable=VSS_NUGET_EXTERNAL_FEED_ENDPOINTS]$VSS_NUGET_EXTERNAL_FEED_ENDPOINTS"
8888
Write-Host "sending " + $vstsCommandString
8989
Write-Host "##$vstsCommandString"
90-
$plain = ConvertFrom-SecureString $($azt.Token) -AsPlainText
91-
write-host "plain: $plain"
9290
displayName: 'Setup Azure Artifacts Credential Provider secret'
9391
condition: eq(${{ parameters.useAzAuth }}, false)
9492

test/CredentialProvider.Tests.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ Describe 'Test Azure Artifacts Credential Provider' -tags 'CI' {
2525
}
2626

2727
It "Find resource given specific Name and Repository" {
28+
# Get user-level environment variable
29+
$vssVar = Get-ItemProperty -Path "HKCU:\Environment" -Name "VSS_NUGET_EXTERNAL_FEED_ENDPOINTS"
30+
31+
Write-Host "$($vssVar.VSS_NUGET_EXTERNAL_FEED_ENDPOINTS)"
32+
33+
Write-Host "$vssVar"
2834
$res = Find-PSResource -Name $TestModuleName -Repository $ADORepoName -Verbose
2935
$res.Name | Should -Be $TestModuleName
3036
}

0 commit comments

Comments
 (0)