From 6338d8c33a43f816a44effb78b7c2bcc2120f8fe Mon Sep 17 00:00:00 2001 From: Quoc Truong Date: Wed, 13 Jul 2016 15:58:05 -0700 Subject: [PATCH] Remove scope test for install-package in nuget.tests.ps1 --- .../Modules/PackageManagement/Nuget.Tests.ps1 | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/test/powershell/Modules/PackageManagement/Nuget.Tests.ps1 b/test/powershell/Modules/PackageManagement/Nuget.Tests.ps1 index dc6593ba3..a422bebb5 100644 --- a/test/powershell/Modules/PackageManagement/Nuget.Tests.ps1 +++ b/test/powershell/Modules/PackageManagement/Nuget.Tests.ps1 @@ -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,8 +929,7 @@ 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" - - } + } } Describe Install-Package -Tags @('BVT', 'DRT'){