File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Describe 'Test HTTP Save-PSResource for V2 Server Protocol' -tags 'CI' {
13
13
$testScriptName = " test_script"
14
14
$testModuleName2 = " testmodule99"
15
15
$PackageManagement = " PackageManagement"
16
+ $testModuleNameWithLicense = " ModuleRequireLicenseAcceptance"
16
17
Get-NewPSResourceRepositoryFile
17
18
18
19
$SaveDir = Join-Path $TestDrive ' SavedResources'
@@ -203,9 +204,9 @@ Describe 'Test HTTP Save-PSResource for V2 Server Protocol' -tags 'CI' {
203
204
204
205
# Save resource that requires license
205
206
It " Save resource that requires accept license with -AcceptLicense flag" {
206
- $pkg = Save-PSResource - Repository $PSGalleryName - TrustRepository - Path $SaveDir - Name $testModuleName2 - AcceptLicense - PassThru
207
- $pkg = Get-InstalledPSResource - Path $SaveDir - Name $testModuleName2
208
- $pkg.Name | Should - Be $testModuleName2
209
- $pkg.Version | Should - Be " 0 .0.1 .0"
207
+ $pkg = Save-PSResource - Repository $PSGalleryName - TrustRepository - Path $SaveDir - Name $testModuleNameWithLicense - AcceptLicense - PassThru
208
+ $pkg = Get-InstalledPSResource - Path $SaveDir - Name $testModuleNameWithLicense
209
+ $pkg.Name | Should - Be $testModuleNameWithLicense
210
+ $pkg.Version | Should - Be " 2 .0.0 .0"
210
211
}
211
212
}
You can’t perform that action at this time.
0 commit comments