mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Remove scope test for install-package in nuget.tests.ps1
This commit is contained in:
1 parent
67bc478695
commit
6338d8c33a
1 file changed
-19
@@ -818,24 +818,6 @@ Describe "install-package with Whatif" -Tags @('BVT', 'DRT'){
|
||||
}
|
||||
|
||||
Describe "install-package with Scope" -Tags @('BVT', 'DRT'){
|
||||
BeforeAll {
|
||||
if ($isWindows)
|
||||
{
|
||||
$userName = "smartguy"
|
||||
$password = "password%1"
|
||||
net user $userName $password /add
|
||||
$secesurestring = ConvertTo-SecureString $password -AsPlainText -Force
|
||||
$credential = new-object -typename System.Management.Automation.PSCredential -argumentlist $userName, $secesurestring
|
||||
}
|
||||
}
|
||||
|
||||
AfterAll {
|
||||
if ($isWindows)
|
||||
{
|
||||
# Delete the user profile
|
||||
net user $userName /delete | Out-Null
|
||||
}
|
||||
}
|
||||
|
||||
it "EXPECTED Success: Get and Install-Package without Scope without destination" {
|
||||
|
||||
@@ -947,7 +929,6 @@ Describe "install-package with Scope" -Tags @('BVT', 'DRT'){
|
||||
|
||||
Receive-Job -Wait -Job $job -ErrorVariable theError2 2>&1
|
||||
$theError2.FullyQualifiedErrorId | should be "InstallRequiresCurrentUserScopeParameterForNonAdminUser,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage"
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user