File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,7 @@ Describe 'Test HTTP Save-PSResource for V2 Server Protocol' -tags 'CI' {
203
203
204
204
# Save resource that requires license
205
205
It " Save resource that requires accept license with -AcceptLicense flag" {
206
- Save-PSResource - Repository $PSGalleryName - TrustRepository - Path $SaveDir `
207
- - Name $testModuleName2 - AcceptLicense
206
+ $pkg = Save-PSResource - Repository $PSGalleryName - TrustRepository - Path $SaveDir - Name $testModuleName2 - AcceptLicense - PassThru
208
207
$pkg = Get-InstalledPSResource - Path $SaveDir - Name $testModuleName2
209
208
$pkg.Name | Should - Be $testModuleName2
210
209
$pkg.Version | Should - Be " 0.0.1.0"
Original file line number Diff line number Diff line change @@ -149,10 +149,8 @@ Describe 'Test HTTP Save-PSResource for V3 Server Protocol' -tags 'CI' {
149
149
}
150
150
151
151
# Save resource that requires license
152
- It ' Install resource that requires accept license with -AcceptLicense flag' {
153
- Save-PSResource - Repository $NuGetGalleryName - TrustRepository - Path $SaveDir `
154
- - Name ' test_module_withlicense' - AcceptLicense
155
- $pkg = Get-InstalledPSResource - Path $SaveDir ' test_module_withlicense'
152
+ It ' Save resource that requires accept license with -AcceptLicense flag' {
153
+ $pkg = Save-PSResource - Repository $NuGetGalleryName - TrustRepository - Path $SaveDir - Name ' test_module_withlicense' - AcceptLicense - PassThru
156
154
$pkg.Name | Should - Be ' test_module_withlicense'
157
155
$pkg.Version | Should - Be ' 1.0.0'
158
156
}
You can’t perform that action at this time.
0 commit comments