File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -161,14 +161,14 @@ public string TemporaryPath
161
161
162
162
/// <summary>
163
163
/// Check validation for signed and catalog files
164
-
165
164
/// </summary>
166
165
[ Parameter ]
167
166
public SwitchParameter AuthenticodeCheck { get ; set ; }
168
167
169
168
/// <summary>
170
169
/// Suppresses progress information.
171
170
/// </summary>
171
+ [ Parameter ]
172
172
public SwitchParameter Quiet { get ; set ; }
173
173
174
174
/// <summary>
Original file line number Diff line number Diff line change @@ -198,4 +198,10 @@ Describe 'Test Save-PSResource for local repositories' -tags 'CI' {
198
198
$err.Count | Should -Not - BeNullOrEmpty
199
199
$err [0 ].FullyQualifiedErrorId | Should - BeExactly " InstallPackageFailure,Microsoft.PowerShell.PSResourceGet.Cmdlets.SavePSResource"
200
200
}
201
+
202
+ It " Save module using -Quiet" {
203
+ $res = Save-PSResource - Name $moduleName - Version " 1.0.0" - Repository $localRepo - Path $SaveDir - PassThru - TrustRepository - Quiet
204
+ $res.Name | Should - Be $moduleName
205
+ $res.Version | Should - Be " 1.0.0"
206
+ }
201
207
}
You can’t perform that action at this time.
0 commit comments