File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments