Permalink
Browse files

NugetProvider allows install/save-package to install/save unlisted de…

…pendencies (#396)
  • Loading branch information...
alerickson committed Nov 9, 2018
1 parent 4a0d0a4 commit f54fa15a55f55a81b62cf48dc27e733180a3e2ed
Showing with 14 additions and 2 deletions.
  1. +1 −1 .gitmodules
  2. +12 −0 Test/ModuleTests/tests/nuget.tests.ps1
  3. +1 −1 src/Microsoft.PackageManagement.NuGetProvider
@@ -1,6 +1,6 @@
[submodule "src/Microsoft.PackageManagement.NuGetProvider"]
path = src/Microsoft.PackageManagement.NuGetProvider
url = https://github.com/OneGet/NuGetProvider.git
url = https://github.com/oneget/NuGetProvider.git

[submodule "src/Modules/PowerShellGet"]

@@ -894,6 +894,18 @@ Describe "Install-Package dependencies" -Tags "Feature" {
(Test-Path "$tempDir\Nancy.Hosting.Self*") | should be $true
(Test-Path "$tempDir\Nancy.Hosting.Self*barney*") | should be $false
}

It "Install package with unlisted dependencies" {
$version = "1.0.4"
$testModule = Install-Package -Provider $nuget -Source $source -Destination $tempDir -force -name PMTestModule -RequiredVersion $version

$testModule.Count | should be 5
(Test-Path "$tempDir\PMTestModule.1.0.4") | should be $true
(Test-Path "$tempDir\PMTestDependency1.1.0.2") | should be $true
(Test-Path "$tempDir\PMTestDependency1A.1.0.1") | should be $true
(Test-Path "$tempDir\PMTestDependency2.1.0.1") | should be $true
(Test-Path "$tempDir\PMTestDependency2A.1.0.1") | should be $true
}
}

Describe "install-package with Scope" -tags "Feature" {

0 comments on commit f54fa15

Please sign in to comment.