-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.Release-TestingResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure
Description
The following test is failing on Ubuntu 20.04 in PS 7.2.0-preview.7:
PowerShell/test/powershell/engine/ParameterBinding/ParameterBinding.Tests.ps1
Lines 259 to 265 in 945a232
| It 'Dynamic parameter is found even if globbed path does not exist' { | |
| $guid = New-Guid | |
| # This test verifies that the ErrorRecord is coming from parameter validation on a dynamic parameter | |
| # instead of an error indicating that the dynamic parameter is not found | |
| { Copy-Item "~\$guid*" -Destination ~ -ToSession $null } | Should -Throw -ErrorId 'ParameterArgumentValidationError' | |
| } |
The error is:
Expected an exception, with FullyQualifiedErrorId 'ParameterArgumentValidationError' to be thrown, but the FullyQualifiedErrorId was 'NamedParameterNotFound,Microsoft.PowerShell.Commands.CopyItemCommand'. from /home/vsts_azpcontainer/PSPackage/download/Test/test/powershell/engine/ParameterBinding/ParameterBinding.Tests.ps1:264 char:47
+ { Copy-Item "~$guid*" -Destination ~ -ToSession $null } | Sh ?
+ ~~~~~~~~~~
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.Release-TestingResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure