Skip to content

Commit b9deb95

Browse files
committed
Add test
1 parent f293c9e commit b9deb95

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/CredentialProvider.Tests.ps1

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

2727
It "Find resource given specific Name and Repository" {
28-
$DebugPreference = "continue"
29-
Find-PSResource -Name "*" -Repository $ADORepoName -verbose -Debug | write-verbose -verbose
30-
31-
3228
$res = Find-PSResource -Name $TestModuleName -Repository $ADORepoName -Verbose
3329
$res.Name | Should -Be $TestModuleName
3430
}
@@ -61,6 +57,12 @@ Describe 'Test Azure Artifacts Credential Provider' -tags 'CI' {
6157
$repo.CredentialProvider | Should -Be "AzArtifacts"
6258
}
6359

60+
It "Register repository with ADO Uri and CredentialProvider set to 'None')" {
61+
Register-PSResourceRepository -Name $ADORepoName -Uri $ADORepoUri -CredentialProvider None -Force
62+
$repo = Get-PSResourceRepository -Name $ADORepoName
63+
$repo.CredentialProvider | Should -Be "None"
64+
}
65+
6466
It "Set CredentialProvider for ADO repository" {
6567
Register-PSResourceRepository -Name $ADORepoName -Uri $ADORepoUri -Trusted -Force
6668
$repo = Get-PSResourceRepository -Name $ADORepoName

0 commit comments

Comments
 (0)