File tree Expand file tree Collapse file tree
test/InstallPSResourceTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,12 +29,11 @@ Describe 'Test Install-PSResource for ADO V3Server scenarios' -tags 'CI' {
2929 @ {Name = " Test_local_m*" ; ErrorId = " NameContainsWildcard" },
3030 @ {Name = " Test?local" , " Test[local" ; ErrorId = " ErrorFilteringNamesForUnsupportedWildcards" }
3131
32- It " Should not install resource with wildcard in name" - TestCases $testCases {
32+ It " Should not install resource with wildcard in name -- $Name " - TestCases $testCases {
3333 param ($Name , $ErrorId )
34- Install-PSResource - Name $Name - Repository $ADORepoName - ErrorVariable err - ErrorAction SilentlyContinue
34+ $res = Install-PSResource - Name $Name - Repository $ADORepoName - ErrorVariable err - ErrorAction SilentlyContinue - PassThru
3535 $err.Count | Should - BeGreaterThan 0
3636 $err [0 ].FullyQualifiedErrorId | Should - BeExactly " $ErrorId ,Microsoft.PowerShell.PSResourceGet.Cmdlets.InstallPSResource"
37- $res = Get-InstalledPSResource $testModuleName
3837 $res | Should - BeNullOrEmpty
3938 }
4039
You can’t perform that action at this time.
0 commit comments